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

E10653-02

oracle.jbo.server
Class ViewLinkDefImpl

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
                      extended by oracle.jbo.server.ViewLinkDefImpl
All Implemented Interfaces:
ResourceBundleOwner, DefPersistable, PersistentDefinition, Association, VariableManagerOwner, VariableManagerOwnerBase

public class ViewLinkDefImpl
extends AssociationDefBase

 NAME
      ViewLinkDefImpl.java -
 DESCRIPTION

      The ViewLinkDefImpl describes relationship between two query objects.

 NOTES


 VERSION
 MODIFIED   (MM/DD/YY)
    jloropez 06/08/04 - 
 


Field Summary
protected  oracle.jbo.server.EntityAssociationReference mAssocRef
           
 
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
ViewLinkDefImpl()
          Constructs a query association
ViewLinkDefImpl(int defScope, java.lang.String name)
           
ViewLinkDefImpl(java.lang.String name)
           
 
Method Summary
 void buildLinkEnds(ViewDefImpl source, java.lang.String srcName, int srcCardinality, boolean isSrcPartitionUsingWhereClause, AttributeDefImpl[] srcAttrs, java.lang.String[] srcUnboundAttrNames, ViewDefImpl destination, java.lang.String destName, int destCardinality, boolean isDestPartitionUsingWhereClause, AttributeDefImpl[] destAttrs, java.lang.String[] destUnboundAttrNames, java.lang.Object entityAssocObj, java.lang.String assocClause, java.lang.String reverseAssocClause)
          Internal use only.
 VariableValueManager ensureVariableManager()
          Returns this object's Variable Value Manager.
static ViewLinkDefImpl findDefObject(java.lang.String viewLinkDefName)
          Finds the ViewLinkDefImpl from the statically maintained list of Meta Objects.
static ViewLinkDefImpl findDefObjectNoSub(java.lang.String viewLinkDefName)
          Finds the ViewLinkDefImpl from the statically maintained list of Meta Objects.
protected  void finishedLoading()
           
static java.lang.String[] getAllDefNames()
           
 java.util.HashMap getAllProperties(java.util.HashMap map, LocaleContext locale)
           
 java.lang.String getBaseAssociationName()
           
 DefinitionObject getBaseDefObject()
           
 int getBindingStyle()
           
 java.lang.Class getComponentClass()
          Gets the Java Class of the component that this definition object describes, i.e., oracle.jbo.server.ViewLinkImpl.
 int getDefTypeId()
           
 java.lang.String getDefXMLElementTag()
           
 java.lang.String getDefXMLNameSpace()
           
 ViewAttributeDefImpl[] getDestinationBindVariables()
           
 AssociationEnd getDestinationEntityAssocEnd()
           
 EntityAssociation getEntityAssociation()
           
 oracle.jbo.server.EntityAssociationReference getEntityAssociationReference()
           
 AssociationEnd getSourceEntityAssocEnd()
           
 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.
 boolean isEntityAssociationReversed()
           
 boolean isPartitionUsingWhereClause(boolean isReversed)
           
 boolean isSDOHidden()
           
static ViewLinkDefImpl loadFromXML(DefElement xmlElement)
          Deprecated. 
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 setBaseAssociationName(java.lang.String assocName)
           
 void setBaseDefObject(DefinitionObject baseDefObject)
           
 void setBaseDefObject(DefinitionObject baseDefObject, boolean addToBaseDef)
           
protected  void setDefForComponent(ComponentObjectImpl comp)
           
 void setDestinationBindVariables(ViewAttributeDefImpl[] vars)
           
 void setEntityAssociationReference(oracle.jbo.server.EntityAssociationReference assocRef)
           
 void setEntityAssociationReversed(boolean b)
           
 void setName(java.lang.String name)
          Name this object.
protected  void setParent(NamedObjectImpl parent)
          Sets this object's parent.
 void setSDOHidden(boolean b)
           
protected  void unsetDefForComponent(ComponentObjectImpl comp)
           
 void writeContents(DefWriter jos)
          Objects should write their persistence output in this method
 
Methods inherited from class oracle.jbo.server.AssociationDefBase
findEndAccessorByName, findEndByName, getAccessors, getAssociationClause, getAttributeDefImpls, getAttributeDefImplsByEndName, getDefs, getDestinationEnd, getDestinationOwner, getOtherAttributeDefImpls, getReverseAssociationClause, getSourceEnd, getSourceOwner, resolveDefObject, setAssociationClause, setReverseAssociationClause, writeChildren
 
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
allocatePropertyMap, checkEditable, close, createFromXML, getBaseDir, getBasePackage, getDefManager, getDefWriter, getEditObject, getFileName, getFullDirName, getFullFileName, getOrigObject, getPropertyMap, getSubstitutedNames, getXMLElementTag, guaranteePath, isDirty, isEditable, isNew, objectRemoved, registerClass, remove, removeAndDelete, 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
 

Field Detail

mAssocRef

protected oracle.jbo.server.EntityAssociationReference mAssocRef
Constructor Detail

ViewLinkDefImpl

public ViewLinkDefImpl()
Constructs a query association


ViewLinkDefImpl

public ViewLinkDefImpl(int defScope,
                       java.lang.String name)

ViewLinkDefImpl

public ViewLinkDefImpl(java.lang.String name)
Method Detail

getAllDefNames

public static java.lang.String[] getAllDefNames()

findDefObjectNoSub

public static ViewLinkDefImpl findDefObjectNoSub(java.lang.String viewLinkDefName)
Finds the ViewLinkDefImpl from the statically maintained list of Meta Objects. Performs essentially the same operation as findDefObject, except that it does not observe meta-object substitution.

Parameters:
viewLinkDefName - The fully qualified Name of the ViewDefImpl.
Returns:
The View Link definition object corresponding to the specified name.

findDefObject

public static ViewLinkDefImpl findDefObject(java.lang.String viewLinkDefName)
Finds the ViewLinkDefImpl from the statically maintained list of Meta Objects.

Parameters:
viewLinkDefName - The fully qualified Name of the ViewDefImpl.
Returns:
The View Link definition object corresponding to the specified name.

getComponentClass

public java.lang.Class getComponentClass()
Gets the Java Class of the component that this definition object describes, i.e., oracle.jbo.server.ViewLinkImpl.

Returns:
the component class.

buildLinkEnds

public void buildLinkEnds(ViewDefImpl source,
                          java.lang.String srcName,
                          int srcCardinality,
                          boolean isSrcPartitionUsingWhereClause,
                          AttributeDefImpl[] srcAttrs,
                          java.lang.String[] srcUnboundAttrNames,
                          ViewDefImpl destination,
                          java.lang.String destName,
                          int destCardinality,
                          boolean isDestPartitionUsingWhereClause,
                          AttributeDefImpl[] destAttrs,
                          java.lang.String[] destUnboundAttrNames,
                          java.lang.Object entityAssocObj,
                          java.lang.String assocClause,
                          java.lang.String reverseAssocClause)
Internal use only. Application developers should not use this method.


getBaseAssociationName

public java.lang.String getBaseAssociationName()

setBaseAssociationName

public void setBaseAssociationName(java.lang.String assocName)

getBindingStyle

public int getBindingStyle()

isEntityAssociationReversed

public boolean isEntityAssociationReversed()

setEntityAssociationReversed

public void setEntityAssociationReversed(boolean b)

getEntityAssociationReference

public oracle.jbo.server.EntityAssociationReference getEntityAssociationReference()
Returns:
The EntityAssociationReference.

setEntityAssociationReference

public void setEntityAssociationReference(oracle.jbo.server.EntityAssociationReference assocRef)
Parameters:
assocRef - The EntityAssociationReference.

getEntityAssociation

public EntityAssociation getEntityAssociation()
Returns:
The EntityAssociation.

getSourceEntityAssocEnd

public AssociationEnd getSourceEntityAssocEnd()

getDestinationEntityAssocEnd

public AssociationEnd getDestinationEntityAssocEnd()

getDestinationBindVariables

public ViewAttributeDefImpl[] getDestinationBindVariables()
Returns:
The destination bind variables.

isPartitionUsingWhereClause

public boolean isPartitionUsingWhereClause(boolean isReversed)

setDestinationBindVariables

public void setDestinationBindVariables(ViewAttributeDefImpl[] vars)
Parameters:
vars - The list of AttributeDefImpls as bind variables on other end.

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 AssociationDefBase
Parameters:
jos - the Output storage for persistence

loadXMLContents

public void loadXMLContents(DefElement xmlElement,
                            java.lang.String fullName)
Overrides:
loadXMLContents in class PersistableDefObject

loadFromXML

@Deprecated
public static ViewLinkDefImpl loadFromXML(DefElement xmlElement)
Deprecated. 


resolveReferences

protected void resolveReferences()
Specified by:
resolveReferences in class AssociationDefBase

getDefTypeId

public int getDefTypeId()

setDefForComponent

protected void setDefForComponent(ComponentObjectImpl comp)

unsetDefForComponent

protected void unsetDefForComponent(ComponentObjectImpl comp)

getDefXMLElementTag

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

isSDOHidden

public boolean isSDOHidden()

setSDOHidden

public void setSDOHidden(boolean b)

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 DefinitionObject

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)

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.1.0)

E10653-02

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