MetadataRepository
instead@Deprecated public interface DataObjectMetaDataService
Service provides a facade to the various services for retrieving metadata
within the framework, such as the DataDictionaryService
and
the PersistenceService
Modifier and Type | Method and Description |
---|---|
boolean |
areNotesSupported(Class<?> dataObjectClass)
Deprecated.
|
boolean |
equalsByPrimaryKeys(Object do1,
Object do2)
Deprecated.
|
String |
getDataObjectIdentifierString(Object dataObject)
Deprecated.
|
DataObjectRelationship |
getDataObjectRelationship(Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
Deprecated.
|
List<DataObjectRelationship> |
getDataObjectRelationships(Class<?> dataObjectClass)
Deprecated.
|
RelationshipDefinition |
getDictionaryRelationship(Class<?> dataObjectClass,
String attributeName)
Deprecated.
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject)
Deprecated.
use
DataObjectWrapper.getPrimaryKeyValues() instead |
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject,
boolean sortFieldNames)
Deprecated.
use
DataObjectWrapper.getPrimaryKeyValues() instead, and sort manually if needed |
String |
getTitleAttribute(Class<?> dataObjectClass)
Deprecated.
|
boolean |
hasLocalInquiry(Class<?> dataObjectClass)
Deprecated.
|
boolean |
hasLocalLookup(Class<?> dataObjectClass)
Deprecated.
|
List<String> |
listPrimaryKeyFieldNames(Class<?> clazz)
Deprecated.
|
@Deprecated List<String> listPrimaryKeyFieldNames(Class<?> clazz)
DataObjectMetadata.getPrimaryKeyAttributeNames()
clazz
- - the Class to check for primary keys@Deprecated Map<String,?> getPrimaryKeyFieldValues(Object dataObject)
DataObjectWrapper.getPrimaryKeyValues()
insteaddataObject
- - object whose primary key field name,value pairs you wantIllegalArgumentException
- if the given Object is null@Deprecated Map<String,?> getPrimaryKeyFieldValues(Object dataObject, boolean sortFieldNames)
DataObjectWrapper.getPrimaryKeyValues()
instead, and sort manually if neededdataObject
- - object whose primary key field name,value pairs you wantsortFieldNames
- - if true, the returned Map will iterate through its entries sorted by fieldNameIllegalArgumentException
- if the given Object is null@Deprecated boolean equalsByPrimaryKeys(Object do1, Object do2)
DataObjectWrapper.equalsByPrimaryKey(Object)
do1
- do2
- @Deprecated DataObjectRelationship getDataObjectRelationship(Object dataObject, Class<?> dataObjectClass, String attributeName, String attributePrefix, boolean keysOnly, boolean supportsLookup, boolean supportsInquiry)
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
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@Deprecated List<DataObjectRelationship> getDataObjectRelationships(Class<?> dataObjectClass)
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
dataObjectClass
- - class for the data object that contains the attribute@Deprecated RelationshipDefinition getDictionaryRelationship(Class<?> dataObjectClass, String attributeName)
dataObjectClass
- - data object class that contains the attributeattributeName
- - property name for the attribute@Deprecated String getTitleAttribute(Class<?> dataObjectClass)
dataObjectClass
- - data object class to obtain title attribute ofIllegalArgumentException
- if the given Class is null@Deprecated boolean areNotesSupported(Class<?> dataObjectClass)
dataObjectClass
- - class for data object to check@Deprecated String getDataObjectIdentifierString(Object dataObject)
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.
dataObject
- - data object instance to build identifier string for@Deprecated boolean hasLocalLookup(Class<?> dataObjectClass)
dataObjectClass
- data object class to find lookup for@Deprecated boolean hasLocalInquiry(Class<?> dataObjectClass)
dataObjectClass
- data object class to find inquiry forCopyright © 2005–2016 The Kuali Foundation. All rights reserved.