Class KNSLegacyDataAdapterImpl

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

@Deprecated public class KNSLegacyDataAdapterImpl extends Object implements org.kuali.rice.krad.service.LegacyDataAdapter
Deprecated.
  • Constructor Details

    • KNSLegacyDataAdapterImpl

      public KNSLegacyDataAdapterImpl()
      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 pagingRequest)
      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 pagingRequest)
      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 pagingRequest)
      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 o)
      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.
      Returns whether all primary key values are specified in the lookup map and do not contain any wildcards
      Specified by:
      allPrimaryKeyValuesPresentAndNotWildcard in interface org.kuali.rice.krad.service.LegacyDataAppAdapter
      Parameters:
      boClass - the bo class to lookup
      formProps - the incoming form/lookup properties
      Returns:
      whether all primary key values are specified in the lookup map and do not contain any wildcards
    • 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
    • createQuickFinderLegacy

      protected org.kuali.rice.core.api.uif.RemotableQuickFinder.Builder createQuickFinderLegacy(Class<?> containingClass, String attributeName)
      Deprecated.
      Legacy implementation of createQuickFinder. Uses the legacy DataObjectMetadataService.
    • 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 org.kuali.rice.krad.bo.BusinessObject 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.
      gets the relationship that the attribute represents on the class
      Specified by:
      getDictionaryRelationship in interface org.kuali.rice.krad.service.LegacyDataAdapter
      Parameters:
      c - - the class to which the attribute belongs
      attributeName - - property name for the attribute
      Returns:
      a relationship definition for the attribute
    • getTitleAttribute

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

      protected org.kuali.rice.krad.datadictionary.DataObjectEntry getDataObjectEntry(Class<?> dataObjectClass)
      Deprecated.
      Returns:
      DataObjectEntry for the given dataObjectClass, or null if there is none
      Throws:
      IllegalArgumentException - if the given Class is null
    • areNotesSupported

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

      protected Map<String,?> getPrimaryKeyFieldValues(Object dataObject, boolean sortFieldNames)
      Deprecated.
      Grabs primary key fields and sorts them if sort field names is true
      Returns:
      Map of sorted primary key field values
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • synchronizeEclipseLinkWeavings

      protected void synchronizeEclipseLinkWeavings(Object persistableObject, String propertyName)
      Deprecated.
    • synchronizeEclipseLinkWeavings

      protected void synchronizeEclipseLinkWeavings(Object persistableObject)
      Deprecated.
    • setBusinessObjectService

      public void setBusinessObjectService(BusinessObjectService businessObjectService)
      Deprecated.
    • setPersistenceService

      public void setPersistenceService(PersistenceService persistenceService)
      Deprecated.
    • setLookupDao

      public void setLookupDao(LookupDao lookupDao)
      Deprecated.
    • setPersistenceStructureService

      public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
      Deprecated.
    • setDataObjectMetaDataService

      public void setDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetaDataService)
      Deprecated.
    • setKualiConfigurationService

      public void setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
      Deprecated.
    • setKualiModuleService

      public void setKualiModuleService(org.kuali.rice.krad.service.KualiModuleService kualiModuleService)
      Deprecated.
    • setDataDictionaryService

      public void setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService)
      Deprecated.
    • setDocumentDao

      public void setDocumentDao(DocumentDao documentDao)
      Deprecated.
    • getBusinessObjectService

      public BusinessObjectService getBusinessObjectService()
      Deprecated.
    • getPersistenceService

      public PersistenceService getPersistenceService()
      Deprecated.
    • getLookupDao

      public LookupDao getLookupDao()
      Deprecated.
    • getDocumentDao

      public DocumentDao getDocumentDao()
      Deprecated.
    • getPersistenceStructureService

      public PersistenceStructureService getPersistenceStructureService()
      Deprecated.
    • getDataObjectMetaDataService

      public DataObjectMetaDataService getDataObjectMetaDataService()
      Deprecated.
    • getKualiConfigurationService

      public org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService()
      Deprecated.
    • getKualiModuleService

      public org.kuali.rice.krad.service.KualiModuleService getKualiModuleService()
      Deprecated.
    • getDataDictionaryService

      public org.kuali.rice.krad.service.DataDictionaryService getDataDictionaryService()
      Deprecated.