org.kuali.rice.krad.datadictionary
Class SupportAttributeDefinition
java.lang.Object
org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.krad.datadictionary.PrimitiveAttributeDefinition
org.kuali.rice.krad.datadictionary.SupportAttributeDefinition
- All Implemented Interfaces:
- Serializable, DataDictionaryDefinition, org.springframework.beans.factory.InitializingBean
public class SupportAttributeDefinition
- extends PrimitiveAttributeDefinition
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:
- Serialized Form
Method Summary |
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Directly validate simple fields. |
boolean |
isIdentifier()
|
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" |
String |
toString()
|
identifier
protected boolean identifier
SupportAttributeDefinition
public SupportAttributeDefinition()
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
public void completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
- Directly validate simple fields.
- Specified by:
completeValidation
in interface DataDictionaryDefinition
- Overrides:
completeValidation
in class PrimitiveAttributeDefinition
- Parameters:
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validation- See Also:
org.kuali.rice.krad.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class, java.lang.Object)
toString
public String toString()
- Overrides:
toString
in class PrimitiveAttributeDefinition
- See Also:
Object.toString()
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.