Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


oracle.jbo.server
Class ViewLinkImpl

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl
      extended by oracle.jbo.server.NamedObjectImpl
          extended by oracle.jbo.server.ComponentObjectImpl
              extended by oracle.jbo.server.ViewLinkImpl

All Implemented Interfaces:
ComponentObject, ExprWrappable, GenericHints, OperationContainer, Properties, VariableManagerOwner, VariableManagerOwnerBase, ViewLink

public class ViewLinkImpl
extends ComponentObjectImpl
implements ViewLink

Implements the ViewLink interface, the middle-tier class that manages a master-detail relationship between two View Objects.

A View Link models the master-detail relationship between two View Objects. The actual relationship is implemented between a row set iterator derived from the master View Object, and a row set derived from the detail View Object.

The presence of a View Link causes the detail View Object to be refreshed when master View Object's current row designation changes. Whenever the master row set iterator designates a new current row, the detail row set is notified to refresh itself. The RowSetListener objects listening for the detail row set's events will receive the rangeRefreshed() event.

A View Link also affects initialization of the "foreign key" attribute of a detail row. When a new detail row is created its foreign key attribute is taken from the master row set iterator's current row.

A View Link can be defined in three different ways:

Since:
JDeveloper 3.0
See Also:
ViewObject, RowSet, RowSetIterator, RowSetListener

Field Summary
protected  ViewObjectImpl destination
           
protected  boolean mReversedUsage
           
protected  ViewLinkDefImpl qoAssoc
           
protected  ViewObjectImpl source
           

 

Fields inherited from class oracle.jbo.common.NamedObjectImpl
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX

 

Fields inherited from interface oracle.jbo.ViewLink
IMAGE_LOC

 

Fields inherited from interface oracle.jbo.GenericHints
PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP

 

Constructor Summary
ViewLinkImpl()
          Constructs a new View Link.

 

Method Summary
 DefObject getDef()
          Internal: Applications should not use this method.
 java.lang.String getDefFullName()
          Gets the full name of the View Link definition from which this view link ws created.
 java.lang.String getDefName()
          Gets the name of the View Link definition from which this view link was created.
 ViewObject getDestination()
          Gets the detail (destination side) View Object.
 java.lang.String getImageLoc(boolean bOpen)
           
 ViewObject getSource()
          Gets the master (source side) View Object.
 AttributeDef getSourceAccessor()
           
 ViewLinkDefImpl getViewLinkDef()
          Internal: Applications should not use this method.
 boolean isReversedUsage()
           
 void setDestination(ViewObject destination)
          Sets the detail (destination side) View Object.
 void setSource(ViewObject source)
          Sets the master (source side) View Object.

 

Methods inherited from class oracle.jbo.server.ComponentObjectImpl
addListener, applyPersonalization, create, createRef, createVariableValueManager, ensureVariableManager, findOperationDefinitions, findPersDefObject, getAllProperties, getApplicationModule, getCompListeners, getCompListenersList, getDefinitionManager, getFullNameForPersDef, getHintValue, getLabel, getLabelPlural, getMessageBundleClass, getProxyClassName, getProxyClassName, getResourceBundleDef, getRootApplicationModule, getStringFromMessageBundle, getTooltip, getVariableManager, hasVariables, isDead, isPersonalized, isRegWithPiggyMan, remove, resolvePropertyRaw, setName, setParent, setProxyClassName

 

Methods inherited from class oracle.jbo.server.NamedObjectImpl
setParent, setPropertiesMap

 

Methods inherited from class oracle.jbo.common.NamedObjectImpl
allocatePropertyMap, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getPropertyMap, getResourcesFromBundle, isPropertyExpression, mergePropertyMap, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setFullName, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyMap

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.jbo.ComponentObject
getFullName, getName, remove

 

Methods inherited from interface oracle.jbo.GenericHints
getHintValue, getLabel, getLabelPlural, getTooltip

 

Methods inherited from interface oracle.jbo.Properties
getProperties, getProperty, getProperty, refreshProperty

 

Methods inherited from interface oracle.jbo.VariableManagerOwner
getName

 

Field Detail

qoAssoc

protected ViewLinkDefImpl qoAssoc

source

protected ViewObjectImpl source

destination

protected ViewObjectImpl destination

mReversedUsage

protected boolean mReversedUsage

Constructor Detail

ViewLinkImpl

public ViewLinkImpl()
Constructs a new View Link.

Method Detail

getImageLoc

public java.lang.String getImageLoc(boolean bOpen)

getDef

public DefObject getDef()
Internal: Applications should not use this method.

Gets the definition object from which this View Link was created.

Returns:
the definition object.

getDefName

public java.lang.String getDefName()
Gets the name of the View Link definition from which this view link was created.
Specified by:
getDefName in interface ComponentObject
Overrides:
getDefName in class ComponentObjectImpl
Returns:
the View Link definition name, without its package name.

getDefFullName

public java.lang.String getDefFullName()
Gets the full name of the View Link definition from which this view link ws created.

The name returned by this method is full qualified, that is, it starts with the package name.

If this View Link is created dynamically, rather than from a View Link definition, the fully qualified definition name does not contain a package name.

Specified by:
getDefFullName in interface ComponentObject
Overrides:
getDefFullName in class ComponentObjectImpl
Returns:
s fully qualified View Link definition name.

getViewLinkDef

public ViewLinkDefImpl getViewLinkDef()
Internal: Applications should not use this method.

Gets the View Link definition object from which this View Link was created.

Returns:
the View Link definition.

getSource

public ViewObject getSource()
Gets the master (source side) View Object.
Specified by:
getSource in interface ViewLink
Returns:
the master View Object.

setSource

public void setSource(ViewObject source)
Sets the master (source side) View Object.
Parameters:
source - the master View Object.
Throws:
InvalidParamException - if the master and detail are the same View Object, or if the View Object Definitions for source and the View Link definition's master do not match.

getDestination

public ViewObject getDestination()
Gets the detail (destination side) View Object.
Specified by:
getDestination in interface ViewLink
Returns:
the detail View Object.

setDestination

public void setDestination(ViewObject destination)
Sets the detail (destination side) View Object.
Parameters:
destination - the detail View Object.
Throws:
InvalidParamException - if the master and detail are the same View Object, or if the View Object Definitions for destination and the View Link definition's detail do not match.

isReversedUsage

public boolean isReversedUsage()

getSourceAccessor

public AttributeDef getSourceAccessor()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


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