|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.common.NamedObjectImpl
oracle.jbo.mom.DefinitionObject
oracle.jbo.mom.PersistableDefObject
oracle.jbo.server.MetaObject
oracle.jbo.server.AssociationDefBase
oracle.jbo.server.EntityAssociation
public class EntityAssociation
Describes the relationship between two Entity Objects. An association selects attributes from source and destination Entity Objects. Typically, these attributes represent key fields in a database table, but an association can be defined using any Entity Object attributes. Although an association identifies a source and destination end, the association can be navigated in either direction. Associations have package scope.
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.
Field Summary | |
---|---|
protected AttributeDefImpl[] |
mBindVars
The list of AttributeDefImpls as bind variables on one end. |
protected AttributeDefImpl[] |
mOtherBindVars
The list of bind variable AttributeDefImpls on one end. |
Fields inherited from class oracle.jbo.server.MetaObject |
---|
mComponentClass |
Fields inherited from class oracle.jbo.mom.DefinitionObject |
---|
DEF_MDS_CLIENT_KEY, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY |
Fields inherited from class oracle.jbo.common.NamedObjectImpl |
---|
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX |
Fields inherited from interface oracle.jbo.mom.xml.DefPersistable |
---|
XML_STATEMENT |
Constructor Summary | |
---|---|
EntityAssociation()
Constructs an entity association. |
|
EntityAssociation(int defScope,
java.lang.String name)
|
|
EntityAssociation(java.lang.String name)
|
Method Summary | |
---|---|
VariableValueManager |
ensureVariableManager()
Returns this object's Variable Value Manager. |
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. |
protected void |
finishedLoading()
|
AssociationDefImpl |
getAccessorByEndName(java.lang.String endName)
Deprecated. Deprecated since 5.0. Instead, use AssociationDefBase.findEndAccessorByName(). |
static java.lang.String[] |
getAllDefNames()
|
java.util.HashMap |
getAllProperties(java.util.HashMap map,
LocaleContext locale)
|
AssociationEnd |
getAssociationEnd(java.lang.String endName)
Deprecated. Deprecated since 5.0. Instead, use AssociationDefBase.findEndByName(). |
DefinitionObject |
getBaseDefObject()
|
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()
|
java.lang.String |
getDefXMLNameSpace()
|
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. |
VariableValueManager |
getVariableManager()
Returns this object's current Variable Value Manager. |
protected VariableValueManager[] |
getVarMgrParents()
|
boolean |
hasVariables()
Returns a flag indicating whether this object has Variables or not. |
void |
link(AssociationDefImpl srcAccr,
AssociationDefImpl dstAccr)
Establishes a link between two Entity Objects. |
protected void |
loadProperties(DefElement xmlElement)
|
protected void |
loadVariables(DefElement xmlElement)
|
void |
loadXMLContents(DefElement xmlElement,
java.lang.String fullName)
|
protected java.lang.Object |
resolvePropertyRaw(java.lang.String property,
LocaleContext locale)
|
protected void |
resolveReferences()
|
void |
setAssociationReverseClause(java.lang.String reverseAssocClause)
|
void |
setBaseDefObject(DefinitionObject baseDefObject)
|
void |
setBaseDefObject(DefinitionObject baseDefObject,
boolean addToBaseDef)
|
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 |
void |
setName(java.lang.String name)
Name this object. |
protected void |
setObjectResolved(boolean objResolved)
|
void |
setOtherBindVariables(AttributeDefImpl[] vars)
Sets the bind variables for the other end of the association. |
protected void |
setParent(NamedObjectImpl parent)
Sets this object's parent. |
protected void |
unsetDefForComponent(ComponentObjectImpl comp)
Unset the Component def for Association |
Methods inherited from class oracle.jbo.server.MetaObject |
---|
deregisterSessionObject, getMessageBundleClass, getMsgBundleDef, getPackageDef, getPackageName, getPersDef, getResourceBundleDef, getResourcePrefix, isDynamic, loadResourceBundle, registerDefObject, registerSessionDefObject, setMessageBundleClass, setResourceBundleDef |
Methods inherited from class oracle.jbo.common.NamedObjectImpl |
---|
getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getResourcesFromBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, setFullName, setPropertiesMap, setPropertiesMap2, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.server.Association |
---|
getFullName, getName |
Methods inherited from interface oracle.jbo.VariableManagerOwner |
---|
getName |
Methods inherited from interface oracle.jbo.mom.xml.DefPersistable |
---|
getFullName |
Field Detail |
---|
protected AttributeDefImpl[] mBindVars
protected AttributeDefImpl[] mOtherBindVars
Constructor Detail |
---|
public EntityAssociation()
public EntityAssociation(int defScope, java.lang.String name)
public EntityAssociation(java.lang.String name)
Method Detail |
---|
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 PersistableDefObject
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in interface PersistentDefinition
getDefXMLElementTag
in class PersistableDefObject
protected void setObjectResolved(boolean objResolved)
setObjectResolved
in class DefinitionObject
protected void resolveReferences()
resolveReferences
in class AssociationDefBase
public int getDefTypeId()
protected void setDefForComponent(ComponentObjectImpl comp)
protected void unsetDefForComponent(ComponentObjectImpl comp)
public 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.
public void setName(java.lang.String name)
setName
in class DefinitionObject
name
- the name to be given to this object.public DefinitionObject getBaseDefObject()
getBaseDefObject
in class DefinitionObject
public void setBaseDefObject(DefinitionObject baseDefObject)
setBaseDefObject
in class DefinitionObject
public void setBaseDefObject(DefinitionObject baseDefObject, boolean addToBaseDef)
setBaseDefObject
in class DefinitionObject
protected void finishedLoading()
finishedLoading
in class DefinitionObject
protected void setParent(NamedObjectImpl parent)
setParent
in class DefinitionObject
parent
- the named object that is to be the parent of this object.protected void loadProperties(DefElement xmlElement)
loadProperties
in class DefinitionObject
xmlElement
- The XML element to load from.protected void loadVariables(DefElement xmlElement)
public VariableValueManager getVariableManager()
VariableManagerOwnerBase
null
if Variable Value Manager has
been initialized.
When a framework object is first created, its Variable Value Manager may be null. This method does not initialize (create) the Variable Value Manager.
in contrast, ensures
that the Variable Value Manager is initialized (created).
VariableManagerOwnerBase.ensureVariableManager()
getVariableManager
in interface VariableManagerOwnerBase
null
if one was not yet initialized.protected VariableValueManager[] getVarMgrParents()
public boolean hasVariables()
VariableManagerOwnerBase
hasVariables
in interface VariableManagerOwnerBase
public VariableValueManager ensureVariableManager()
VariableManagerOwnerBase
ensureVariableManager
in interface VariableManagerOwnerBase
public java.lang.String getDefXMLNameSpace()
getDefXMLNameSpace
in interface PersistentDefinition
getDefXMLNameSpace
in class PersistableDefObject
protected java.lang.Object resolvePropertyRaw(java.lang.String property, LocaleContext locale)
resolvePropertyRaw
in class NamedObjectImpl
public java.util.HashMap getAllProperties(java.util.HashMap map, LocaleContext locale)
getAllProperties
in class NamedObjectImpl
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |