@Deprecated public class KNSLegacyDataAdapterImpl extends Object implements LegacyDataAdapter
CLASS_NOT_PERSISTABLE_OJB_EXCEPTION_CLASS, OPTIMISTIC_LOCK_OJB_EXCEPTION_CLASS| Constructor and Description |
|---|
KNSLegacyDataAdapterImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allForeignKeyValuesPopulatedForReference(Object bo,
String referenceName)
Deprecated.
|
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
|
boolean |
areNotesSupported(Class<?> dataObjectClass)
Deprecated.
|
protected boolean |
classHasSupportedFeatures(Class relationshipClass,
boolean supportsLookup,
boolean supportsInquiry)
Deprecated.
|
Object |
createNewObjectFromClass(Class clazz)
Deprecated.
|
RemotableQuickFinder.Builder |
createQuickFinder(Class<?> containingClass,
String attributeName)
Deprecated.
|
protected RemotableQuickFinder.Builder |
createQuickFinderLegacy(Class<?> containingClass,
String attributeName)
Deprecated.
Legacy implementation of createQuickFinder.
|
void |
delete(Object dataObject)
Deprecated.
|
void |
deleteMatching(Class<?> type,
Map<String,?> fieldValues)
Deprecated.
|
Class<?> |
determineCollectionObjectType(Class<?> containingType,
String collectionPropertyName)
Deprecated.
|
boolean |
equalsByPrimaryKeys(Object do1,
Object do2)
Deprecated.
|
protected <T> Collection<T> |
filterCurrentDataObjects(Class<T> dataObjectClass,
Collection<T> unfiltered,
Map<String,String> formProps)
Deprecated.
|
<T> Collection<T> |
findAll(Class<T> clazz)
Deprecated.
|
<T extends Document> |
findByDocumentHeaderId(Class<T> documentClass,
String id)
Deprecated.
|
<T extends Document> |
findByDocumentHeaderIds(Class<T> documentClass,
List<String> ids)
Deprecated.
|
<T> T |
findByPrimaryKey(Class<T> clazz,
Map<String,?> primaryKeys)
Deprecated.
|
<T> T |
findBySinglePrimaryKey(Class<T> clazz,
Object primaryKey)
Deprecated.
|
<T> Collection<T> |
findCollectionBySearchHelper(Class<T> dataObjectClass,
Map<String,String> formProperties,
boolean unbounded,
boolean allPrimaryKeyValuesPresentAndNotWildcard,
Integer searchResultsLimit)
Deprecated.
|
<T> Collection<T> |
findCollectionBySearchHelper(Class<T> dataObjectClass,
Map<String,String> formProperties,
List<String> wildcardAsLiteralPropertyNames,
boolean unbounded,
boolean allPrimaryKeyValuesPresentAndNotWildcard,
Integer searchResultsLimit)
Deprecated.
|
<T> Collection<T> |
findMatching(Class<T> clazz,
Map<String,?> fieldValues)
Deprecated.
|
<T> Collection<T> |
findMatchingOrderBy(Class<T> clazz,
Map<String,?> fieldValues,
String sortField,
boolean sortAscending)
Deprecated.
|
<T> T |
findObjectBySearch(Class<T> type,
Map<String,String> formProps)
Deprecated.
|
protected DataObjectEntry |
getDataObjectEntry(Class<?> dataObjectClass)
Deprecated.
|
String |
getDataObjectIdentifierString(Object dataObject)
Deprecated.
|
DataObjectRelationship |
getDataObjectRelationship(Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
Deprecated.
|
org.kuali.rice.krad.data.DataObjectService |
getDataObjectService()
Deprecated.
|
RelationshipDefinition |
getDictionaryRelationship(Class<?> c,
String attributeName)
Deprecated.
gets the relationship that the attribute represents on the class
|
Object |
getExtension(Class<?> businessObjectClass)
Deprecated.
|
Class<?> |
getExtensionAttributeClass(Class<?> boClass,
String attributePropertyName)
Deprecated.
|
ForeignKeyFieldsPopulationState |
getForeignKeyFieldsPopulationState(Object dataObject,
String referenceName)
Deprecated.
|
Map<String,String> |
getForeignKeysForReference(Class<?> clazz,
String attributeName)
Deprecated.
|
Class<?> |
getInquiryObjectClassIfNotTitle(Object dataObject,
String propertyName)
Deprecated.
|
Map<String,String> |
getInquiryParameters(Object dataObject,
List<String> keys,
String propertyName)
Deprecated.
|
Object |
getNestedValue(Object bo,
String fieldName)
Deprecated.
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject)
Deprecated.
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject,
boolean sortFieldNames)
Deprecated.
Grabs primary key fields and sorts them if sort field names is true
|
Map<String,?> |
getPrimaryKeyFieldValuesDOMDS(Object dataObject)
Deprecated.
|
Class<?> |
getPropertyType(Object object,
String propertyName)
Deprecated.
|
BusinessObject |
getReferenceIfExists(Object bo,
String referenceName)
Deprecated.
|
protected DataObjectRelationship |
getRelationshipMetadata(Class<?> dataObjectClass,
String attributeName,
String attributePrefix)
Deprecated.
|
String |
getTitleAttribute(Class<?> dataObjectClass)
Deprecated.
|
ViewDictionaryService |
getViewDictionaryService()
Deprecated.
|
boolean |
hasCollection(Class<?> boClass,
String collectionName)
Deprecated.
|
boolean |
hasLocalInquiry(Class<?> dataObjectClass)
Deprecated.
|
boolean |
hasLocalLookup(Class<?> dataObjectClass)
Deprecated.
|
boolean |
hasPrimaryKeyFieldValues(Object dataObject)
Deprecated.
|
boolean |
hasReference(Class<?> boClass,
String referenceName)
Deprecated.
|
boolean |
isCollectionUpdatable(Class<?> type,
String collectionName)
Deprecated.
|
boolean |
isExtensionAttribute(Class<?> boClass,
String attributePropertyName,
Class<?> propertyType)
Deprecated.
|
boolean |
isLockable(Object object)
Deprecated.
|
boolean |
isNull(Object object)
Deprecated.
|
boolean |
isPersistable(Class<?> dataObjectClass)
Deprecated.
|
boolean |
isProxied(Object object)
Deprecated.
|
boolean |
isReferenceUpdatable(Class<?> type,
String referenceName)
Deprecated.
|
<T> T |
linkAndSave(T dataObject)
Deprecated.
|
Map<String,Class> |
listCollectionObjectTypes(Class<?> type)
Deprecated.
|
List<String> |
listPrimaryKeyFieldNames(Class<?> type)
Deprecated.
|
protected List<String> |
listPrimaryKeyFieldNamesConsultingAllServices(Class<?> type)
Deprecated.
LookupServiceImpl calls BusinessObjectMetaDataService to listPrimaryKeyFieldNames.
|
Map<String,Class> |
listReferenceObjectFields(Class<?> type)
Deprecated.
|
protected Boolean |
lookupCriteriaCurrentSpecifier(Map<String,String> formProps)
Deprecated.
|
void |
materializeAllSubObjects(Object object)
Deprecated.
|
Class |
materializeClassForProxiedObject(Object object)
Deprecated.
|
protected <T> Collection<T> |
performDataObjectServiceLookup(Class<T> dataObjectClass,
Map<String,String> formProperties,
boolean unbounded,
boolean allPrimaryKeyValuesPresentAndNotWildcard,
Integer searchResultsLimit)
Deprecated.
|
protected DataObjectRelationship |
populateRelationshipFromDictionaryReference(Class<?> dataObjectClass,
RelationshipDefinition ddReference,
String attributePrefix,
boolean keysOnly)
Deprecated.
|
void |
refreshAllNonUpdatingReferences(Object persistableObject)
Deprecated.
|
void |
refreshReferenceObject(Object businessObject,
String referenceObjectName)
Deprecated.
|
Object |
resolveProxy(Object o)
Deprecated.
|
<T> T |
retrieve(T dataObject)
Deprecated.
|
void |
retrieveNonKeyFields(Object persistableObject)
Deprecated.
|
void |
retrieveReferenceObject(Object persistableObject,
String referenceObjectName)
Deprecated.
|
<T> T |
save(T dataObject)
Deprecated.
|
<T> T |
saveDocument(T document)
Deprecated.
|
void |
setBusinessObjectService(BusinessObjectService businessObjectService)
Deprecated.
|
void |
setDatabasePlatform(DatabasePlatform databasePlatform)
Deprecated.
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
Deprecated.
|
void |
setDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetaDataService)
Deprecated.
|
void |
setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
Deprecated.
|
void |
setDateTimeService(DateTimeService dts)
Deprecated.
|
void |
setDocumentDao(DocumentDao documentDao)
Deprecated.
|
void |
setKualiConfigurationService(ConfigurationService kualiConfigurationService)
Deprecated.
|
void |
setKualiModuleService(KualiModuleService kualiModuleService)
Deprecated.
|
void |
setLookupCriteriaGenerator(LookupCriteriaGenerator lookupCriteriaGenerator)
Deprecated.
|
void |
setLookupDao(LookupDao lookupDao)
Deprecated.
|
void |
setMaintenanceDocumentDaoOjb(MaintenanceDocumentDao maintenanceDocumentDaoOjb)
Deprecated.
|
void |
setObjectProperty(Object bo,
String propertyName,
Class propertyType,
Object propertyValue)
Deprecated.
|
void |
setObjectPropertyDeep(Object bo,
String propertyName,
Class type,
Object propertyValue)
Deprecated.
|
void |
setPersistenceService(PersistenceService persistenceService)
Deprecated.
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Deprecated.
|
void |
setViewDictionaryService(ViewDictionaryService viewDictionaryService)
Deprecated.
|
protected void |
synchronizeEclipseLinkWeavings(Object persistableObject)
Deprecated.
|
protected void |
synchronizeEclipseLinkWeavings(Object persistableObject,
String propertyName)
Deprecated.
|
void |
verifyVersionNumber(Object dataObject)
Deprecated.
|
public KNSLegacyDataAdapterImpl()
public <T> T save(T dataObject)
save in interface LegacyDataAppAdapterpublic <T> T linkAndSave(T dataObject)
linkAndSave in interface LegacyDataAppAdapterpublic <T> T saveDocument(T document)
saveDocument in interface LegacyDataAppAdapterpublic <T> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
findByPrimaryKey in interface LegacyDataAppAdapterpublic <T> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
findBySinglePrimaryKey in interface LegacyDataAppAdapterpublic void delete(Object dataObject)
delete in interface LegacyDataAppAdapterpublic void deleteMatching(Class<?> type, Map<String,?> fieldValues)
deleteMatching in interface LegacyDataAppAdapterpublic <T> T retrieve(T dataObject)
retrieve in interface LegacyDataAppAdapterpublic <T> Collection<T> findAll(Class<T> clazz)
findAll in interface LegacyDataAppAdapterpublic <T> Collection<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
findMatching in interface LegacyDataAppAdapterpublic <T> Collection<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
findMatchingOrderBy in interface LegacyDataAppAdapterpublic Map<String,?> getPrimaryKeyFieldValues(Object dataObject)
getPrimaryKeyFieldValues in interface LegacyDataAppAdapterpublic void retrieveNonKeyFields(Object persistableObject)
retrieveNonKeyFields in interface LegacyDataAppAdapterpublic void retrieveReferenceObject(Object persistableObject, String referenceObjectName)
retrieveReferenceObject in interface LegacyDataAppAdapterprotected void synchronizeEclipseLinkWeavings(Object persistableObject, String propertyName)
for information on why we need to do field sychronization related to weavingprotected void synchronizeEclipseLinkWeavings(Object persistableObject)
for information on why we need to do field sychronization related to weavingpublic void refreshAllNonUpdatingReferences(Object persistableObject)
refreshAllNonUpdatingReferences in interface LegacyDataAppAdapterpublic boolean isProxied(Object object)
isProxied in interface LegacyDataAppAdapterpublic Object resolveProxy(Object o)
resolveProxy in interface LegacyDataAppAdapterpublic <T> Collection<T> findCollectionBySearchHelper(Class<T> dataObjectClass, Map<String,String> formProperties, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
findCollectionBySearchHelper in interface LegacyDataAppAdapterpublic <T> Collection<T> findCollectionBySearchHelper(Class<T> dataObjectClass, Map<String,String> formProperties, List<String> wildcardAsLiteralPropertyNames, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
findCollectionBySearchHelper in interface LegacyDataAppAdapterprotected <T> Collection<T> performDataObjectServiceLookup(Class<T> dataObjectClass, Map<String,String> formProperties, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
T - the data object typedataObjectClass - the dataobject classformProperties - the incoming lookup form propertiesunbounded - whether the search is unboundedsearchResultsLimit - the searchResultsLimit; null implies use of default KNS value if set for the classprotected <T> Collection<T> filterCurrentDataObjects(Class<T> dataObjectClass, Collection<T> unfiltered, Map<String,String> formProps)
protected Boolean lookupCriteriaCurrentSpecifier(Map<String,String> formProps)
public <T> T findObjectBySearch(Class<T> type, Map<String,String> formProps)
findObjectBySearch in interface LegacyDataAppAdapterpublic boolean allPrimaryKeyValuesPresentAndNotWildcard(Class<?> boClass, Map<String,String> formProps)
allPrimaryKeyValuesPresentAndNotWildcard in interface LegacyDataAppAdapterboClass - the bo class to lookupformProps - the incoming form/lookup propertiespublic List<String> listPrimaryKeyFieldNames(Class<?> type)
listPrimaryKeyFieldNames in interface LegacyDataAppAdapterprotected List<String> listPrimaryKeyFieldNamesConsultingAllServices(Class<?> type)
type - the data object classpublic Class<?> determineCollectionObjectType(Class<?> containingType, String collectionPropertyName)
determineCollectionObjectType in interface LegacyDataAppAdapterpublic boolean hasReference(Class<?> boClass, String referenceName)
hasReference in interface LegacyDataAppAdapterpublic boolean hasCollection(Class<?> boClass, String collectionName)
hasCollection in interface LegacyDataAppAdapterpublic boolean isExtensionAttribute(Class<?> boClass, String attributePropertyName, Class<?> propertyType)
isExtensionAttribute in interface LegacyDataAppAdapterpublic Class<?> getExtensionAttributeClass(Class<?> boClass, String attributePropertyName)
getExtensionAttributeClass in interface LegacyDataAppAdapterpublic Map<String,?> getPrimaryKeyFieldValuesDOMDS(Object dataObject)
getPrimaryKeyFieldValuesDOMDS in interface LegacyDataAppAdapterpublic boolean equalsByPrimaryKeys(Object do1, Object do2)
equalsByPrimaryKeys in interface LegacyDataAppAdapterpublic void materializeAllSubObjects(Object object)
materializeAllSubObjects in interface LegacyDataAppAdapterpublic Class<?> getPropertyType(Object object, String propertyName)
getPropertyType in interface LegacyDataAppAdapterpublic Object getExtension(Class<?> businessObjectClass) throws InstantiationException, IllegalAccessException
getExtension in interface LegacyDataAppAdapterInstantiationExceptionIllegalAccessExceptionpublic void refreshReferenceObject(Object businessObject, String referenceObjectName)
refreshReferenceObject in interface LegacyDataAppAdapterpublic boolean isLockable(Object object)
isLockable in interface LegacyDataAppAdapterpublic void verifyVersionNumber(Object dataObject)
verifyVersionNumber in interface LegacyDataAppAdapterpublic RemotableQuickFinder.Builder createQuickFinder(Class<?> containingClass, String attributeName)
createQuickFinder in interface LegacyDataAppAdapterprotected RemotableQuickFinder.Builder createQuickFinderLegacy(Class<?> containingClass, String attributeName)
public boolean isReferenceUpdatable(Class<?> type, String referenceName)
isReferenceUpdatable in interface LegacyDataAppAdapterpublic Map<String,Class> listReferenceObjectFields(Class<?> type)
listReferenceObjectFields in interface LegacyDataAppAdapterpublic boolean isCollectionUpdatable(Class<?> type, String collectionName)
isCollectionUpdatable in interface LegacyDataAppAdapterpublic Map<String,Class> listCollectionObjectTypes(Class<?> type)
listCollectionObjectTypes in interface LegacyDataAppAdapterpublic BusinessObject getReferenceIfExists(Object bo, String referenceName)
getReferenceIfExists in interface LegacyDataAppAdapterpublic boolean allForeignKeyValuesPopulatedForReference(Object bo, String referenceName)
allForeignKeyValuesPopulatedForReference in interface LegacyDataAppAdapterpublic RelationshipDefinition getDictionaryRelationship(Class<?> c, String attributeName)
getDictionaryRelationship in interface LegacyDataAdapterc - - the class to which the attribute belongsattributeName - - property name for the attributepublic String getTitleAttribute(Class<?> dataObjectClass)
getTitleAttribute in interface LegacyDataAppAdapterLegacyDataAdapterprotected DataObjectEntry getDataObjectEntry(Class<?> dataObjectClass)
dataObjectClass - IllegalArgumentException - if the given Class is nullpublic boolean areNotesSupported(Class<?> dataObjectClass)
areNotesSupported in interface LegacyDataAppAdapterLegacyDataAppAdapter.areNotesSupported(Class)public Map<String,?> getPrimaryKeyFieldValues(Object dataObject, boolean sortFieldNames)
dataObject - sortFieldNames - public String getDataObjectIdentifierString(Object dataObject)
getDataObjectIdentifierString in interface LegacyDataAppAdapterDataObjectMetaDataService.getDataObjectIdentifierString(java.lang.Object)public Class<?> getInquiryObjectClassIfNotTitle(Object dataObject, String propertyName)
getInquiryObjectClassIfNotTitle in interface LegacyDataAppAdapterpublic Map<String,String> getInquiryParameters(Object dataObject, List<String> keys, String propertyName)
getInquiryParameters in interface LegacyDataAppAdapterpublic boolean hasLocalLookup(Class<?> dataObjectClass)
hasLocalLookup in interface LegacyDataAppAdapterpublic boolean hasLocalInquiry(Class<?> dataObjectClass)
hasLocalInquiry in interface LegacyDataAppAdapterpublic DataObjectRelationship getDataObjectRelationship(Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry)
getDataObjectRelationship in interface LegacyDataAppAdapterprotected DataObjectRelationship populateRelationshipFromDictionaryReference(Class<?> dataObjectClass, RelationshipDefinition ddReference, String attributePrefix, boolean keysOnly)
public boolean isPersistable(Class<?> dataObjectClass)
isPersistable in interface LegacyDataAppAdapterpublic void setObjectPropertyDeep(Object bo, String propertyName, Class type, Object propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
setObjectPropertyDeep in interface LegacyDataAppAdapterIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionprotected DataObjectRelationship getRelationshipMetadata(Class<?> dataObjectClass, String attributeName, String attributePrefix)
protected boolean classHasSupportedFeatures(Class relationshipClass, boolean supportsLookup, boolean supportsInquiry)
public boolean isNull(Object object)
isNull in interface LegacyDataAppAdapterpublic void setObjectProperty(Object bo, String propertyName, Class propertyType, Object propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
setObjectProperty in interface LegacyDataAppAdapterIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionpublic Class materializeClassForProxiedObject(Object object)
materializeClassForProxiedObject in interface LegacyDataAppAdapterpublic Object getNestedValue(Object bo, String fieldName)
getNestedValue in interface LegacyDataAppAdapterpublic Object createNewObjectFromClass(Class clazz)
createNewObjectFromClass in interface LegacyDataAppAdapterpublic ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(Object dataObject, String referenceName)
getForeignKeyFieldsPopulationState in interface LegacyDataAppAdapterpublic Map<String,String> getForeignKeysForReference(Class<?> clazz, String attributeName)
getForeignKeysForReference in interface LegacyDataAppAdapterpublic boolean hasPrimaryKeyFieldValues(Object dataObject)
hasPrimaryKeyFieldValues in interface LegacyDataAppAdapterpublic <T extends Document> T findByDocumentHeaderId(Class<T> documentClass, String id)
findByDocumentHeaderId in interface LegacyDataAdapterpublic <T extends Document> List<T> findByDocumentHeaderIds(Class<T> documentClass, List<String> ids)
findByDocumentHeaderIds in interface LegacyDataAdapterpublic void setBusinessObjectService(BusinessObjectService businessObjectService)
public void setPersistenceService(PersistenceService persistenceService)
public void setLookupDao(LookupDao lookupDao)
public void setLookupCriteriaGenerator(LookupCriteriaGenerator lookupCriteriaGenerator)
public void setDateTimeService(DateTimeService dts)
public void setDatabasePlatform(DatabasePlatform databasePlatform)
public void setMaintenanceDocumentDaoOjb(MaintenanceDocumentDao maintenanceDocumentDaoOjb)
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
public void setDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetaDataService)
public void setKualiConfigurationService(ConfigurationService kualiConfigurationService)
public void setKualiModuleService(KualiModuleService kualiModuleService)
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
public void setDocumentDao(DocumentDao documentDao)
public org.kuali.rice.krad.data.DataObjectService getDataObjectService()
public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
public ViewDictionaryService getViewDictionaryService()
public void setViewDictionaryService(ViewDictionaryService viewDictionaryService)
Copyright © 2005–2018 The Kuali Foundation. All rights reserved.