Class LegacyDataAdapterImpl

java.lang.Object
org.kuali.rice.krad.service.impl.LegacyDataAdapterImpl
All Implemented Interfaces:
org.kuali.rice.krad.service.LegacyDataAdapter, org.kuali.rice.krad.service.LegacyDataAppAdapter

@Deprecated public class LegacyDataAdapterImpl extends Object implements org.kuali.rice.krad.service.LegacyDataAdapter
Deprecated.
instead of using this class, where possible go directly against new KRAD code
LegacyDataAdapter implementation.
  • Constructor Details

    • LegacyDataAdapterImpl

      public LegacyDataAdapterImpl()
      Deprecated.
  • Method Details

    • save

      public <T> T save(T dataObject)
      Deprecated.
      Specified by:
      save in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • flush

      public void flush(Class<?> type)
      Deprecated.
      Specified by:
      flush in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • linkAndSave

      public <T> T linkAndSave(T dataObject)
      Deprecated.
      Specified by:
      linkAndSave in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • saveDocument

      public <T> T saveDocument(T document)
      Deprecated.
      Specified by:
      saveDocument in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findByPrimaryKey

      public <T> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
      Deprecated.
      Specified by:
      findByPrimaryKey in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findBySinglePrimaryKey

      public <T> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
      Deprecated.
      Specified by:
      findBySinglePrimaryKey in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • delete

      public void delete(Object dataObject)
      Deprecated.
      Specified by:
      delete in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • deleteMatching

      public <T> void deleteMatching(Class<T> type, Map<String,?> fieldValues)
      Deprecated.
      Specified by:
      deleteMatching in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • retrieve

      public <T> T retrieve(T dataObject)
      Deprecated.
      Specified by:
      retrieve in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findAll

      public <T> List<T> findAll(Class<T> clazz)
      Deprecated.
      Specified by:
      findAll in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findAll

      public <T> org.kuali.rice.krad.util.QueryPagingResults<T> findAll(Class<T> clazz, org.kuali.rice.krad.util.QueryPagingRequest paging)
      Deprecated.
      Specified by:
      findAll in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findMatching

      public <T> List<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Specified by:
      findMatching in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findMatching

      public <T> org.kuali.rice.krad.util.QueryPagingResults<T> findMatching(Class<T> clazz, Map<String,?> fieldValues, org.kuali.rice.krad.util.QueryPagingRequest paging)
      Deprecated.
      Specified by:
      findMatching in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findMatchingOrderBy

      public <T> List<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
      Deprecated.
      Specified by:
      findMatchingOrderBy in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findMatchingOrderBy

      public <T> org.kuali.rice.krad.util.QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest paging)
      Deprecated.
      Specified by:
      findMatchingOrderBy in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getPrimaryKeyFieldValues

      public Map<String,?> getPrimaryKeyFieldValues(Object dataObject)
      Deprecated.
      Specified by:
      getPrimaryKeyFieldValues in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • retrieveNonKeyFields

      public void retrieveNonKeyFields(Object persistableObject)
      Deprecated.
      Specified by:
      retrieveNonKeyFields in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • retrieveReferenceObject

      public void retrieveReferenceObject(Object persistableObject, String referenceObjectName)
      Deprecated.
      Specified by:
      retrieveReferenceObject in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • refreshAllNonUpdatingReferences

      public void refreshAllNonUpdatingReferences(Object persistableObject)
      Deprecated.
      Specified by:
      refreshAllNonUpdatingReferences in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • isProxied

      public boolean isProxied(Object object)
      Deprecated.
      Specified by:
      isProxied in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • resolveProxy

      public Object resolveProxy(Object object)
      Deprecated.
      Specified by:
      resolveProxy in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findCollectionBySearchHelper

      public <T> Collection<T> findCollectionBySearchHelper(Class<T> dataObjectClass, Map<String,String> formProperties, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
      Deprecated.
      Specified by:
      findCollectionBySearchHelper in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findCollectionBySearchHelper

      public <T> Collection<T> findCollectionBySearchHelper(Class<T> dataObjectClass, Map<String,String> formProperties, List<String> wildcardAsLiteralPropertyNames, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
      Deprecated.
      Specified by:
      findCollectionBySearchHelper in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • findObjectBySearch

      public <T> T findObjectBySearch(Class<T> type, Map<String,String> formProps)
      Deprecated.
      Specified by:
      findObjectBySearch in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • allPrimaryKeyValuesPresentAndNotWildcard

      public boolean allPrimaryKeyValuesPresentAndNotWildcard(Class<?> boClass, Map<String,String> formProps)
      Deprecated.
      Specified by:
      allPrimaryKeyValuesPresentAndNotWildcard in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • listPrimaryKeyFieldNames

      public List<String> listPrimaryKeyFieldNames(Class<?> type)
      Deprecated.
      Specified by:
      listPrimaryKeyFieldNames in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • determineCollectionObjectType

      public Class<?> determineCollectionObjectType(Class<?> containingType, String collectionPropertyName)
      Deprecated.
      Specified by:
      determineCollectionObjectType in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • hasReference

      public boolean hasReference(Class<?> boClass, String referenceName)
      Deprecated.
      Specified by:
      hasReference in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • hasCollection

      public boolean hasCollection(Class<?> boClass, String collectionName)
      Deprecated.
      Specified by:
      hasCollection in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • isExtensionAttribute

      public boolean isExtensionAttribute(Class<?> boClass, String attributePropertyName, Class<?> propertyType)
      Deprecated.
      Specified by:
      isExtensionAttribute in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getExtensionAttributeClass

      public Class<?> getExtensionAttributeClass(Class<?> boClass, String attributePropertyName)
      Deprecated.
      Specified by:
      getExtensionAttributeClass in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getPrimaryKeyFieldValuesDOMDS

      public Map<String,?> getPrimaryKeyFieldValuesDOMDS(Object dataObject)
      Deprecated.
      Specified by:
      getPrimaryKeyFieldValuesDOMDS in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • equalsByPrimaryKeys

      public boolean equalsByPrimaryKeys(Object do1, Object do2)
      Deprecated.
      Specified by:
      equalsByPrimaryKeys in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • materializeAllSubObjects

      public void materializeAllSubObjects(Object object)
      Deprecated.
      Specified by:
      materializeAllSubObjects in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getPropertyType

      public Class<?> getPropertyType(Object object, String propertyName)
      Deprecated.
      Specified by:
      getPropertyType in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getExtension

      public Object getExtension(Class<?> businessObjectClass) throws InstantiationException, IllegalAccessException
      Deprecated.
      Specified by:
      getExtension in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
      Throws:
      InstantiationException
      IllegalAccessException
    • refreshReferenceObject

      public void refreshReferenceObject(Object businessObject, String referenceObjectName)
      Deprecated.
      Specified by:
      refreshReferenceObject in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • isLockable

      public boolean isLockable(Object object)
      Deprecated.
      Specified by:
      isLockable in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • verifyVersionNumber

      public void verifyVersionNumber(Object dataObject)
      Deprecated.
      Specified by:
      verifyVersionNumber in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • createQuickFinder

      public org.kuali.rice.core.api.uif.RemotableQuickFinder.Builder createQuickFinder(Class<?> containingClass, String attributeName)
      Deprecated.
      Specified by:
      createQuickFinder in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • isReferenceUpdatable

      public boolean isReferenceUpdatable(Class<?> type, String referenceName)
      Deprecated.
      Specified by:
      isReferenceUpdatable in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • listReferenceObjectFields

      public Map<String,Class<?>> listReferenceObjectFields(Class<?> type)
      Deprecated.
      Specified by:
      listReferenceObjectFields in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • isCollectionUpdatable

      public boolean isCollectionUpdatable(Class<?> type, String collectionName)
      Deprecated.
      Specified by:
      isCollectionUpdatable in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • listCollectionObjectTypes

      public Map<String,Class<?>> listCollectionObjectTypes(Class<?> type)
      Deprecated.
      Specified by:
      listCollectionObjectTypes in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getReferenceIfExists

      public Object getReferenceIfExists(Object bo, String referenceName)
      Deprecated.
      Specified by:
      getReferenceIfExists in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • allForeignKeyValuesPopulatedForReference

      public boolean allForeignKeyValuesPopulatedForReference(Object bo, String referenceName)
      Deprecated.
      Specified by:
      allForeignKeyValuesPopulatedForReference in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getDictionaryRelationship

      public org.kuali.rice.krad.datadictionary.RelationshipDefinition getDictionaryRelationship(Class<?> c, String attributeName)
      Deprecated.
      Specified by:
      getDictionaryRelationship in interface org.kuali.rice.krad.service.LegacyDataAdapter
    • getTitleAttribute

      public String getTitleAttribute(Class<?> dataObjectClass)
      Deprecated.
      Specified by:
      getTitleAttribute in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • areNotesSupported

      public boolean areNotesSupported(Class<?> dataObjectClass)
      Deprecated.
      Specified by:
      areNotesSupported in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getDataObjectIdentifierString

      public String getDataObjectIdentifierString(Object dataObject)
      Deprecated.
      Specified by:
      getDataObjectIdentifierString in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getInquiryObjectClassIfNotTitle

      public Class<?> getInquiryObjectClassIfNotTitle(Object dataObject, String propertyName)
      Deprecated.
      Specified by:
      getInquiryObjectClassIfNotTitle in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getInquiryParameters

      public Map<String,String> getInquiryParameters(Object dataObject, List<String> keys, String propertyName)
      Deprecated.
      Specified by:
      getInquiryParameters in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • hasLocalLookup

      public boolean hasLocalLookup(Class<?> dataObjectClass)
      Deprecated.
      Specified by:
      hasLocalLookup in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • hasLocalInquiry

      public boolean hasLocalInquiry(Class<?> dataObjectClass)
      Deprecated.
      Specified by:
      hasLocalInquiry in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getDataObjectRelationship

      public org.kuali.rice.krad.bo.DataObjectRelationship getDataObjectRelationship(Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry)
      Deprecated.
      Specified by:
      getDataObjectRelationship in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • isPersistable

      public boolean isPersistable(Class<?> dataObjectClass)
      Deprecated.
      Specified by:
      isPersistable in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getForeignKeyFieldsPopulationState

      public org.kuali.rice.krad.util.ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(Object dataObject, String referenceName)
      Deprecated.
      Specified by:
      getForeignKeyFieldsPopulationState in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getForeignKeysForReference

      public Map<String,String> getForeignKeysForReference(Class<?> clazz, String attributeName)
      Deprecated.
      Specified by:
      getForeignKeysForReference in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • hasPrimaryKeyFieldValues

      public boolean hasPrimaryKeyFieldValues(Object dataObject)
      Deprecated.
      Specified by:
      hasPrimaryKeyFieldValues in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • setObjectPropertyDeep

      public <T> void setObjectPropertyDeep(Object bo, String propertyName, Class<T> type, T propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
      Deprecated.
      Specified by:
      setObjectPropertyDeep in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
      Throws:
      IllegalAccessException
      InvocationTargetException
      NoSuchMethodException
    • materializeClassForProxiedObject

      public <T> Class<T> materializeClassForProxiedObject(T object)
      Deprecated.
      Specified by:
      materializeClassForProxiedObject in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • getNestedValue

      public Object getNestedValue(Object bo, String fieldName)
      Deprecated.
      Specified by:
      getNestedValue in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • createNewObjectFromClass

      public <T> T createNewObjectFromClass(Class<T> clazz)
      Deprecated.
      Specified by:
      createNewObjectFromClass in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • isNull

      public boolean isNull(Object object)
      Deprecated.
      Specified by:
      isNull in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
    • setObjectProperty

      public <T> void setObjectProperty(Object bo, String propertyName, Class<T> propertyType, T propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
      Deprecated.
      Specified by:
      setObjectProperty in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
      Throws:
      IllegalAccessException
      InvocationTargetException
      NoSuchMethodException
    • findByDocumentHeaderId

      public <T extends org.kuali.rice.krad.document.Document> T findByDocumentHeaderId(Class<T> documentClass, String id)
      Deprecated.
      Specified by:
      findByDocumentHeaderId in interface org.kuali.rice.krad.service.LegacyDataAdapter
    • findByDocumentHeaderIds

      public <T extends org.kuali.rice.krad.document.Document> List<T> findByDocumentHeaderIds(Class<T> documentClass, List<String> ids)
      Deprecated.
      Specified by:
      findByDocumentHeaderIds in interface org.kuali.rice.krad.service.LegacyDataAdapter
    • selectAdapter

      protected org.kuali.rice.krad.service.LegacyDataAdapter selectAdapter(Object dataObject)
      Deprecated.
    • getKradLegacyDataAdapter

      public org.kuali.rice.krad.service.LegacyDataAdapter getKradLegacyDataAdapter()
      Deprecated.
    • setKradLegacyDataAdapter

      public void setKradLegacyDataAdapter(org.kuali.rice.krad.service.LegacyDataAdapter kradLegacyDataAdapter)
      Deprecated.
    • getKnsLegacyDataAdapter

      public org.kuali.rice.krad.service.LegacyDataAdapter getKnsLegacyDataAdapter()
      Deprecated.
    • setKnsLegacyDataAdapter

      public void setKnsLegacyDataAdapter(org.kuali.rice.krad.service.LegacyDataAdapter knsLegacyDataAdapter)
      Deprecated.