Class DataObjectMetaDataServiceImpl
- All Implemented Interfaces:
DataObjectMetaDataService
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareNotesSupported(Class<?> dataObjectClass) Deprecated.Indicates whether notes are supported by the given data object class, currently this can only be true for business objectsprotected booleanclassHasSupportedFeatures(Class relationshipClass, boolean supportsLookup, boolean supportsInquiry) Deprecated.booleanequalsByPrimaryKeys(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 BusinessObjectEntrygetBusinessObjectEntry(Class businessObjectClass) Deprecated.protected DataDictionaryServiceDeprecated.protected DataObjectEntrygetDataObjectEntry(Class<?> dataObjectClass) Deprecated.getDataObjectIdentifierString(Object dataObject) Deprecated.Builds a string that uniquely identifiers the data object instancegetDataObjectRelationship(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 objectprotected DataObjectRelationshipgetDataObjectRelationship(RelationshipDefinition ddReference, Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry) Deprecated.getDataObjectRelationships(Class<?> dataObjectClass) Deprecated.Attempts to find relationships for the given data object classgetDictionaryRelationship(Class<?> c, String attributeName) Deprecated.gets the relationship that the attribute represents on the classprotected KualiModuleServiceDeprecated.protected PersistenceStructureServiceDeprecated.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 valuegetPrimaryKeyFieldValues(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 valueprotected DataObjectRelationshipgetRelationshipMetadata(Class<?> dataObjectClass, String attributeName, String attributePrefix) Deprecated.getTitleAttribute(Class<?> dataObjectClass) Deprecated.Returns the attribute to be associated with for object level markings.protected ViewDictionaryServiceDeprecated.booleanhasLocalInquiry(Class<?> dataObjectClass) Deprecated.Determines whether the given data object class has an associated inquiry in the local running applicationbooleanhasLocalLookup(Class<?> dataObjectClass) Deprecated.Determines whether the given data object class has an associated lookup in the local running applicationlistPrimaryKeyFieldNames(Class<?> clazz) Deprecated.Checks the DataDictionary and OJB Repository File to determine the primary fields names for a given class.protected DataObjectRelationshippopulateRelationshipFromDictionaryReference(Class<?> dataObjectClass, RelationshipDefinition ddReference, String attributePrefix, boolean keysOnly) Deprecated.voidsetDataDictionaryService(DataDictionaryService dataDictionaryService) Deprecated.voidsetKualiModuleService(KualiModuleService kualiModuleService) Deprecated.voidsetPersistenceStructureService(PersistenceStructureService persistenceStructureService) Deprecated.voidsetViewDictionaryService(ViewDictionaryService viewDictionaryService) Deprecated.protected voidvalidateBusinessObjectClass(Class businessObjectClass) Deprecated.
-
Constructor Details
-
DataObjectMetaDataServiceImpl
public DataObjectMetaDataServiceImpl()Deprecated.
-
-
Method Details
-
listPrimaryKeyFieldNames
Deprecated.Description copied from interface:DataObjectMetaDataServiceChecks the DataDictionary and OJB Repository File to determine the primary fields names for a given class.- Specified by:
listPrimaryKeyFieldNamesin interfaceDataObjectMetaDataService- Parameters:
clazz- - the Class to check for primary keys- Returns:
- a list of the primary key field names or an empty list if none are found
-
getPrimaryKeyFieldValues
Deprecated.Description copied from interface:DataObjectMetaDataServiceDetermines 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- Specified by:
getPrimaryKeyFieldValuesin interfaceDataObjectMetaDataService- Parameters:
dataObject- - object whose primary key field name,value pairs you want- Returns:
- a Map containing the names and values of fields for the given class which are designated as key fields in the OJB repository file or DataDictionary
-
getPrimaryKeyFieldValues
Deprecated.Description copied from interface:DataObjectMetaDataServiceDetermines 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- Specified by:
getPrimaryKeyFieldValuesin interfaceDataObjectMetaDataService- Parameters:
dataObject- - object whose primary key field name,value pairs you wantsortFieldNames- - if true, the returned Map will iterate through its entries sorted by fieldName- Returns:
- a Map containing the names and values of fields for the given class which are designated as key fields in the OJB repository file or DataDictionary
-
equalsByPrimaryKeys
Deprecated.Description copied from interface:DataObjectMetaDataServiceCompares two dataObject instances for equality of type and key values using toString() of each value for comparison purposes.- Specified by:
equalsByPrimaryKeysin interfaceDataObjectMetaDataService- Parameters:
do1-do2-- Returns:
- boolean indicating whether the two objects are equal.
-
getDataObjectRelationship
public DataObjectRelationship getDataObjectRelationship(Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry) Deprecated.Description copied from interface:DataObjectMetaDataServiceAttempts to find a relationship for the given attribute within the given data objectFirst the data dictionary is queried to find any relationship definitions setup that include the attribute, if found the
BusinessObjectRetationshipis 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- Specified by:
getDataObjectRelationshipin interfaceDataObjectMetaDataService- Parameters:
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- Returns:
- BusinessObjectRelationship for the attribute, or null if not found
-
getDataObjectRelationship
protected DataObjectRelationship getDataObjectRelationship(RelationshipDefinition ddReference, Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry) Deprecated. -
classHasSupportedFeatures
protected boolean classHasSupportedFeatures(Class relationshipClass, boolean supportsLookup, boolean supportsInquiry) Deprecated. -
getDictionaryRelationship
Deprecated.gets the relationship that the attribute represents on the class- Specified by:
getDictionaryRelationshipin interfaceDataObjectMetaDataService- Parameters:
c- - the class to which the attribute belongsattributeName- - property name for the attribute- Returns:
- a relationship definition for the attribute
-
populateRelationshipFromDictionaryReference
protected DataObjectRelationship populateRelationshipFromDictionaryReference(Class<?> dataObjectClass, RelationshipDefinition ddReference, String attributePrefix, boolean keysOnly) Deprecated. -
getRelationshipMetadata
protected DataObjectRelationship getRelationshipMetadata(Class<?> dataObjectClass, String attributeName, String attributePrefix) Deprecated. -
getTitleAttribute
Deprecated.Description copied from interface:DataObjectMetaDataServiceReturns the attribute to be associated with for object level markings. This would be the field chosen for inquiry links etc.- Specified by:
getTitleAttributein interfaceDataObjectMetaDataService- Parameters:
dataObjectClass- - data object class to obtain title attribute of- Returns:
- property name of title attribute or null if data object entry not found
- See Also:
-
areNotesSupported
Deprecated.Description copied from interface:DataObjectMetaDataServiceIndicates whether notes are supported by the given data object class, currently this can only be true for business objects- Specified by:
areNotesSupportedin interfaceDataObjectMetaDataService- Parameters:
dataObjectClass- - class for data object to check- Returns:
- boolean true if notes are supported for data object, false if notes are not supported
- See Also:
-
getDataObjectIdentifierString
Deprecated.Description copied from interface:DataObjectMetaDataServiceBuilds a string that uniquely identifiers the data object instanceBased 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.- Specified by:
getDataObjectIdentifierStringin interfaceDataObjectMetaDataService- Parameters:
dataObject- - data object instance to build identifier string for- Returns:
- String identifier string for data object
- See Also:
-
getDataObjectEntry
Deprecated.- Parameters:
dataObjectClass-- Returns:
- DataObjectEntry for the given dataObjectClass, or null if there is none
- Throws:
IllegalArgumentException- if the given Class is null
-
getDataObjectRelationships
Deprecated.Description copied from interface:DataObjectMetaDataServiceAttempts to find relationships for the given data object classFirst the data dictionary is queried to find any relationship definitions
BusinessObjectRetationshipis 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- Specified by:
getDataObjectRelationshipsin interfaceDataObjectMetaDataService- Parameters:
dataObjectClass- - class for the data object that contains the attribute- Returns:
- List of DataObjectRelationship for the class
-
hasLocalLookup
Deprecated.Description copied from interface:DataObjectMetaDataServiceDetermines whether the given data object class has an associated lookup in the local running application- Specified by:
hasLocalLookupin interfaceDataObjectMetaDataService- Parameters:
dataObjectClass- data object class to find lookup for- Returns:
- boolean true if a lookup exists for the data object class, false if not
- See Also:
-
hasLocalInquiry
Deprecated.Description copied from interface:DataObjectMetaDataServiceDetermines whether the given data object class has an associated inquiry in the local running application- Specified by:
hasLocalInquiryin interfaceDataObjectMetaDataService- Parameters:
dataObjectClass- data object class to find inquiry for- Returns:
- boolean true if a inquiry exists for the data object class, false if not
- See Also:
-
getBusinessObjectEntry
Deprecated.- Parameters:
businessObjectClass- - class of business object to return entry for- Returns:
- BusinessObjectEntry for the given dataObjectClass, or null if there is none
-
validateBusinessObjectClass
Deprecated.- Parameters:
businessObjectClass-- Throws:
IllegalArgumentException- if the given Class is null or is not a BusinessObject class
-
getDataDictionaryService
Deprecated. -
setDataDictionaryService
Deprecated. -
getKualiModuleService
Deprecated. -
setKualiModuleService
Deprecated. -
getPersistenceStructureService
Deprecated. -
setPersistenceStructureService
Deprecated. -
getViewDictionaryService
Deprecated. -
setViewDictionaryService
Deprecated.
-
DataObjectService, replaced by metadata provider framework