Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

oracle.jbo.server
Class AssociationDefBase

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl
      extended by oracle.jbo.mom.DefinitionObject
          extended by oracle.jbo.mom.PersistableDefObject
              extended by oracle.jbo.server.MetaObject
                  extended by oracle.jbo.server.AssociationDefBase
All Implemented Interfaces:
ResourceBundleOwner, DefPersistable, PersistentDefinition, Association, VariableManagerOwner, VariableManagerOwnerBase
Direct Known Subclasses:
EntityAssociation, ViewLinkDefImpl

public abstract class AssociationDefBase
extends MetaObject
implements Association


Field Summary
 
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
 
Method Summary
 VariableValueManager ensureVariableManager()
          Returns this object's Variable Value Manager.
 AssociationDefImpl findEndAccessorByName(java.lang.String endName)
           
 AssociationEnd findEndByName(java.lang.String endName)
           
protected  void finishedLoading()
           
 AssociationDefImpl[] getAccessors()
           
 java.util.HashMap getAllProperties(java.util.HashMap map, LocaleContext locale)
           
 java.lang.String getAssociationClause()
           
 AttributeDefImpl[] getAttributeDefImpls()
           
 AttributeDefImpl[] getAttributeDefImplsByEndName(java.lang.String endName)
          Returns the attribute definitions of one end of the association.
 DefinitionObject getBaseDefObject()
           
 oracle.jbo.server.DefObject[] getDefs()
           
abstract  int getDefTypeId()
           
 java.lang.String getDefXMLNameSpace()
           
 AssociationEnd getDestinationEnd()
           
 RowDef getDestinationOwner()
           
 AttributeDefImpl[] getOtherAttributeDefImpls()
           
 java.lang.String getReverseAssociationClause()
           
 AssociationEnd getSourceEnd()
           
 RowDef getSourceOwner()
           
 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.
protected  void loadProperties(DefElement xmlElement)
           
protected  void loadVariables(DefElement xmlElement)
           
 void resolveDefObject()
           
protected  java.lang.Object resolvePropertyRaw(java.lang.String property, LocaleContext locale)
           
protected abstract  void resolveReferences()
           
 void setAssociationClause(java.lang.String assocClause)
           
 void setBaseDefObject(DefinitionObject baseDefObject)
           
 void setBaseDefObject(DefinitionObject baseDefObject, boolean addToBaseDef)
           
protected abstract  void setDefForComponent(ComponentObjectImpl comp)
           
 void setName(java.lang.String name)
          Name this object.
protected  void setParent(NamedObjectImpl parent)
          Sets this object's parent.
 void setReverseAssociationClause(java.lang.String reverseAssocClause)
           
protected abstract  void unsetDefForComponent(ComponentObjectImpl comp)
           
 void writeChildren(DefWriter jos)
          Writes the Object's children to the Persistent storage
 void writeContents(DefWriter jos)
          Objects should write their persistence output in this method
 
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.mom.PersistableDefObject
addDefImport, allocatePropertyMap, checkEditable, close, createFromXML, findDefImport, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefWriter, getDefXMLElementTag, getEditObject, getFileName, getFullDirName, getFullFileName, getOrigObject, getPropertyMap, getSubstitutedNames, getXMLElementTag, guaranteePath, isDirty, isEditable, isNew, loadDefImports, loadXMLContents, objectRemoved, registerClass, remove, removeAndDelete, removeDefImport, removeProperty, saveXMLContents, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setNew, setOrigObject, setProperty, setPropertyMap, updateChildrenList, verifyVersion, writeObject, writeVersion, writeXMLContents
 
Methods inherited from class oracle.jbo.mom.DefinitionObject
addExtendedDefObject, addPropertySetName, getContainerDef, getContainerName, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, hasExtendedDefObjects, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, removeExtendedDefObject, setDefScope, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName
 
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
 

Method Detail

getSourceEnd

public AssociationEnd getSourceEnd()
Specified by:
getSourceEnd in interface Association
Returns:
The AssociationDefImpls on both ends of this association.

getDestinationEnd

public AssociationEnd getDestinationEnd()
Specified by:
getDestinationEnd in interface Association

findEndByName

public AssociationEnd findEndByName(java.lang.String endName)
Specified by:
findEndByName in interface Association

getSourceOwner

public RowDef getSourceOwner()
Specified by:
getSourceOwner in interface Association

getDestinationOwner

public RowDef getDestinationOwner()
Specified by:
getDestinationOwner in interface Association

getDefs

public oracle.jbo.server.DefObject[] getDefs()
Specified by:
getDefs in interface Association
Returns:
The Defs on both ends of this association.

getAttributeDefImpls

public AttributeDefImpl[] getAttributeDefImpls()
Specified by:
getAttributeDefImpls in interface Association
Returns:
The AttributeDefImpls on one end of this association.

getOtherAttributeDefImpls

public AttributeDefImpl[] getOtherAttributeDefImpls()
Specified by:
getOtherAttributeDefImpls in interface Association
Returns:
The AttributeDefImpls on other end of this association.

getAccessors

public AssociationDefImpl[] getAccessors()

findEndAccessorByName

public AssociationDefImpl findEndAccessorByName(java.lang.String endName)

getAttributeDefImplsByEndName

public AttributeDefImpl[] getAttributeDefImplsByEndName(java.lang.String endName)
Returns the attribute definitions of one end of the association.

Specified by:
getAttributeDefImplsByEndName in interface Association
Parameters:
endName - the name of one of the association's Entity Objects.
Returns:
an array of attribute definitions.

getAssociationClause

public java.lang.String getAssociationClause()
Specified by:
getAssociationClause in interface Association

setAssociationClause

public void setAssociationClause(java.lang.String assocClause)

getReverseAssociationClause

public java.lang.String getReverseAssociationClause()
Specified by:
getReverseAssociationClause in interface Association

setReverseAssociationClause

public void setReverseAssociationClause(java.lang.String reverseAssocClause)

resolveReferences

protected abstract void resolveReferences()

resolveDefObject

public void resolveDefObject()
Specified by:
resolveDefObject in class MetaObject

writeChildren

public void writeChildren(DefWriter jos)
Description copied from interface: PersistentDefinition
Writes the Object's children to the Persistent storage

Specified by:
writeChildren in interface PersistentDefinition
Overrides:
writeChildren in class MetaObject
Parameters:
jos - the Output storage for persistence

writeContents

public void writeContents(DefWriter jos)
Description copied from interface: PersistentDefinition
Objects should write their persistence output in this method

Specified by:
writeContents in interface PersistentDefinition
Overrides:
writeContents in class MetaObject
Parameters:
jos - the Output storage for persistence

setName

public void setName(java.lang.String name)
Name this object.

Overrides:
setName in class DefinitionObject
Parameters:
name - the name to be given to this object.
For internal use only. Application developers should not use this

getBaseDefObject

public DefinitionObject getBaseDefObject()
Overrides:
getBaseDefObject in class DefinitionObject

setBaseDefObject

public void setBaseDefObject(DefinitionObject baseDefObject)
Overrides:
setBaseDefObject in class DefinitionObject

setBaseDefObject

public void setBaseDefObject(DefinitionObject baseDefObject,
                             boolean addToBaseDef)
Overrides:
setBaseDefObject in class DefinitionObject

finishedLoading

protected void finishedLoading()
Overrides:
finishedLoading in class PersistableDefObject

setParent

protected void setParent(NamedObjectImpl parent)
Sets this object's parent.

Overrides:
setParent in class DefinitionObject
Parameters:
parent - the named object that is to be the parent of this object.

loadProperties

protected void loadProperties(DefElement xmlElement)
Overrides:
loadProperties in class DefinitionObject
Parameters:
xmlElement - The XML element to load from.

loadVariables

protected void loadVariables(DefElement xmlElement)

getDefTypeId

public abstract int getDefTypeId()

setDefForComponent

protected abstract void setDefForComponent(ComponentObjectImpl comp)

unsetDefForComponent

protected abstract void unsetDefForComponent(ComponentObjectImpl comp)

getVariableManager

public VariableValueManager getVariableManager()
Description copied from interface: VariableManagerOwnerBase
Returns this object's current Variable Value Manager. It will return 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.

VariableManagerOwnerBase.ensureVariableManager() in contrast, ensures that the Variable Value Manager is initialized (created).

Specified by:
getVariableManager in interface VariableManagerOwnerBase
Returns:
this object's current Variable Value Manager. May return null if one was not yet initialized.

getVarMgrParents

protected VariableValueManager[] getVarMgrParents()

hasVariables

public boolean hasVariables()
Description copied from interface: VariableManagerOwnerBase
Returns a flag indicating whether this object has Variables or not.

Specified by:
hasVariables in interface VariableManagerOwnerBase
Returns:
the flag indicating whether this object has Variables.

ensureVariableManager

public VariableValueManager ensureVariableManager()
Description copied from interface: VariableManagerOwnerBase
Returns this object's Variable Value Manager. If this object current has no Variable Value Manager, it will initialize (create) one.

Specified by:
ensureVariableManager in interface VariableManagerOwnerBase
Returns:
this object's Variable Value Manager. Will create a Variable Value Manager if this object had no Variable Value Manager.

getDefXMLNameSpace

public java.lang.String getDefXMLNameSpace()
Specified by:
getDefXMLNameSpace in interface PersistentDefinition
Overrides:
getDefXMLNameSpace in class PersistableDefObject

resolvePropertyRaw

protected java.lang.Object resolvePropertyRaw(java.lang.String property,
                                              LocaleContext locale)
Overrides:
resolvePropertyRaw in class NamedObjectImpl

getAllProperties

public java.util.HashMap getAllProperties(java.util.HashMap map,
                                          LocaleContext locale)
Overrides:
getAllProperties in class NamedObjectImpl

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

Copyright © 1997, 2010, Oracle. All rights reserved.