|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.service.impl.KRADLegacyDataAdapterImpl
public class KRADLegacyDataAdapterImpl
Constructor Summary | |
---|---|
KRADLegacyDataAdapterImpl()
|
Method Summary | ||
---|---|---|
boolean |
allForeignKeyValuesPopulatedForReference(Object bo,
String referenceName)
This method examines whether all the foreign key fields for the specified reference contain values. |
|
boolean |
allPrimaryKeyValuesPresentAndNotWildcard(Class<?> boClass,
Map<String,String> formProps)
Returns whether all primary key values are specified in the lookup map and do not contain any wildcards |
|
boolean |
areNotesSupported(Class<?> dataObjectClass)
|
|
protected boolean |
classHasSupportedFeatures(Class relationshipClass,
boolean supportsLookup,
boolean supportsInquiry)
|
|
Object |
createNewObjectFromClass(Class clazz)
This method safely creates a object from a class Convenience method to create new object and throw a runtime exception if it cannot If the class is an ExternalizableBusinessObject , this method will determine the interface for the EBO and
query the
appropriate module service to create a new instance. |
|
RemotableQuickFinder.Builder |
createQuickFinder(Class<?> containingClass,
String attributeName)
Returns the builder for a remotable quick finder for the given attribute name on the given containing class. |
|
protected RemotableQuickFinder.Builder |
createQuickFinderNew(Class<?> containingClass,
String attributeName)
New implementation of createQuickFinder which uses the new dataObjectService.getMetadataRepository(). |
|
void |
delete(Object dataObject)
Deletes a data object from the database. |
|
void |
deleteMatching(Class<?> type,
Map<String,?> fieldValues)
Deletes data objects from the database. |
|
Class<?> |
determineCollectionObjectType(Class<?> containingType,
String collectionPropertyName)
Determines the type of the collection object on the class with the collection with the given property name. |
|
boolean |
equalsByPrimaryKeys(Object do1,
Object do2)
Compares two dataObject instances for equality based on primary keys |
|
protected
|
filterCurrentDataObjects(Class<T> dataObjectClass,
Collection<T> unfiltered,
Map<String,String> formProps)
|
|
|
findAll(Class<T> clazz)
This method retrieves a collection of data objects populated with data, such that each record in the database populates a new object instance.This will only retrieve business objects by class type. |
|
|
findByDocumentHeaderId(Class<T> documentClass,
String id)
Finds the Document for the specified class with the given id. |
|
|
findByDocumentHeaderIds(Class<T> documentClass,
List<String> ids)
Finds the Documents for the specified class with the given list of ids. |
|
|
findByPrimaryKey(Class<T> clazz,
Map<String,?> primaryKeys)
Retrieves an object instance identified by its primary keys and values. |
|
|
findBySinglePrimaryKey(Class<T> clazz,
Object primaryKey)
Retrieves an object instance identified by its primary key. |
|
|
findCollectionBySearchHelper(Class<T> dataObjectClass,
Map<String,String> formProperties,
boolean unbounded,
boolean allPrimaryKeyValuesPresentAndNotWildcard,
Integer searchResultsLimit)
Returns a collection of objects based on the given search parameters. |
|
|
findCollectionBySearchHelper(Class<T> dataObjectClass,
Map<String,String> formProperties,
List<String> wildcardAsLiteralPropertyNames,
boolean unbounded,
boolean allPrimaryKeyValuesPresentAndNotWildcard,
Integer searchResultsLimit)
Returns a collection of objects based on the given search parameters. |
|
|
findMatching(Class<T> clazz,
Map<String,?> fieldValues)
This method retrieves a collection of data objects populated with data, such that each record in the database populates a new object instance. |
|
|
findMatchingOrderBy(Class<T> clazz,
Map<String,?> fieldValues,
String sortField,
boolean sortAscending)
This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
|
protected List<DataObjectRelationship> |
findNonUpdateableRelationships(Object persistableObject)
|
|
|
findObjectBySearch(Class<T> type,
Map<String,String> formProps)
Retrieves a Object based on the search criteria, which should uniquely identify a record. |
|
protected DataObjectEntry |
getDataObjectEntry(Class<?> dataObjectClass)
|
|
String |
getDataObjectIdentifierString(Object dataObject)
Gets the identifier for a data object |
|
DataObjectRelationship |
getDataObjectRelationship(Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
Attempts to find a relationship for the given attribute within the given data object |
|
RelationshipDefinition |
getDictionaryRelationship(Class<?> c,
String attributeName)
gets the relationship that the attribute represents on the class |
|
PersistableBusinessObjectExtension |
getExtension(Class<? extends PersistableBusinessObject> businessObjectClass)
Creates an instance of the extension for the given business object class. |
|
Class<?> |
getExtensionAttributeClass(Class<?> boClass,
String attributePropertyName)
|
|
ForeignKeyFieldsPopulationState |
getForeignKeyFieldsPopulationState(Object dataObject,
String referenceName)
This method checks the foreign keys for a reference on a given BO, and tests that all fk fields are populated if any are populated. |
|
Map<String,String> |
getForeignKeysForReference(Class<?> clazz,
String attributeName)
This method will return a Map of all the foreign key fields and the corresponding primary key fields for a given reference. |
|
Class<?> |
getInquiryObjectClassIfNotTitle(Object dataObject,
String propertyName)
Get Inquiry class if not the title attribute |
|
Map<String,String> |
getInquiryParameters(Object dataObject,
List<String> keys,
String propertyName)
Get Inquiry parameters for given keys for data object/property name |
|
Object |
getNestedValue(Object bo,
String fieldName)
This method safely extracts either simple values OR nested values. |
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject)
This method retrieves the primary key field values for the given data object |
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject,
boolean sortFieldNames)
Grabs primary key fields and sorts them if sort field names is true |
|
Map<String,?> |
getPrimaryKeyFieldValuesDOMDS(Object dataObject)
Determines the primary keys for the class of the given object, then for each key field retrieves the value from the object instance and populates the return map with the primary key name as the map key and the object value as the map value |
|
Class<?> |
getPropertyType(Object object,
String propertyName)
Returns the type of the property with the given name on the supplied object. |
|
Object |
getReferenceIfExists(Object bo,
String referenceName)
This method attempts to retrieve the reference from a BO if it exists. |
|
protected DataObjectRelationship |
getRelationshipMetadata(Class<?> dataObjectClass,
String attributeName,
String attributePrefix)
|
|
String |
getTitleAttribute(Class<?> dataObjectClass)
This method gets the title attribute from the datadictionary for the given data object class |
|
ViewDictionaryService |
getViewDictionaryService()
|
|
boolean |
hasCollection(Class<?> boClass,
String collectionName)
Returns whether BOs of the given class have a collection defined within them with the given collection name. |
|
boolean |
hasLocalInquiry(Class<?> dataObjectClass)
Determines whether the given data object class has an associated inquiry in the local running application |
|
boolean |
hasLocalLookup(Class<?> dataObjectClass)
Determines whether the given data object class has an associated lookup in the local running application |
|
boolean |
hasPrimaryKeyFieldValues(Object dataObject)
|
|
boolean |
hasReference(Class<?> boClass,
String referenceName)
Returns whether there is a reference defined in the persistence layer with the given name. |
|
boolean |
isCollectionUpdatable(Class<?> type,
String collectionName)
|
|
boolean |
isExtensionAttribute(Class<?> boClass,
String attributePropertyName,
Class<?> propertyType)
|
|
boolean |
isLockable(Object object)
Determines if the given ojbect is "lockable". |
|
boolean |
isNull(Object object)
This method is a OJB Proxy-safe way to test for null on a proxied object that may or may not be materialized yet. |
|
boolean |
isPersistable(Class<?> dataObjectClass)
Determines if a class is persistable |
|
boolean |
isProxied(Object object)
Returns whether the object is an ORM proxy |
|
boolean |
isReferenceUpdatable(Class<?> type,
String referenceName)
|
|
|
linkAndSave(T dataObject)
Links up any contained objects, and then saves the passed in object via the persistence layer. |
|
Map<String,Class> |
listCollectionObjectTypes(Class<?> type)
|
|
List<String> |
listPrimaryKeyFieldNames(Class<?> type)
Returns a list of primary key field names for the given class. |
|
protected List<String> |
listPrimaryKeyFieldNamesConsultingAllServices(Class<?> type)
LookupServiceImpl calls BusinessObjectMetaDataService to listPrimaryKeyFieldNames. |
|
Map<String,Class> |
listReferenceObjectFields(Class<?> type)
This method uses the persistence layer to determine the list of reference objects contained within this parent object. |
|
protected Boolean |
lookupCriteriaCurrentSpecifier(Map<String,String> formProps)
|
|
void |
materializeAllSubObjects(Object object)
Materializes any references on the given object. |
|
Class |
materializeClassForProxiedObject(Object object)
Attempts to find the Class for the given potentially proxied object |
|
protected
|
performDataObjectServiceLookup(Class<T> dataObjectClass,
Map<String,String> formProperties,
boolean unbounded,
boolean allPrimaryKeyValuesPresentAndNotWildcard,
Integer searchResultsLimit)
Our new DataObjectService-based lookup implementation |
|
protected
|
performDataObjectServiceLookup(Class<T> dataObjectClass,
Map<String,String> formProperties,
List<String> wildcardAsLiteralPropertyNames,
boolean unbounded,
boolean allPrimaryKeyValuesPresentAndNotWildcard,
Integer searchResultsLimit)
Our newer DataObjectService-based lookup implementation |
|
protected DataObjectRelationship |
populateRelationshipFromDictionaryReference(Class<?> dataObjectClass,
RelationshipDefinition ddReference,
String attributePrefix,
boolean keysOnly)
|
|
void |
refreshAllNonUpdatingReferences(Object persistableObject)
This method refreshes all reference objects to this main object that are 'non-updateable'. |
|
void |
refreshReferenceObject(PersistableBusinessObject businessObject,
String referenceObjectName)
Refreshes the specified reference object on the given business object. |
|
Object |
resolveProxy(Object o)
Returns the object underlying any ORM proxy layers |
|
|
retrieve(T dataObject)
Retrieves an object instance identified by the class of the given object and the object's primary key values. |
|
void |
retrieveNonKeyFields(Object persistableObject)
|
|
void |
retrieveReferenceObject(Object persistableObject,
String referenceObjectName)
|
|
|
save(T dataObject)
Saves the passed in object or list of objects via the persistence layer. |
|
|
saveDocument(T document)
|
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
|
void |
setDataObjectService(DataObjectService dataObjectService)
|
|
void |
setKualiConfigurationService(ConfigurationService kualiConfigurationService)
|
|
void |
setKualiModuleService(KualiModuleService kualiModuleService)
|
|
void |
setLookupCriteriaGenerator(LookupCriteriaGenerator lookupCriteriaGenerator)
|
|
void |
setObjectProperty(Object bo,
String propertyName,
Class propertyType,
Object propertyValue)
Sets the property of an object with the given value. |
|
void |
setObjectPropertyDeep(Object bo,
String propertyName,
Class type,
Object propertyValue)
Recursive; sets all occurences of the property in the object, its nested objects and its object lists with the given value. |
|
void |
setViewDictionaryService(ViewDictionaryService viewDictionaryService)
|
|
PersistableBusinessObject |
toPersistableBusinessObject(Object object)
Casts the given object to a PersistableBusinessObject, checking first whether or not it is a valid PersistableBusinessObject. |
|
protected DataObjectRelationship |
transformToDeprecatedDataObjectRelationship(Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
Class<?> relatedObjectClass,
DataObjectAttributeRelationship relationship)
|
|
void |
verifyVersionNumber(Object dataObject)
Verifies that the version number of the given data object (if it has one) matches what is currently in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KRADLegacyDataAdapterImpl()
Method Detail |
---|
public <T> T save(T dataObject)
LegacyDataAdapter
save
in interface LegacyDataAdapter
dataObject
- the data object to savepublic <T> T linkAndSave(T dataObject)
LegacyDataAdapter
linkAndSave
in interface LegacyDataAdapter
dataObject
- the data object to link and savepublic <T> T saveDocument(T document)
saveDocument
in interface LegacyDataAdapter
public <T> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
LegacyDataAdapter
findByPrimaryKey
in interface LegacyDataAdapter
clazz
- data object type classprimaryKeys
- map of String->Object key values
public <T> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
LegacyDataAdapter
LegacyDataAdapter.findByPrimaryKey(Class, Map)
findBySinglePrimaryKey
in interface LegacyDataAdapter
clazz
- data object type classprimaryKey
- the primary key object
public void delete(Object dataObject)
LegacyDataAdapter
delete
in interface LegacyDataAdapter
dataObject
- the data object to deletepublic void deleteMatching(Class<?> type, Map<String,?> fieldValues)
LegacyDataAdapter
deleteMatching
in interface LegacyDataAdapter
type
- the entity type to deletefieldValues
- map String->Object of field values to matchpublic <T> T retrieve(T dataObject)
LegacyDataAdapter
retrieve
in interface LegacyDataAdapter
dataObject
- the data object
public <T> Collection<T> findAll(Class<T> clazz)
LegacyDataAdapter
findAll
in interface LegacyDataAdapter
clazz
- the data object type class
public <T> Collection<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
LegacyDataAdapter
findMatching
in interface LegacyDataAdapter
clazz
- the data object type classfieldValues
- map String->Object of field values
public <T> Collection<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
LegacyDataAdapter
findMatchingOrderBy
in interface LegacyDataAdapter
public Map<String,?> getPrimaryKeyFieldValues(Object dataObject)
LegacyDataAdapter
getPrimaryKeyFieldValues
in interface LegacyDataAdapter
dataObject
- data object whose primary key field name,value pairs you want
public void retrieveNonKeyFields(Object persistableObject)
retrieveNonKeyFields
in interface LegacyDataAdapter
persistableObject
- object whose objects need to be filled in based on primary keyspublic void retrieveReferenceObject(Object persistableObject, String referenceObjectName)
retrieveReferenceObject
in interface LegacyDataAdapter
persistableObject
- object whose specified reference object needs to be filled in based on primary keysreferenceObjectName
- the name of the reference object that will be filled in based on primary key valuespublic void refreshAllNonUpdatingReferences(Object persistableObject)
LegacyDataAdapter
refreshAllNonUpdatingReferences
in interface LegacyDataAdapter
persistableObject
- - the businessObject to be refreshedprotected List<DataObjectRelationship> findNonUpdateableRelationships(Object persistableObject)
public boolean isProxied(Object object)
LegacyDataAdapter
isProxied
in interface LegacyDataAdapter
object
- the candidate object
public Object resolveProxy(Object o)
LegacyDataAdapter
resolveProxy
in interface LegacyDataAdapter
o
- the object for which to determine the underlying non-ORM-proxy target
public <T> Collection<T> findCollectionBySearchHelper(Class<T> dataObjectClass, Map<String,String> formProperties, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
LegacyDataAdapter
findCollectionBySearchHelper
in interface LegacyDataAdapter
dataObjectClass
- the data object typeformProperties
- field values for queryunbounded
- whether the search results should be boundedallPrimaryKeyValuesPresentAndNotWildcard
- indicates whether or not the search only contains non-wildcarded primary key valuessearchResultsLimit
- if the search is bounded, the search results limit, otherwise ignored. null is equivalent to KNS default for the clazz
public <T> Collection<T> findCollectionBySearchHelper(Class<T> dataObjectClass, Map<String,String> formProperties, List<String> wildcardAsLiteralPropertyNames, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
LegacyDataAdapter
Search results are bounded by the KNS search results limit determined for the class. This implementation further isolates the UIFramework from the LookupService and should be used in place of the deprecated method.
findCollectionBySearchHelper
in interface LegacyDataAdapter
dataObjectClass
- the data object typeformProperties
- field values for querywildcardAsLiteralPropertyNames
- list of fields for query that do not allow wildcardsunbounded
- whether the search results should be boundedallPrimaryKeyValuesPresentAndNotWildcard
- indicates whether or not the search only contains non-wildcarded primary key valuessearchResultsLimit
- if the search is bounded, the search results limit, otherwise ignored. null is equivalent to KNS default for the clazz
protected <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 class
protected <T> Collection<T> performDataObjectServiceLookup(Class<T> dataObjectClass, Map<String,String> formProperties, List<String> wildcardAsLiteralPropertyNames, boolean unbounded, boolean allPrimaryKeyValuesPresentAndNotWildcard, Integer searchResultsLimit)
T
- the data object typedataObjectClass
- the dataobject classformProperties
- the incoming lookup form propertieswildcardAsLiteralPropertyNames
- list of the lookup properties with wildcard characters disabledunbounded
- whether the search is unboundedsearchResultsLimit
- the searchResultsLimit; null implies use of default KNS value if set for the class
protected <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)
LegacyDataAdapter
findObjectBySearch
in interface LegacyDataAdapter
type
- the data object typeformProps
- field values for query
public boolean allPrimaryKeyValuesPresentAndNotWildcard(Class<?> boClass, Map<String,String> formProps)
allPrimaryKeyValuesPresentAndNotWildcard
in interface LegacyDataAdapter
boClass
- the bo class to lookupformProps
- the incoming form/lookup properties
public List<String> listPrimaryKeyFieldNames(Class<?> type)
LegacyDataAdapter
listPrimaryKeyFieldNames
in interface LegacyDataAdapter
protected List<String> listPrimaryKeyFieldNamesConsultingAllServices(Class<?> type)
type
- the data object class
public Class<?> determineCollectionObjectType(Class<?> containingType, String collectionPropertyName)
LegacyDataAdapter
determineCollectionObjectType
in interface LegacyDataAdapter
containingType
- the class of the object containing the collectioncollectionPropertyName
- the name of the property identifying the collection
public boolean hasReference(Class<?> boClass, String referenceName)
LegacyDataAdapter
hasReference
in interface LegacyDataAdapter
public boolean hasCollection(Class<?> boClass, String collectionName)
LegacyDataAdapter
hasCollection
in interface LegacyDataAdapter
public boolean isExtensionAttribute(Class<?> boClass, String attributePropertyName, Class<?> propertyType)
isExtensionAttribute
in interface LegacyDataAdapter
public Class<?> getExtensionAttributeClass(Class<?> boClass, String attributePropertyName)
getExtensionAttributeClass
in interface LegacyDataAdapter
public Map<String,?> getPrimaryKeyFieldValuesDOMDS(Object dataObject)
LegacyDataAdapter
Has DOMDS on the end because this is the version that delegates to DataObjectMetaDataService
getPrimaryKeyFieldValuesDOMDS
in interface LegacyDataAdapter
dataObject
- - object whose primary key field name,value pairs you want
public boolean equalsByPrimaryKeys(Object do1, Object do2)
LegacyDataAdapter
equalsByPrimaryKeys
in interface LegacyDataAdapter
public PersistableBusinessObject toPersistableBusinessObject(Object object)
LegacyDataAdapter
toPersistableBusinessObject
in interface LegacyDataAdapter
object
- the object to cast to a PersistableBusinessObject, must be non-null
public void materializeAllSubObjects(Object object)
LegacyDataAdapter
materializeAllSubObjects
in interface LegacyDataAdapter
object
- object to materializepublic Class<?> getPropertyType(Object object, String propertyName)
LegacyDataAdapter
getPropertyType
in interface LegacyDataAdapter
object
- the object against which to searchpropertyName
- the (optionally nested) property name for which to locate the type
public PersistableBusinessObjectExtension getExtension(Class<? extends PersistableBusinessObject> businessObjectClass) throws InstantiationException, IllegalAccessException
LegacyDataAdapter
getExtension
in interface LegacyDataAdapter
InstantiationException
IllegalAccessException
public void refreshReferenceObject(PersistableBusinessObject businessObject, String referenceObjectName)
LegacyDataAdapter
refreshReferenceObject
in interface LegacyDataAdapter
public boolean isLockable(Object object)
LegacyDataAdapter
isLockable
in interface LegacyDataAdapter
object
- object for which to determine lockable
public void verifyVersionNumber(Object dataObject)
LegacyDataAdapter
If this particular data object does not have versioning, this method will do nothing.
verifyVersionNumber
in interface LegacyDataAdapter
dataObject
- the data object to check the version number forpublic RemotableQuickFinder.Builder createQuickFinder(Class<?> containingClass, String attributeName)
LegacyDataAdapter
createQuickFinder
in interface LegacyDataAdapter
containingClass
- the class on which to locate the attributeattributeName
- the name of the attribute for which to build the quickfinder on the specified containing class
protected RemotableQuickFinder.Builder createQuickFinderNew(Class<?> containingClass, String attributeName)
public boolean isReferenceUpdatable(Class<?> type, String referenceName)
isReferenceUpdatable
in interface LegacyDataAdapter
public Map<String,Class> listReferenceObjectFields(Class<?> type)
LegacyDataAdapter
listReferenceObjectFields
in interface LegacyDataAdapter
type
- Class that would like to be analyzed for reference names
public boolean isCollectionUpdatable(Class<?> type, String collectionName)
isCollectionUpdatable
in interface LegacyDataAdapter
public Map<String,Class> listCollectionObjectTypes(Class<?> type)
listCollectionObjectTypes
in interface LegacyDataAdapter
public Object getReferenceIfExists(Object bo, String referenceName)
LegacyDataAdapter
getReferenceIfExists
in interface LegacyDataAdapter
bo
- - populated BusinessObject instance that includes the referenceName propertyreferenceName
- - name of the member/property to load
public boolean allForeignKeyValuesPopulatedForReference(Object bo, String referenceName)
LegacyDataAdapter
allForeignKeyValuesPopulatedForReference
in interface LegacyDataAdapter
public RelationshipDefinition getDictionaryRelationship(Class<?> c, String attributeName)
getDictionaryRelationship
in interface LegacyDataAdapter
c
- - the class to which the attribute belongsattributeName
- - property name for the attribute
public String getTitleAttribute(Class<?> dataObjectClass)
LegacyDataAdapter
getTitleAttribute
in interface LegacyDataAdapter
LegacyDataAdapter
protected DataObjectEntry getDataObjectEntry(Class<?> dataObjectClass)
dataObjectClass
-
IllegalArgumentException
- if the given Class is nullpublic boolean areNotesSupported(Class<?> dataObjectClass)
areNotesSupported
in interface LegacyDataAdapter
LegacyDataAdapter.areNotesSupported(java.lang.Class)
public Map<String,?> getPrimaryKeyFieldValues(Object dataObject, boolean sortFieldNames)
dataObject
- sortFieldNames
-
public String getDataObjectIdentifierString(Object dataObject)
LegacyDataAdapter
getDataObjectIdentifierString
in interface LegacyDataAdapter
dataObject
- data object
DataObjectMetaDataService.getDataObjectIdentifierString(java.lang.Object)
public Class<?> getInquiryObjectClassIfNotTitle(Object dataObject, String propertyName)
LegacyDataAdapter
getInquiryObjectClassIfNotTitle
in interface LegacyDataAdapter
public Map<String,String> getInquiryParameters(Object dataObject, List<String> keys, String propertyName)
LegacyDataAdapter
getInquiryParameters
in interface LegacyDataAdapter
public boolean hasLocalLookup(Class<?> dataObjectClass)
LegacyDataAdapter
hasLocalLookup
in interface LegacyDataAdapter
dataObjectClass
- data object class to find lookup for
public boolean hasLocalInquiry(Class<?> dataObjectClass)
LegacyDataAdapter
hasLocalInquiry
in interface LegacyDataAdapter
dataObjectClass
- data object class to find inquiry for
public DataObjectRelationship getDataObjectRelationship(Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry)
LegacyDataAdapter
First the data dictionary is queried to find any relationship definitions
setup that include the attribute, if found the
BusinessObjectRetationship
is build from that. If not and
the data object class is persistent, relationships are retrieved from the
persistence service. Nested attributes are handled in addition to
external business objects. If multiple relationships are found, the one
that contains the least amount of joining keys is returned
getDataObjectRelationship
in interface LegacyDataAdapter
dataObject
- - data object instance that contains the attributedataObjectClass
- - class for the data object that contains the attributeattributeName
- - property name for the attributeattributePrefix
- - property prefix for the attributekeysOnly
- - indicates whether only primary key fields should be returned
in the relationshipsupportsLookup
- - indicates whether the relationship should support lookupsupportsInquiry
- - indicates whether the relationship should support inquiry
protected DataObjectRelationship transformToDeprecatedDataObjectRelationship(Class<?> dataObjectClass, String attributeName, String attributePrefix, Class<?> relatedObjectClass, DataObjectAttributeRelationship relationship)
protected DataObjectRelationship populateRelationshipFromDictionaryReference(Class<?> dataObjectClass, RelationshipDefinition ddReference, String attributePrefix, boolean keysOnly)
public boolean isPersistable(Class<?> dataObjectClass)
LegacyDataAdapter
isPersistable
in interface LegacyDataAdapter
dataObjectClass
- - data object instance that contains the attribute
protected DataObjectRelationship getRelationshipMetadata(Class<?> dataObjectClass, String attributeName, String attributePrefix)
protected boolean classHasSupportedFeatures(Class relationshipClass, boolean supportsLookup, boolean supportsInquiry)
public ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(Object dataObject, String referenceName)
LegacyDataAdapter
getForeignKeyFieldsPopulationState
in interface LegacyDataAdapter
dataObject
- - A populated BusinessObject descendent. Must contain an attributed named referenceName.referenceName
- - The name of the field that is a reference we are analyzing.
public Map<String,String> getForeignKeysForReference(Class<?> clazz, String attributeName)
LegacyDataAdapter
getForeignKeysForReference
in interface LegacyDataAdapter
clazz
- - Class that contains the named referenceattributeName
- - Name of the member that is the reference you want foreign keys for
public void setObjectPropertyDeep(Object bo, String propertyName, Class type, Object propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
LegacyDataAdapter
setObjectPropertyDeep
in interface LegacyDataAdapter
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public boolean hasPrimaryKeyFieldValues(Object dataObject)
hasPrimaryKeyFieldValues
in interface LegacyDataAdapter
public Class materializeClassForProxiedObject(Object object)
LegacyDataAdapter
materializeClassForProxiedObject
in interface LegacyDataAdapter
object
- the potentially proxied object to find the Class of
public Object getNestedValue(Object bo, String fieldName)
LegacyDataAdapter
getNestedValue
in interface LegacyDataAdapter
public Object createNewObjectFromClass(Class clazz)
LegacyDataAdapter
ExternalizableBusinessObject
, this method will determine the interface for the EBO and
query the
appropriate module service to create a new instance.
createNewObjectFromClass
in interface LegacyDataAdapter
public boolean isNull(Object object)
LegacyDataAdapter
isNull
in interface LegacyDataAdapter
object
- - any object, proxied or not, materialized or not
public void setObjectProperty(Object bo, String propertyName, Class propertyType, Object propertyValue) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
LegacyDataAdapter
setObjectProperty
in interface LegacyDataAdapter
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public <T extends Document> T findByDocumentHeaderId(Class<T> documentClass, String id)
LegacyDataAdapter
findByDocumentHeaderId
in interface LegacyDataAdapter
public <T extends Document> List<T> findByDocumentHeaderIds(Class<T> documentClass, List<String> ids)
LegacyDataAdapter
findByDocumentHeaderIds
in interface LegacyDataAdapter
public void setDataObjectService(DataObjectService dataObjectService)
public void setLookupCriteriaGenerator(LookupCriteriaGenerator lookupCriteriaGenerator)
public void setKualiConfigurationService(ConfigurationService kualiConfigurationService)
public void setKualiModuleService(KualiModuleService kualiModuleService)
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
public ViewDictionaryService getViewDictionaryService()
public void setViewDictionaryService(ViewDictionaryService viewDictionaryService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |