|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.service.impl.DataObjectMetaDataServiceImpl org.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
Field Summary | |
---|---|
private BusinessObjectDictionaryService |
businessObjectDictionaryService
|
private static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
BusinessObjectMetaDataServiceImpl()
|
Method Summary | |
---|---|
BusinessObjectDictionaryService |
getBusinessObjectDictionaryService()
Gets the businessObjectDictionaryService attribute. |
BusinessObjectRelationship |
getBusinessObjectRelationship(BusinessObject bo,
Class boClass,
String attributeName,
String attributePrefix,
boolean keysOnly)
|
BusinessObjectRelationship |
getBusinessObjectRelationship(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,
BusinessObject bo,
Class boClass,
String attributeName,
String attributePrefix,
boolean keysOnly)
|
RelationshipDefinition |
getBusinessObjectRelationshipDefinition(BusinessObject bo,
String attributeName)
|
RelationshipDefinition |
getBusinessObjectRelationshipDefinition(Class c,
String attributeName)
|
List<BusinessObjectRelationship> |
getBusinessObjectRelationships(BusinessObject bo)
Get all the business object relationships for the given business object. |
List<BusinessObjectRelationship> |
getBusinessObjectRelationships(Class<? extends BusinessObject> boClass)
Get all the business object relationships for the given class. |
Collection<String> |
getCollectionNames(BusinessObject bo)
This method returns a list of collection names a business object contains |
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 |
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. |
private Class |
getNestedBOClass(BusinessObject bo,
String attributeName)
This method retrieves the business object class for a specific attribute |
Map<String,Class> |
getReferencesForForeignKey(BusinessObject bo,
String attributeName)
This method accepts a business object and one of its foreign key attribute names. |
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 |
void |
setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
Sets the businessObjectDictionaryService attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kns.service.DataObjectMetaDataService |
---|
equalsByPrimaryKeys, getDataObjectRelationship, getDictionaryRelationship, getPrimaryKeyFieldValues, getPrimaryKeyFieldValues, getTitleAttribute, listPrimaryKeyFieldNames |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
private BusinessObjectDictionaryService businessObjectDictionaryService
Constructor Detail |
---|
public BusinessObjectMetaDataServiceImpl()
Method Detail |
---|
public Collection<String> getCollectionNames(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(BusinessObject bo, String attributeName)
BusinessObjectMetaDataService
getBusinessObjectRelationship
in interface BusinessObjectMetaDataService
public BusinessObjectRelationship getBusinessObjectRelationship(RelationshipDefinition ddReference, 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(BusinessObject bo, String attributeName)
getBusinessObjectRelationshipDefinition
in interface BusinessObjectMetaDataService
public BusinessObjectRelationship getBusinessObjectRelationship(BusinessObject bo, Class boClass, String attributeName, String attributePrefix, boolean keysOnly)
getBusinessObjectRelationship
in interface BusinessObjectMetaDataService
public BusinessObjectDictionaryService getBusinessObjectDictionaryService()
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
businessObjectDictionaryService
- The BusinessObjectDictionaryService to set.private Class getNestedBOClass(BusinessObject bo, String attributeName)
bo
- attributeName
-
public List<BusinessObjectRelationship> getBusinessObjectRelationships(BusinessObject bo)
BusinessObjectMetaDataService
getBusinessObjectRelationships
in interface BusinessObjectMetaDataService
public List<BusinessObjectRelationship> getBusinessObjectRelationships(Class<? extends BusinessObject> boClass)
BusinessObjectMetaDataService
getBusinessObjectRelationships
in interface BusinessObjectMetaDataService
public Map<String,Class> getReferencesForForeignKey(BusinessObject bo, String attributeName)
BusinessObjectMetaDataService
getReferencesForForeignKey
in interface BusinessObjectMetaDataService
org.kuali.rice.kns.service.BusinessObjectMetaDataService#getReferencesForForeignKey(java.lang.Class,
java.lang.String)
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 |