DataObjectService
,
replaced by metadata provider framework@Deprecated public class DataObjectMetaDataServiceImpl extends Object implements DataObjectMetaDataService
Constructor and Description |
---|
DataObjectMetaDataServiceImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areNotesSupported(Class<?> dataObjectClass)
Deprecated.
Indicates whether notes are supported by the given data object class, currently this
can only be true for business objects
|
protected boolean |
classHasSupportedFeatures(Class relationshipClass,
boolean supportsLookup,
boolean supportsInquiry)
Deprecated.
|
boolean |
equalsByPrimaryKeys(Object do1,
Object do2)
Deprecated.
Compares two dataObject instances for equality of type and key values using toString()
of each value for comparison purposes.
|
protected BusinessObjectEntry |
getBusinessObjectEntry(Class businessObjectClass)
Deprecated.
|
protected DataDictionaryService |
getDataDictionaryService()
Deprecated.
|
protected DataObjectEntry |
getDataObjectEntry(Class<?> dataObjectClass)
Deprecated.
|
String |
getDataObjectIdentifierString(Object dataObject)
Deprecated.
Builds a string that uniquely identifiers the data object instance
|
DataObjectRelationship |
getDataObjectRelationship(Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
Deprecated.
Attempts to find a relationship for the given attribute within the given
data object
|
protected DataObjectRelationship |
getDataObjectRelationship(RelationshipDefinition ddReference,
Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
Deprecated.
|
List<DataObjectRelationship> |
getDataObjectRelationships(Class<?> dataObjectClass)
Deprecated.
Attempts to find relationships for the given data object class
|
RelationshipDefinition |
getDictionaryRelationship(Class<?> c,
String attributeName)
Deprecated.
gets the relationship that the attribute represents on the class
|
protected KualiModuleService |
getKualiModuleService()
Deprecated.
|
protected PersistenceStructureService |
getPersistenceStructureService()
Deprecated.
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject)
Deprecated.
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
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject,
boolean sortFieldNames)
Deprecated.
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
|
protected DataObjectRelationship |
getRelationshipMetadata(Class<?> dataObjectClass,
String attributeName,
String attributePrefix)
Deprecated.
|
String |
getTitleAttribute(Class<?> dataObjectClass)
Deprecated.
Returns the attribute to be associated with for object level markings.
|
protected ViewDictionaryService |
getViewDictionaryService()
Deprecated.
|
boolean |
hasLocalInquiry(Class<?> dataObjectClass)
Deprecated.
Determines whether the given data object class has an associated inquiry in the local
running application
|
boolean |
hasLocalLookup(Class<?> dataObjectClass)
Deprecated.
Determines whether the given data object class has an associated lookup in the local
running application
|
List<String> |
listPrimaryKeyFieldNames(Class<?> clazz)
Deprecated.
Checks the DataDictionary and OJB Repository File to determine the primary
fields names for a given class.
|
protected DataObjectRelationship |
populateRelationshipFromDictionaryReference(Class<?> dataObjectClass,
RelationshipDefinition ddReference,
String attributePrefix,
boolean keysOnly)
Deprecated.
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
Deprecated.
|
void |
setKualiModuleService(KualiModuleService kualiModuleService)
Deprecated.
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Deprecated.
|
void |
setViewDictionaryService(ViewDictionaryService viewDictionaryService)
Deprecated.
|
protected void |
validateBusinessObjectClass(Class businessObjectClass)
Deprecated.
|
public DataObjectMetaDataServiceImpl()
public List<String> listPrimaryKeyFieldNames(Class<?> clazz)
DataObjectMetaDataService
listPrimaryKeyFieldNames
in interface DataObjectMetaDataService
clazz
- - the Class to check for primary keyspublic Map<String,?> getPrimaryKeyFieldValues(Object dataObject)
DataObjectMetaDataService
getPrimaryKeyFieldValues
in interface DataObjectMetaDataService
dataObject
- - object whose primary key field name,value pairs you wantpublic Map<String,?> getPrimaryKeyFieldValues(Object dataObject, boolean sortFieldNames)
DataObjectMetaDataService
getPrimaryKeyFieldValues
in interface DataObjectMetaDataService
dataObject
- - object whose primary key field name,value pairs you wantsortFieldNames
- - if true, the returned Map will iterate through its entries sorted by fieldNamepublic boolean equalsByPrimaryKeys(Object do1, Object do2)
DataObjectMetaDataService
equalsByPrimaryKeys
in interface DataObjectMetaDataService
public DataObjectRelationship getDataObjectRelationship(Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry)
DataObjectMetaDataService
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 DataObjectMetaDataService
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 inquiryprotected DataObjectRelationship getDataObjectRelationship(RelationshipDefinition ddReference, Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry)
protected boolean classHasSupportedFeatures(Class relationshipClass, boolean supportsLookup, boolean supportsInquiry)
public RelationshipDefinition getDictionaryRelationship(Class<?> c, String attributeName)
getDictionaryRelationship
in interface DataObjectMetaDataService
c
- - the class to which the attribute belongsattributeName
- - property name for the attributeprotected DataObjectRelationship populateRelationshipFromDictionaryReference(Class<?> dataObjectClass, RelationshipDefinition ddReference, String attributePrefix, boolean keysOnly)
protected DataObjectRelationship getRelationshipMetadata(Class<?> dataObjectClass, String attributeName, String attributePrefix)
public String getTitleAttribute(Class<?> dataObjectClass)
DataObjectMetaDataService
getTitleAttribute
in interface DataObjectMetaDataService
dataObjectClass
- - data object class to obtain title attribute ofDataObjectMetaDataService.getTitleAttribute(java.lang.Class)
public boolean areNotesSupported(Class<?> dataObjectClass)
DataObjectMetaDataService
areNotesSupported
in interface DataObjectMetaDataService
dataObjectClass
- - class for data object to checkDataObjectMetaDataService.areNotesSupported(java.lang.Class)
public String getDataObjectIdentifierString(Object dataObject)
DataObjectMetaDataService
Based on the metadata available for the class of the data object, the values for fields that uniquely
identify an instance are concatenated together into one string. For general data objects these fields
will be the primary key fields defined in the data dictionary. For the case of objects with type
PersistableBusinessObject
, the object id field will be used.
getDataObjectIdentifierString
in interface DataObjectMetaDataService
dataObject
- - data object instance to build identifier string forDataObjectMetaDataService.getDataObjectIdentifierString(java.lang.Object)
protected DataObjectEntry getDataObjectEntry(Class<?> dataObjectClass)
dataObjectClass
- IllegalArgumentException
- if the given Class is nullpublic List<DataObjectRelationship> getDataObjectRelationships(Class<?> dataObjectClass)
DataObjectMetaDataService
First the data dictionary is queried to find any relationship definitions
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
getDataObjectRelationships
in interface DataObjectMetaDataService
dataObjectClass
- - class for the data object that contains the attributepublic boolean hasLocalLookup(Class<?> dataObjectClass)
DataObjectMetaDataService
hasLocalLookup
in interface DataObjectMetaDataService
dataObjectClass
- data object class to find lookup forDataObjectMetaDataService.hasLocalLookup(java.lang.Class<?>)
public boolean hasLocalInquiry(Class<?> dataObjectClass)
DataObjectMetaDataService
hasLocalInquiry
in interface DataObjectMetaDataService
dataObjectClass
- data object class to find inquiry forDataObjectMetaDataService.hasLocalInquiry(java.lang.Class<?>)
protected BusinessObjectEntry getBusinessObjectEntry(Class businessObjectClass)
businessObjectClass
- - class of business object to return entry forprotected void validateBusinessObjectClass(Class businessObjectClass)
businessObjectClass
- IllegalArgumentException
- if the given Class is null or is not a BusinessObject classprotected DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
protected KualiModuleService getKualiModuleService()
public void setKualiModuleService(KualiModuleService kualiModuleService)
protected PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
protected ViewDictionaryService getViewDictionaryService()
public void setViewDictionaryService(ViewDictionaryService viewDictionaryService)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.