org.kuali.rice.kns.datadictionary
Class SupportAttributeDefinition

java.lang.Object
  extended by org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
      extended by org.kuali.rice.kns.datadictionary.PrimitiveAttributeDefinition
          extended by org.kuali.rice.kns.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

Field Summary
protected  boolean identifier
           
private static long serialVersionUID
           
 
Fields inherited from class org.kuali.rice.kns.datadictionary.PrimitiveAttributeDefinition
sourceName, targetName
 
Fields inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
id
 
Constructor Summary
SupportAttributeDefinition()
           
 
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()
           
 
Methods inherited from class org.kuali.rice.kns.datadictionary.PrimitiveAttributeDefinition
getSourceName, getTargetName, setSourceName, setTargetName
 
Methods inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
afterPropertiesSet, getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

identifier

protected boolean identifier
Constructor Detail

SupportAttributeDefinition

public SupportAttributeDefinition()
Method Detail

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 definition
otherBusinessObjectClass - other stuff required to complete validation
See Also:
org.kuali.rice.kns.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class, java.lang.Object)

toString

public String toString()
Overrides:
toString in class PrimitiveAttributeDefinition
See Also:
Object.toString()


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.