|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.assoc.Association
public class Association
Represents associative relationships between objects, using one of two flavours:
MetadatUtil.MD_ASSOC_*
such as MetaDataDefs.MD_ASSOC_REF_OBJECT_CLASS.
| Constructor Summary | |
|---|---|
Association(MetaObjectClassMapping definingObjectClass,
String attribute,
String refObjectClassName,
String assocReverseAttr)
Create record of multi-valued direct (objectclass-to-objectclass) association. |
|
Association(MetaObjectClassMapping definingObjectClass,
String attribute,
String refObjectClassName,
String assocReverseAttr,
boolean multivalued,
boolean virtual,
boolean expensive)
Create record of direct (objectclass-to-objectclass) association. |
|
Association(MetaObjectClassMapping definingObjectClass,
String attribute,
String refObjectClassName,
String assocTable,
String assocTableObjColumn,
String assocTableRefColumn,
String assocReverseAttr,
boolean multivalued,
boolean virtual,
boolean expensive)
Create record of indirect (via external table) association. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static String |
getAmbiguousMappedToValue(String ambiguousMappedToValue)
While truly ambiguous associations are not supported, allow unambiguous associations that use ambiguous mappings className:attributeName |
static String[] |
getAmbiguousMappedToValue(String[] ambiguousMappedToValue)
Return pure attribute Ids for any ambiguously mapped to attributes in className:attributeName format. |
String |
getAttribute()
|
String |
getCompoundLinkAttrId()
If this assoc has type COMPOUND_PARENT then returns the attribute id on the compound class linking it to the parent whether mapped via 'same' or directly. |
String |
getCompoundParentAttrId()
If this assoc has type COMPOUND_PARENT, then returns the attribute in the referenced parent class which contains the compound values, null otherwise. |
MetaObjectClassMapping |
getDefiningObjectClass()
Useful when association is stored on "toAssoc" list for a referencing objectClass. |
String |
getIndirectTable()
|
String |
getObjColumn()
|
String |
getObjKeyAttr()
|
String |
getObjKeyAttrId()
Return name of connector-speak attribute used as this object's key (either naming attribute or objKeyAttr). |
DataModelProperty |
getProperty()
|
String |
getRefColumn()
|
String |
getRefKeyAttr()
|
String |
getRefKeyAttrId()
Return name of attribute used as this object's key (either naming attribute or objKeyAttr). |
MetaObjectClassMapping |
getRefObjectClass()
|
String |
getRefObjectClassName()
|
String |
getReverseAttribute()
|
DataModelProperty |
getReverseProperty()
|
MetaDataDefs.AssocType |
getType()
|
int |
hashCode()
|
boolean |
isAssocDirectAttributeOpProcessorAssoc()
Determines associations deemed as suitable for handling in a reverse associative attribute processor (for direct associations where one end defines the association and the reverse end is computed by the processor). |
static boolean |
isAssocExpression(DataModelProperty defProp)
|
boolean |
isAssocKey()
|
static boolean |
isAssocKey(DataModelProperty defProp)
|
boolean |
isAssocKeyAttr(String attrId)
Deprecated. |
boolean |
isAssocKeyAttrId(String connAttrId,
boolean objKey,
boolean refKey)
|
static boolean |
isAssocTemplate(DataModelProperty defProp)
|
boolean |
isExpensive()
|
boolean |
isFromAssociation(ObjectClassMapping classMap)
|
boolean |
isIndirect()
|
boolean |
isMultiValued()
|
boolean |
isNormalType()
|
boolean |
isToAssociation(ObjectClassMapping classMap)
|
boolean |
isVirtual()
|
void |
setObjKeyAttr(String objKeyAttr)
|
void |
setRefKeyAttr(String refKeyAttr)
|
void |
setRefObjectClass(MetaObjectClassMapping refObjectClass)
|
void |
setType(MetaDataDefs.AssocType type)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Association(MetaObjectClassMapping definingObjectClass,
String attribute,
String refObjectClassName,
String assocTable,
String assocTableObjColumn,
String assocTableRefColumn,
String assocReverseAttr,
boolean multivalued,
boolean virtual,
boolean expensive)
public Association(MetaObjectClassMapping definingObjectClass,
String attribute,
String refObjectClassName,
String assocReverseAttr,
boolean multivalued,
boolean virtual,
boolean expensive)
public Association(MetaObjectClassMapping definingObjectClass,
String attribute,
String refObjectClassName,
String assocReverseAttr)
| Method Detail |
|---|
public static String getAmbiguousMappedToValue(String ambiguousMappedToValue)
ambiguousMappedToValue -
public static String[] getAmbiguousMappedToValue(String[] ambiguousMappedToValue)
ambiguousMappedToValue -
public boolean isIndirect()
public String getAttribute()
public String getRefObjectClassName()
public String getReverseAttribute()
public String getIndirectTable()
public String getObjColumn()
public String getRefColumn()
public String getObjKeyAttr()
public boolean isNormalType()
public MetaDataDefs.AssocType getType()
public void setType(MetaDataDefs.AssocType type)
public void setObjKeyAttr(String objKeyAttr)
public String getRefKeyAttr()
public void setRefKeyAttr(String refKeyAttr)
public boolean isMultiValued()
public String getObjKeyAttrId()
public String getRefKeyAttrId()
public boolean isVirtual()
public boolean isExpensive()
public boolean isFromAssociation(ObjectClassMapping classMap)
public boolean isToAssociation(ObjectClassMapping classMap)
public MetaObjectClassMapping getDefiningObjectClass()
public MetaObjectClassMapping getRefObjectClass()
public void setRefObjectClass(MetaObjectClassMapping refObjectClass)
public String toString()
toString in class Object
public boolean isAssocKeyAttrId(String connAttrId,
boolean objKey,
boolean refKey)
@Deprecated public boolean isAssocKeyAttr(String attrId)
attrId - public boolean isAssocKey()
public static boolean isAssocKey(DataModelProperty defProp)
public static boolean isAssocTemplate(DataModelProperty defProp)
public static boolean isAssocExpression(DataModelProperty defProp)
public String getCompoundParentAttrId()
public String getCompoundLinkAttrId()
public boolean isAssocDirectAttributeOpProcessorAssoc()
DefaultAssocDirectAttributeOpProcessor
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic DataModelProperty getProperty()
public DataModelProperty getReverseProperty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||