|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.service.impl.BusinessObjectMetaDataServiceImpl
public class BusinessObjectMetaDataServiceImpl
Implementation of the BusinessObjectMetaDataService
which uses
the following services to gather its meta data:
BusinessObjectDictionaryService
,
DataDictionaryService
,
PersistenceStructureService
Constructor Summary | |
---|---|
BusinessObjectMetaDataServiceImpl()
|
Method Summary | |
---|---|
BusinessObjectDictionaryService |
getBusinessObjectDictionaryService()
Gets the businessObjectDictionaryService attribute. |
BusinessObjectRelationship |
getBusinessObjectRelationship(org.kuali.rice.kns.bo.BusinessObject bo,
Class boClass,
String attributeName,
String attributePrefix,
boolean keysOnly)
|
BusinessObjectRelationship |
getBusinessObjectRelationship(org.kuali.rice.kns.bo.BusinessObject bo,
String attributeName)
This method will return a class that is related to the parent BO (either through the DataDictionary or through the PersistenceStructureService) |
BusinessObjectRelationship |
getBusinessObjectRelationship(RelationshipDefinition ddReference,
org.kuali.rice.kns.bo.BusinessObject bo,
Class boClass,
String attributeName,
String attributePrefix,
boolean keysOnly)
|
RelationshipDefinition |
getBusinessObjectRelationshipDefinition(org.kuali.rice.kns.bo.BusinessObject bo,
String attributeName)
|
RelationshipDefinition |
getBusinessObjectRelationshipDefinition(Class c,
String attributeName)
|
List<BusinessObjectRelationship> |
getBusinessObjectRelationships(org.kuali.rice.kns.bo.BusinessObject bo)
Get all the business object relationships for the given business object. |
List<BusinessObjectRelationship> |
getBusinessObjectRelationships(Class<? extends org.kuali.rice.kns.bo.BusinessObject> boClass)
Get all the business object relationships for the given class. |
Collection<String> |
getCollectionNames(org.kuali.rice.kns.bo.BusinessObject bo)
This method returns a list of collection names a business object contains |
DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute. |
RelationshipDefinition |
getDDRelationship(Class c,
String attributeName)
|
String |
getForeignKeyFieldName(Class businessObjectClass,
String attributeName,
String targetName)
This method ... |
Collection<String> |
getInquirableFieldNames(Class boClass,
String sectionTitle)
This method returns a list of inquirable field names |
KualiModuleService |
getKualiModuleService()
|
List<String> |
getLookupableFieldNames(Class boClass)
This method returns a list of lookupable fields |
String |
getLookupFieldDefaultValue(Class businessObjectClass,
String attributeName)
This method looks up the default value for a given attribute and returns it |
Class |
getLookupFieldDefaultValueFinderClass(Class businessObjectClass,
String attributeName)
This method returns the value finder class for a given attribute |
String |
getLookupFieldQuickfinderParameterString(Class businessObjectClass,
String attributeName)
This method looks up the quickfinder parameter string for a given attribute and returns it. |
Class<? extends ValueFinder> |
getLookupFieldQuickfinderParameterStringBuilderClass(Class businessObjectClass,
String attributeName)
This method returns the quickfinder parameter string builder class for a given attribute. |
PersistenceStructureService |
getPersistenceStructureService()
Gets the persistenceStructureService attribute. |
Map<String,Class> |
getReferencesForForeignKey(org.kuali.rice.kns.bo.BusinessObject bo,
String attributeName)
This method accepts a business object and one of its foreign key attribute names. |
BusinessObjectRelationship |
getRelationshipMetadata(Class businessObjectClass,
String attributeName,
String attributePrefix)
|
boolean |
isAttributeInquirable(Class boClass,
String attributeName,
String sectionTitle)
This method determines if a given field(attribute) is inquirable or not This handles both nested and non-nested attributes |
boolean |
isAttributeLookupable(Class boClass,
String attributeName)
This method determines if a given field(attribute) is lookupable or not This handles both nested and non-nested attributes |
boolean |
isInquirable(Class boClass)
This method determines if a given business object is inquirable |
boolean |
isLookupable(Class boClass)
This method determines if a given business object is lookupable |
List |
listPrimaryKeyFieldNames(Class clazz)
This method returns a list of primary keys for the passed in class. |
void |
setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
Sets the businessObjectDictionaryService attribute value. |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value. |
void |
setKualiModuleService(KualiModuleService kualiModuleService)
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BusinessObjectMetaDataServiceImpl()
Method Detail |
---|
public Collection<String> getCollectionNames(org.kuali.rice.kns.bo.BusinessObject bo)
BusinessObjectMetaDataService
getCollectionNames
in interface BusinessObjectMetaDataService
public Collection<String> getInquirableFieldNames(Class boClass, String sectionTitle)
BusinessObjectMetaDataService
getInquirableFieldNames
in interface BusinessObjectMetaDataService
public List<String> getLookupableFieldNames(Class boClass)
BusinessObjectMetaDataService
getLookupableFieldNames
in interface BusinessObjectMetaDataService
public String getLookupFieldDefaultValue(Class businessObjectClass, String attributeName)
BusinessObjectMetaDataService
getLookupFieldDefaultValue
in interface BusinessObjectMetaDataService
public Class getLookupFieldDefaultValueFinderClass(Class businessObjectClass, String attributeName)
BusinessObjectMetaDataService
getLookupFieldDefaultValueFinderClass
in interface BusinessObjectMetaDataService
public String getLookupFieldQuickfinderParameterString(Class businessObjectClass, String attributeName)
FieldDefinition.getQuickfinderParameterString()
.
getLookupFieldQuickfinderParameterString
in interface BusinessObjectMetaDataService
public Class<? extends ValueFinder> getLookupFieldQuickfinderParameterStringBuilderClass(Class businessObjectClass, String attributeName)
FieldDefinition.getQuickfinderParameterStringBuilderClass()
.
getLookupFieldQuickfinderParameterStringBuilderClass
in interface BusinessObjectMetaDataService
public boolean isAttributeInquirable(Class boClass, String attributeName, String sectionTitle)
BusinessObjectMetaDataService
isAttributeInquirable
in interface BusinessObjectMetaDataService
public boolean isInquirable(Class boClass)
BusinessObjectMetaDataService
isInquirable
in interface BusinessObjectMetaDataService
public boolean isAttributeLookupable(Class boClass, String attributeName)
BusinessObjectMetaDataService
isAttributeLookupable
in interface BusinessObjectMetaDataService
public boolean isLookupable(Class boClass)
BusinessObjectMetaDataService
isLookupable
in interface BusinessObjectMetaDataService
public BusinessObjectRelationship getBusinessObjectRelationship(org.kuali.rice.kns.bo.BusinessObject bo, String attributeName)
BusinessObjectMetaDataService
getBusinessObjectRelationship
in interface BusinessObjectMetaDataService
public BusinessObjectRelationship getBusinessObjectRelationship(RelationshipDefinition ddReference, org.kuali.rice.kns.bo.BusinessObject bo, Class boClass, String attributeName, String attributePrefix, boolean keysOnly)
getBusinessObjectRelationship
in interface BusinessObjectMetaDataService
public RelationshipDefinition getBusinessObjectRelationshipDefinition(Class c, String attributeName)
getBusinessObjectRelationshipDefinition
in interface BusinessObjectMetaDataService
public RelationshipDefinition getBusinessObjectRelationshipDefinition(org.kuali.rice.kns.bo.BusinessObject bo, String attributeName)
getBusinessObjectRelationshipDefinition
in interface BusinessObjectMetaDataService
public BusinessObjectRelationship getBusinessObjectRelationship(org.kuali.rice.kns.bo.BusinessObject bo, Class boClass, String attributeName, String attributePrefix, boolean keysOnly)
getBusinessObjectRelationship
in interface BusinessObjectMetaDataService
public DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.public BusinessObjectDictionaryService getBusinessObjectDictionaryService()
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
businessObjectDictionaryService
- The BusinessObjectDictionaryService to set.public PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
persistenceStructureService
- The persistenceStructureService to set.public RelationshipDefinition getDDRelationship(Class c, String attributeName)
public List<BusinessObjectRelationship> getBusinessObjectRelationships(org.kuali.rice.kns.bo.BusinessObject bo)
BusinessObjectMetaDataService
getBusinessObjectRelationships
in interface BusinessObjectMetaDataService
public List<BusinessObjectRelationship> getBusinessObjectRelationships(Class<? extends org.kuali.rice.kns.bo.BusinessObject> boClass)
BusinessObjectMetaDataService
getBusinessObjectRelationships
in interface BusinessObjectMetaDataService
public Map<String,Class> getReferencesForForeignKey(org.kuali.rice.kns.bo.BusinessObject bo, String attributeName)
BusinessObjectMetaDataService
getReferencesForForeignKey
in interface BusinessObjectMetaDataService
org.kuali.rice.kns.service.BusinessObjectMetaDataService#getReferencesForForeignKey(java.lang.Class,
java.lang.String)
public List listPrimaryKeyFieldNames(Class clazz)
BusinessObjectMetaDataService
listPrimaryKeyFieldNames
in interface BusinessObjectMetaDataService
org.kuali.core.service.BusinessObjectMetaDataService#listPrimaryKeyFieldNames(java.lang.Class)
public KualiModuleService getKualiModuleService()
public void setKualiModuleService(KualiModuleService kualiModuleService)
public BusinessObjectRelationship getRelationshipMetadata(Class businessObjectClass, String attributeName, String attributePrefix)
public String getForeignKeyFieldName(Class businessObjectClass, String attributeName, String targetName)
BusinessObjectMetaDataService
getForeignKeyFieldName
in interface BusinessObjectMetaDataService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |