|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase org.kuali.rice.krad.datadictionary.RelationshipDefinition
public class RelationshipDefinition
A single Relationship definition in the DataDictionary, which contains information concerning which primitive attributes of this class can be used to retrieve an instance of some related Object instance The relationship element defines how primitive attributes of this class can be used to retrieve an instance of some related Object instance DD: See RelationshipDefinition.java. JSTL: relationship is a Map which is accessed using a key which is the objectAttributeName of a relationship. The map contains a single entry with a key of "primitiveAttributes" and value which is an attributesMap ExportMap. The attributesMap ExportMap contains the following keys: 0 (for first primitiveAttribute) 1 (for second primitiveAttribute) etc. The corresponding value for each entry is an primitiveAttribute ExportMap which contains the following keys: "sourceName" "targetName"
Field Summary | |
---|---|
protected String |
objectAttributeName
|
protected List<PrimitiveAttributeDefinition> |
primitiveAttributes
|
protected Class<?> |
sourceClass
|
protected List<SupportAttributeDefinition> |
supportAttributes
|
protected Class<?> |
targetClass
For 1:1 relationships, this class represents the type of the reference class. |
Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase |
---|
id |
Constructor Summary | |
---|---|
RelationshipDefinition()
|
Method Summary | |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Directly validate simple fields, call completeValidation on Definition fields. |
SupportAttributeDefinition |
getIdentifier()
|
String |
getObjectAttributeName()
|
List<PrimitiveAttributeDefinition> |
getPrimitiveAttributes()
|
Class<?> |
getSourceClass()
|
List<SupportAttributeDefinition> |
getSupportAttributes()
|
Class<?> |
getTargetClass()
Returns the targetClass |
boolean |
hasIdentifier()
|
void |
setObjectAttributeName(String objectAttributeName)
Name of the business object property on the containing business object that is linked by the contained PrimitiveAttributeDefinition objects. |
void |
setPrimitiveAttributes(List<PrimitiveAttributeDefinition> primitiveAttributes)
The primitiveAttribute element identifies one pair of corresponding fields in the primary business object and the related business object. |
void |
setSourceClass(Class<?> sourceClass)
|
void |
setSupportAttributes(List<SupportAttributeDefinition> supportAttributes)
Support attributes define additional attributes that can be used to generate lookup field conversions and lookup parameters. |
void |
setTargetClass(Class<?> targetClass)
Sets the targetClass |
String |
toString()
|
Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase |
---|
afterPropertiesSet, getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String objectAttributeName
protected Class<?> sourceClass
protected Class<?> targetClass
protected List<PrimitiveAttributeDefinition> primitiveAttributes
protected List<SupportAttributeDefinition> supportAttributes
Constructor Detail |
---|
public RelationshipDefinition()
Method Detail |
---|
public String getObjectAttributeName()
public Class<?> getSourceClass()
public Class<?> getTargetClass()
targetClass
public void setTargetClass(Class<?> targetClass)
targetClass
targetClass
- public void setObjectAttributeName(String objectAttributeName)
public List<PrimitiveAttributeDefinition> getPrimitiveAttributes()
public List<SupportAttributeDefinition> getSupportAttributes()
public boolean hasIdentifier()
public SupportAttributeDefinition getIdentifier()
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationDataDictionaryEntry.completeValidation()
public String toString()
toString
in class Object
Object.toString()
public void setPrimitiveAttributes(List<PrimitiveAttributeDefinition> primitiveAttributes)
public void setSupportAttributes(List<SupportAttributeDefinition> supportAttributes)
public void setSourceClass(Class<?> sourceClass)
sourceClass
- the sourceClass to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |