|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase 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 |
---|
embeddedDataObjectMetadata, generatedFromMetadata, id |
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
Constructor Summary | |
---|---|
RelationshipDefinition()
|
Method Summary | |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Deprecated. |
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass,
ValidationTrace tracer)
Directly validate simple fields |
void |
dataDictionaryPostProcessing()
This overridden method ... |
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 |
---|
getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadata |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
clone, copy, getComponentCode, getNamespaceCode, preventModification, setComponentCode, setNamespaceCode, unwrap |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
getComponentCode, getNamespaceCode |
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 dataDictionaryPostProcessing()
dataDictionaryPostProcessing
in interface DictionaryBean
dataDictionaryPostProcessing
in class DictionaryBeanBase
DictionaryBeanBase.dataDictionaryPostProcessing()
@Deprecated public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
completeValidation
in interface DataDictionaryDefinition
completeValidation
in class DataDictionaryDefinitionBase
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationDataDictionaryEntry.completeValidation()
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer)
completeValidation
in interface DataDictionaryDefinition
completeValidation
in class DataDictionaryDefinitionBase
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationtracer
- ValidationTrace
class used to track what was being validated at the time of any problems discoveredDataDictionaryEntry.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)
public void setPrimitiveAttributes(List<PrimitiveAttributeDefinition> primitiveAttributes)
public void setSupportAttributes(List<SupportAttributeDefinition> supportAttributes)
public void setSourceClass(Class<?> sourceClass)
sourceClass
- the sourceClass to setpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |