public class MockLegacyDataAdapter extends Object implements LegacyDataAdapter
LegacyDataAdapter
for supporting UIF unit tests.CLASS_NOT_PERSISTABLE_OJB_EXCEPTION_CLASS, OPTIMISTIC_LOCK_OJB_EXCEPTION_CLASS
Constructor and Description |
---|
MockLegacyDataAdapter() |
public MockLegacyDataAdapter()
public <T> T save(T dataObject)
save
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.save(java.lang.Object)
public <T> T linkAndSave(T dataObject)
linkAndSave
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.linkAndSave(java.lang.Object)
public <T> T saveDocument(T document)
saveDocument
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.saveDocument(java.lang.Object)
public <T> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
findBySinglePrimaryKey
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.findBySinglePrimaryKey(java.lang.Class, java.lang.Object)
public <T> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
findByPrimaryKey
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.findByPrimaryKey(java.lang.Class, java.util.Map)
public void delete(Object dataObject)
delete
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.delete(java.lang.Object)
public void deleteMatching(Class<?> clazz, Map<String,?> fieldValues)
deleteMatching
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.deleteMatching(java.lang.Class, java.util.Map)
public <T> T retrieve(T dataObject)
retrieve
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.retrieve(java.lang.Object)
public <T> Collection<T> findAll(Class<T> clazz)
findAll
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.findAll(java.lang.Class)
public <T> Collection<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
findMatching
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.findMatching(java.lang.Class, java.util.Map)
public <T> Collection<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
findMatchingOrderBy
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.findMatchingOrderBy(java.lang.Class, java.util.Map,
java.lang.String, boolean)
public Map<String,?> getPrimaryKeyFieldValues(Object dataObject)
getPrimaryKeyFieldValues
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getPrimaryKeyFieldValues(java.lang.Object)
public void retrieveNonKeyFields(Object persistableObject)
retrieveNonKeyFields
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.retrieveNonKeyFields(java.lang.Object)
public void retrieveReferenceObject(Object persistableObject, String referenceObjectName)
retrieveReferenceObject
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.retrieveReferenceObject(java.lang.Object, java.lang.String)
public void refreshAllNonUpdatingReferences(Object persistableObject)
refreshAllNonUpdatingReferences
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.refreshAllNonUpdatingReferences(java.lang.Object)
public Object resolveProxy(Object o)
resolveProxy
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.resolveProxy(java.lang.Object)
public boolean isProxied(Object object)
isProxied
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.isProxied(java.lang.Object)
public <T> Collection<T> findCollectionBySearchHelper(Class<T> clazz, Map<String,String> formProps, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
public <T> Collection<T> findCollectionBySearchHelper(Class<T> clazz, Map<String,String> formProps, List<String> wildcardAsLiteralPropertyNames, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
public <T> T findObjectBySearch(Class<T> clazz, Map<String,String> formProps)
findObjectBySearch
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.findObjectBySearch(java.lang.Class, java.util.Map)
public boolean allPrimaryKeyValuesPresentAndNotWildcard(Class<?> boClass, Map<String,String> formProps)
allPrimaryKeyValuesPresentAndNotWildcard
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.allPrimaryKeyValuesPresentAndNotWildcard(java.lang.Class,
java.util.Map)
public List<String> listPrimaryKeyFieldNames(Class<?> clazz)
listPrimaryKeyFieldNames
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.listPrimaryKeyFieldNames(java.lang.Class)
public Class<?> determineCollectionObjectType(Class<?> containingClass, String collectionPropertyName)
determineCollectionObjectType
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.determineCollectionObjectType(java.lang.Class,
java.lang.String)
public ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(Object bo, String referenceName)
getForeignKeyFieldsPopulationState
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getForeignKeyFieldsPopulationState(java.lang.Object,
java.lang.String)
public Map<String,String> getForeignKeysForReference(Class<?> clazz, String attributeName)
getForeignKeysForReference
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getForeignKeysForReference(java.lang.Class, java.lang.String)
public boolean hasPrimaryKeyFieldValues(Object persistableObject)
hasPrimaryKeyFieldValues
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.hasPrimaryKeyFieldValues(java.lang.Object)
public boolean hasReference(Class<?> boClass, String referenceName)
hasReference
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.hasReference(java.lang.Class, java.lang.String)
public boolean hasCollection(Class<?> boClass, String collectionName)
hasCollection
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.hasCollection(java.lang.Class, java.lang.String)
public boolean isExtensionAttribute(Class<?> boClass, String attributePropertyName, Class<?> propertyType)
isExtensionAttribute
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.isExtensionAttribute(java.lang.Class, java.lang.String,
java.lang.Class)
public Class<?> getExtensionAttributeClass(Class<?> boClass, String attributePropertyName)
getExtensionAttributeClass
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getExtensionAttributeClass(java.lang.Class, java.lang.String)
public Map<String,?> getPrimaryKeyFieldValuesDOMDS(Object dataObject)
getPrimaryKeyFieldValuesDOMDS
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getPrimaryKeyFieldValuesDOMDS(java.lang.Object)
public boolean equalsByPrimaryKeys(Object do1, Object do2)
equalsByPrimaryKeys
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.equalsByPrimaryKeys(java.lang.Object, java.lang.Object)
public void materializeAllSubObjects(Object object)
materializeAllSubObjects
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.materializeAllSubObjects(java.lang.Object)
public Class<?> getPropertyType(Object object, String propertyName)
getPropertyType
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getPropertyType(java.lang.Object, java.lang.String)
public Object getExtension(Class<?> businessObjectClass) throws InstantiationException, IllegalAccessException
getExtension
in interface LegacyDataAppAdapter
InstantiationException
IllegalAccessException
LegacyDataAppAdapter.getExtension(java.lang.Class)
public void refreshReferenceObject(Object businessObject, String referenceObjectName)
refreshReferenceObject
in interface LegacyDataAppAdapter
org.kuali.rice.krad.service.LegacyDataAdapter#refreshReferenceObject(org.kuali.rice.krad.bo.PersistableBusinessObject,
java.lang.String)
public boolean isLockable(Object object)
isLockable
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.isLockable(java.lang.Object)
public void verifyVersionNumber(Object dataObject)
verifyVersionNumber
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.verifyVersionNumber(java.lang.Object)
public RemotableQuickFinder.Builder createQuickFinder(Class<?> containingClass, String attributeName)
createQuickFinder
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.createQuickFinder(java.lang.Class, java.lang.String)
public boolean isReferenceUpdatable(Class<?> boClass, String referenceName)
isReferenceUpdatable
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.isReferenceUpdatable(java.lang.Class, java.lang.String)
public Map<String,Class> listReferenceObjectFields(Class<?> boClass)
listReferenceObjectFields
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.listReferenceObjectFields(java.lang.Class)
public boolean isCollectionUpdatable(Class<?> boClass, String collectionName)
isCollectionUpdatable
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.isCollectionUpdatable(java.lang.Class, java.lang.String)
public Map<String,Class> listCollectionObjectTypes(Class<?> boClass)
listCollectionObjectTypes
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.listCollectionObjectTypes(java.lang.Class)
public BusinessObject getReferenceIfExists(Object bo, String referenceName)
getReferenceIfExists
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getReferenceIfExists(java.lang.Object, java.lang.String)
public boolean allForeignKeyValuesPopulatedForReference(Object bo, String referenceName)
public RelationshipDefinition getDictionaryRelationship(Class<?> c, String attributeName)
getDictionaryRelationship
in interface LegacyDataAdapter
LegacyDataAdapter.getDictionaryRelationship(java.lang.Class, java.lang.String)
public String getTitleAttribute(Class<?> dataObjectClass)
getTitleAttribute
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getTitleAttribute(java.lang.Class)
public boolean areNotesSupported(Class<?> dataObjectClass)
areNotesSupported
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.areNotesSupported(java.lang.Class)
public String getDataObjectIdentifierString(Object dataObject)
getDataObjectIdentifierString
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getDataObjectIdentifierString(java.lang.Object)
public Class<?> getInquiryObjectClassIfNotTitle(Object dataObject, String propertyName)
getInquiryObjectClassIfNotTitle
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getInquiryObjectClassIfNotTitle(java.lang.Object,
java.lang.String)
public Map<String,String> getInquiryParameters(Object dataObject, List<String> keys, String propertyName)
getInquiryParameters
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getInquiryParameters(java.lang.Object, java.util.List,
java.lang.String)
public boolean hasLocalLookup(Class<?> dataObjectClass)
hasLocalLookup
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.hasLocalLookup(java.lang.Class)
public boolean hasLocalInquiry(Class<?> dataObjectClass)
hasLocalInquiry
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.hasLocalInquiry(java.lang.Class)
public DataObjectRelationship getDataObjectRelationship(Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry)
public boolean isPersistable(Class<?> dataObjectClass)
isPersistable
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.isPersistable(java.lang.Class)
public void setObjectPropertyDeep(Object bo, String propertyName, Class<?> type, Object propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
public Class<?> materializeClassForProxiedObject(Object object)
materializeClassForProxiedObject
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.materializeClassForProxiedObject(java.lang.Object)
public Object getNestedValue(Object bo, String fieldName)
getNestedValue
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.getNestedValue(java.lang.Object, java.lang.String)
public Object createNewObjectFromClass(Class clazz)
createNewObjectFromClass
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.createNewObjectFromClass(java.lang.Class)
public boolean isNull(Object object)
isNull
in interface LegacyDataAppAdapter
LegacyDataAppAdapter.isNull(java.lang.Object)
public void setObjectProperty(Object bo, String propertyName, Class propertyType, Object propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
public <T extends Document> T findByDocumentHeaderId(Class<T> documentClass, String id)
findByDocumentHeaderId
in interface LegacyDataAdapter
LegacyDataAdapter.findByDocumentHeaderId(java.lang.Class, java.lang.String)
public <T extends Document> List<T> findByDocumentHeaderIds(Class<T> documentClass, List<String> ids)
findByDocumentHeaderIds
in interface LegacyDataAdapter
LegacyDataAdapter.findByDocumentHeaderIds(java.lang.Class, java.util.List)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.