org.kuali.rice.krad.service.impl
Class DataObjectMetaDataServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.DataObjectMetaDataServiceImpl
- All Implemented Interfaces:
- org.kuali.rice.krad.service.DataObjectMetaDataService
- Direct Known Subclasses:
- BusinessObjectMetaDataServiceImpl
public class DataObjectMetaDataServiceImpl
- extends Object
- implements org.kuali.rice.krad.service.DataObjectMetaDataService
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Method Summary |
boolean |
areNotesSupported(Class dataObjectClass)
|
boolean |
equalsByPrimaryKeys(Object do1,
Object do2)
|
protected org.kuali.rice.krad.datadictionary.BusinessObjectEntry |
getBusinessObjectEntry(Class businessObjectClass)
|
protected org.kuali.rice.krad.service.DataDictionaryService |
getDataDictionaryService()
Protected method to allow subclasses to access the dataDictionaryService. |
protected org.kuali.rice.krad.datadictionary.DataObjectEntry |
getDataObjectEntry(Class<?> dataObjectClass)
|
org.kuali.rice.krad.bo.BusinessObjectRelationship |
getDataObjectRelationship(Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
|
protected org.kuali.rice.krad.bo.BusinessObjectRelationship |
getDataObjectRelationship(org.kuali.rice.krad.datadictionary.RelationshipDefinition ddReference,
Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
|
org.kuali.rice.krad.datadictionary.RelationshipDefinition |
getDictionaryRelationship(Class<?> c,
String attributeName)
|
protected org.kuali.rice.krad.service.KualiModuleService |
getKualiModuleService()
Protected method to allow subclasses to access the kualiModuleService. |
protected org.kuali.rice.krad.service.PersistenceStructureService |
getPersistenceStructureService()
Protected method to allow subclasses to access the
persistenceStructureService. |
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject)
|
Map<String,?> |
getPrimaryKeyFieldValues(Object dataObject,
boolean sortFieldNames)
|
protected org.kuali.rice.krad.bo.BusinessObjectRelationship |
getRelationshipMetadata(Class<?> dataObjectClass,
String attributeName,
String attributePrefix)
|
String |
getTitleAttribute(Class<?> dataObjectClass)
|
protected org.kuali.rice.krad.uif.service.ViewDictionaryService |
getViewDictionaryService()
|
List<String> |
listPrimaryKeyFieldNames(Class<?> clazz)
|
protected org.kuali.rice.krad.bo.BusinessObjectRelationship |
populateRelationshipFromDictionaryReference(Class<?> dataObjectClass,
org.kuali.rice.krad.datadictionary.RelationshipDefinition ddReference,
String attributePrefix,
boolean keysOnly)
|
void |
setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService)
|
void |
setKualiModuleService(org.kuali.rice.krad.service.KualiModuleService kualiModuleService)
|
void |
setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
|
void |
setViewDictionaryService(org.kuali.rice.krad.uif.service.ViewDictionaryService viewDictionaryService)
|
protected void |
validateBusinessObjectClass(Class businessObjectClass)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataObjectMetaDataServiceImpl
public DataObjectMetaDataServiceImpl()
listPrimaryKeyFieldNames
public List<String> listPrimaryKeyFieldNames(Class<?> clazz)
- Specified by:
listPrimaryKeyFieldNames
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
- See Also:
DataObjectMetaDataService.listPrimaryKeyFieldNames(java.lang.Class)
getPrimaryKeyFieldValues
public Map<String,?> getPrimaryKeyFieldValues(Object dataObject)
- Specified by:
getPrimaryKeyFieldValues
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
- See Also:
DataObjectMetaDataService.getPrimaryKeyFieldValues(java.lang.Object)
getPrimaryKeyFieldValues
public Map<String,?> getPrimaryKeyFieldValues(Object dataObject,
boolean sortFieldNames)
- Specified by:
getPrimaryKeyFieldValues
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
- See Also:
DataObjectMetaDataService.getPrimaryKeyFieldValues(java.lang.Object,
boolean)
equalsByPrimaryKeys
public boolean equalsByPrimaryKeys(Object do1,
Object do2)
- Specified by:
equalsByPrimaryKeys
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
- See Also:
DataObjectMetaDataService.equalsByPrimaryKeys(java.lang.Object,
java.lang.Object)
getDataObjectRelationship
public org.kuali.rice.krad.bo.BusinessObjectRelationship getDataObjectRelationship(Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
- Specified by:
getDataObjectRelationship
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
- See Also:
DataObjectMetaDataService.getDataObjectRelationship(java.lang.Object,
java.lang.Class, java.lang.String, java.lang.String, boolean,
boolean, boolean)
getDataObjectRelationship
protected org.kuali.rice.krad.bo.BusinessObjectRelationship getDataObjectRelationship(org.kuali.rice.krad.datadictionary.RelationshipDefinition ddReference,
Object dataObject,
Class<?> dataObjectClass,
String attributeName,
String attributePrefix,
boolean keysOnly,
boolean supportsLookup,
boolean supportsInquiry)
getDictionaryRelationship
public org.kuali.rice.krad.datadictionary.RelationshipDefinition getDictionaryRelationship(Class<?> c,
String attributeName)
- Specified by:
getDictionaryRelationship
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
populateRelationshipFromDictionaryReference
protected org.kuali.rice.krad.bo.BusinessObjectRelationship populateRelationshipFromDictionaryReference(Class<?> dataObjectClass,
org.kuali.rice.krad.datadictionary.RelationshipDefinition ddReference,
String attributePrefix,
boolean keysOnly)
getRelationshipMetadata
protected org.kuali.rice.krad.bo.BusinessObjectRelationship getRelationshipMetadata(Class<?> dataObjectClass,
String attributeName,
String attributePrefix)
getTitleAttribute
public String getTitleAttribute(Class<?> dataObjectClass)
- Specified by:
getTitleAttribute
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
- See Also:
DataObjectMetaDataService.getTitleAttribute(java.lang.Class)
areNotesSupported
public boolean areNotesSupported(Class dataObjectClass)
- Specified by:
areNotesSupported
in interface org.kuali.rice.krad.service.DataObjectMetaDataService
- See Also:
DataObjectMetaDataService.areNotesSupported(java.lang.Class)
getDataObjectEntry
protected org.kuali.rice.krad.datadictionary.DataObjectEntry getDataObjectEntry(Class<?> dataObjectClass)
- Parameters:
dataObjectClass
-
- Returns:
- DataObjectEntry for the given dataObjectClass, or null if
there is none
- Throws:
IllegalArgumentException
- if the given Class is null
getBusinessObjectEntry
protected org.kuali.rice.krad.datadictionary.BusinessObjectEntry getBusinessObjectEntry(Class businessObjectClass)
- Parameters:
businessObjectClass
- - class of business object to return entry for
- Returns:
- BusinessObjectEntry for the given dataObjectClass, or null if
there is none
validateBusinessObjectClass
protected void validateBusinessObjectClass(Class businessObjectClass)
- Parameters:
businessObjectClass
-
- Throws:
IllegalArgumentException
- if the given Class is null or is not a BusinessObject class
getDataDictionaryService
protected org.kuali.rice.krad.service.DataDictionaryService getDataDictionaryService()
- Protected method to allow subclasses to access the dataDictionaryService.
- Returns:
- Returns the dataDictionaryService.
setDataDictionaryService
public void setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService)
getKualiModuleService
protected org.kuali.rice.krad.service.KualiModuleService getKualiModuleService()
- Protected method to allow subclasses to access the kualiModuleService.
- Returns:
- Returns the persistenceStructureService.
setKualiModuleService
public void setKualiModuleService(org.kuali.rice.krad.service.KualiModuleService kualiModuleService)
getPersistenceStructureService
protected org.kuali.rice.krad.service.PersistenceStructureService getPersistenceStructureService()
- Protected method to allow subclasses to access the
persistenceStructureService.
- Returns:
- Returns the persistenceStructureService.
setPersistenceStructureService
public void setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
getViewDictionaryService
protected org.kuali.rice.krad.uif.service.ViewDictionaryService getViewDictionaryService()
setViewDictionaryService
public void setViewDictionaryService(org.kuali.rice.krad.uif.service.ViewDictionaryService viewDictionaryService)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.