Class SupportAttributeDefinition
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.krad.datadictionary.PrimitiveAttributeDefinition
org.kuali.rice.krad.datadictionary.SupportAttributeDefinition
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DataDictionaryDefinition,DictionaryBean
Support attributes define additional attributes that can be used to generate
lookup field conversions and lookup parameters.
Field conversions and lookup parameters are normally generated using foreign key relationships
defined within OJB and the DD. Because Person objects are linked in a special way (i.e. they may
come from an external data source and not from the DB, such as LDAP), it is often necessary to define
extra fields that are related to each other, sort of like a supplemental foreign key.
sourceName is the name of the POJO property of the business object
targetName is the name of attribute that corresponds to the sourceName in the looked up BO
identifier when true, only the field marked as an identifier will be passed in as a lookup parameter
at most one supportAttribute for each relationship should be defined as identifier="true"
- See Also:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.PrimitiveAttributeDefinition
sourceName, targetNameFields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
embeddedDataObjectMetadata, generatedFromMetadata, idFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) Directly validate simple fields.voidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer) Directly validate simple fieldsbooleanvoidsetIdentifier(boolean identifier) identifier when true, only the field marked as an identifier will be passed in as a lookup parameter at most one supportAttribute for each relationship should be defined as identifier="true"toString()Methods inherited from class org.kuali.rice.krad.datadictionary.PrimitiveAttributeDefinition
getSourceName, getTargetName, setSourceName, setTargetNameMethods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadataMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
-
Field Details
-
identifier
protected boolean identifier
-
-
Constructor Details
-
SupportAttributeDefinition
public SupportAttributeDefinition()
-
-
Method Details
-
isIdentifier
public boolean isIdentifier() -
setIdentifier
public void setIdentifier(boolean identifier) identifier when true, only the field marked as an identifier will be passed in as a lookup parameter at most one supportAttribute for each relationship should be defined as identifier="true" -
completeValidation
Directly validate simple fields. Directly validate simple fields.- Specified by:
completeValidationin interfaceDataDictionaryDefinition- Overrides:
completeValidationin classPrimitiveAttributeDefinition- Parameters:
rootBusinessObjectClass- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass- other stuff required to complete validation- See Also:
-
completeValidation
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer) Directly validate simple fields- Specified by:
completeValidationin interfaceDataDictionaryDefinition- Overrides:
completeValidationin classPrimitiveAttributeDefinition- Parameters:
rootBusinessObjectClass- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass- other stuff required to complete validationtracer-ValidationTraceclass used to track what was being validated at the time of any problems discovered- See Also:
-
toString
- Overrides:
toStringin classPrimitiveAttributeDefinition
-