public class EntityAssociation extends AssociationDefBase
 The EntityAssociation class determines the content of the
 AssociationDefImpl
 attributes on the Entity definitions. The AssociationDefImpl attributes are the
 attributes at the source Entity and the destination Entity. There are two
 AssociationDefImpls for each EntityAssociation.
 For example, in the case of an association between Dept and Emp, Dept will have
 one AssociationDefImpl attribute for Emp; Emp will have one AssociationDefImpl
 attribute for Dept. The EntityAssociation links the two AssociationDefImpls.
 
An instance of the EntityAssociation class maps to the XML file for the association. At runtime, when the XML for the EntityAssociation is read, the framework creates the two AssociationDefImpls and determines whether they are source or destination attributes.
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType| Modifier and Type | Field and Description | 
|---|---|
| protected AttributeDefImpl[] | mBindVarsThe list of AttributeDefImpls as bind variables on one end. | 
| protected AttributeDefImpl[] | mOtherBindVarsThe list of bind variable AttributeDefImpls on one end. | 
mComponentClassmEditedProperties, mEditedPropertyExprsDEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAPmFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXXML_STATEMENT| Constructor and Description | 
|---|
| EntityAssociation()Constructs an entity association. | 
| EntityAssociation(int defScope,
                 java.lang.String name) | 
| EntityAssociation(java.lang.String name) | 
| Modifier and Type | Method and Description | 
|---|---|
| static EntityAssociation | findDefObject(java.lang.String assocName) | 
| static EntityAssociation | findDefObjectNoSub(java.lang.String assocName) | 
| static EntityAssociation | findEntityAssociation(java.lang.String entityAssocName)Finds the named entity association from the statically maintained list
 of metaobjects. | 
| AssociationDefImpl | getAccessorByEndName(java.lang.String endName)Deprecated. 
 Deprecated since 5.0.  Instead, use
              AssociationDefBase.findEndAccessorByName(). | 
| static java.lang.String[] | getAllDefNames() | 
| AssociationEnd | getAssociationEnd(java.lang.String endName)Deprecated. 
 Deprecated since 5.0.  Instead, use
              AssociationDefBase.findEndByName(). | 
| AttributeDefImpl[] | getBindVariables()Returns the bind variables for one end of the association. | 
| java.lang.Class | getComponentClass()Returns the class name of this Entity association's reference. | 
| int | getDefTypeId() | 
| java.lang.String | getDefXMLElementTag() | 
| EntityDefImpl | getEntityDef()Deprecated. 
 Deprecated since 5.0.  Instead, use
              AssociationDefBase.getSourceOwner() and down cast it
              to EntityDefImpl. | 
| AttributeDefImpl[] | getOtherBindVariables()Returns the bind variables for the other end of the association. | 
| EntityDefImpl | getOtherEntityDef()Deprecated. 
 Deprecated since 5.0.  Instead, use
              AssociationDefBase.getDestinationOwner() and down cast it
              to EntityDefImpl. | 
| boolean | hasSQLDerivedAttrs() | 
| void | link(AssociationDefImpl srcAccr,
    AssociationDefImpl dstAccr)Establishes a link between two Entity Objects. | 
| void | loadXMLContents(DefElement xmlElement,
               java.lang.String fullName) | 
| protected void | resolveReferences() | 
| void | setAssociationReverseClause(java.lang.String reverseAssocClause) | 
| void | setBindVariables(AttributeDefImpl[] vars)Sets the bind variables for one end of the association. | 
| protected void | setDefForComponent(ComponentObjectImpl comp)Set the Component def for Association | 
| protected void | setObjectResolved(boolean objResolved) | 
| void | setOtherBindVariables(AttributeDefImpl[] vars)Sets the bind variables for the other end of the association. | 
| protected void | unsetDefForComponent(ComponentObjectImpl comp)Unset the Component def for Association | 
applyDiffChildren, applyDiffContents, diffChildren, diffContents, findEndAccessorByName, findEndByName, getAccessors, getAssociationClause, getAttributeDefImpls, getAttributeDefImplsByEndName, getDefs, getDestinationEnd, getDestinationOwner, getEndDefXMLElementTag, getOtherAttributeDefImpls, getReverseAssociationClause, getSourceEnd, getSourceOwner, resolveDefObject, setAssociationClause, setDirty, setReverseAssociationClause, writeChildren, writeContentsderegisterSessionObject, getEditVersionsAsString, getInheritPersonalizationValue, getMajorVersion, getMessageBundleClass, getMinorVersion, getMsgBundleDef, getPackageDef, getPackageName, getPersDef, getPersDefNoUpdateCheck, getResourceBundleDef, getResourcePrefix, isDynamic, isInheritPersonalization, loadDefVersions, loadResourceBundle, registerDefObject, registerSessionDefObject, setInheritPersonalization, setInheritPersonalizationStrValue, setMessageBundleClass, setResourceBundleDefensureVariableManager, finishedLoading, getAllProperties, getBaseDefObject, getDefXMLNameSpace, getVariableManager, getVarMgrParents, hasVariables, isDeprecated, isFromCustomization, loadProperties, loadVariables, resolvePropertyRaw, setBaseDefObject, setBaseDefObject, setName, setParentaddDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, checkEditable, checkStructWithOld, close, createFromXML, diffObjects, ensureDifferDetails, findDefImport, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefWriter, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getOrigObject, getPropertyMap, getSubstitutedNames, getSyncLock, getXMLElementTag, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, mergeChanges, mergePropertyMap, objectRemoved, reapplyChanges, registerClass, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveXMLContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setEditable, setEditableFlag, setEditableObject, setFullName, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setupDefWriterFromMO, staticUpdateChildrenList, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeObject, writeVersion, writeXMLContentsaddPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, setDefScope, setMdsKey, setMdsReference, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFullName, getNamegetNamegetFullNamegetFullName, getNameprotected AttributeDefImpl[] mBindVars
protected AttributeDefImpl[] mOtherBindVars
public EntityAssociation()
public EntityAssociation(int defScope,
                 java.lang.String name)
public EntityAssociation(java.lang.String name)
public static java.lang.String[] getAllDefNames()
public static EntityAssociation findDefObjectNoSub(java.lang.String assocName)
public static EntityAssociation findDefObject(java.lang.String assocName)
public static EntityAssociation findEntityAssociation(java.lang.String entityAssocName)
entityAssocName - the fully qualified name of the entity association.public java.lang.Class getComponentClass()
public void link(AssociationDefImpl srcAccr, AssociationDefImpl dstAccr)
srcAccr - the source Entity Object's association accessor.dstAccr - the destination Entity Object's association accessor.public void setBindVariables(AttributeDefImpl[] vars)
vars - an array of bind variables.setOtherBindVariables(oracle.jbo.server.AttributeDefImpl[])public AttributeDefImpl[] getBindVariables()
getOtherBindVariables()public void setOtherBindVariables(AttributeDefImpl[] vars)
vars - an array of bind variables.setBindVariables(oracle.jbo.server.AttributeDefImpl[])public AttributeDefImpl[] getOtherBindVariables()
getBindVariables()public void setAssociationReverseClause(java.lang.String reverseAssocClause)
public void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
loadXMLContents in class PersistableDefObjectpublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class PersistableDefObjectpublic boolean hasSQLDerivedAttrs()
protected void setObjectResolved(boolean objResolved)
setObjectResolved in class DefinitionObjectprotected void resolveReferences()
resolveReferences in class AssociationDefBasepublic int getDefTypeId()
getDefTypeId in class DefObjectprotected void setDefForComponent(ComponentObjectImpl comp)
setDefForComponent in class DefObjectprotected void unsetDefForComponent(ComponentObjectImpl comp)
unsetDefForComponent in class DefObjectpublic EntityDefImpl getEntityDef()
public EntityDefImpl getOtherEntityDef()
public AssociationDefImpl getAccessorByEndName(java.lang.String endName)
endName - the name of one of the association end.public AssociationEnd getAssociationEnd(java.lang.String endName)
endName - the name of one of the association end.