Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class DynamicViewLinkInfo

java.lang.Object
  extended byoracle.dacf.dataset.MasterLink
      extended byoracle.dacf.dataset.DynamicViewLinkInfo
All Implemented Interfaces:
java.lang.Cloneable

public class DynamicViewLinkInfo
extends MasterLink

Describes the link between two dynamically defined queries (View Objects). The DynamicViewLinkInfo class defines the link for two read-only query views. It also works for any combination of dynamic, predefined and read-only query views. The syntax to define such a link is:

 rowsetinfo.setMasterLinkInfo(new DynamicViewLinkInfo
                                   (RowSetInfo master_rowset,
                                    String [] masterJoinColumns,
                                    String [] detailJoinColumns))
 

Where masterJoinColumns is the list of columns in the master rowset that link the master to the detail rowset and detailJoinColumns is the list of columns in the detail rowset that link to the master rowset.

Version:
SDK

Field Summary
 
Fields inherited from class oracle.dacf.dataset.MasterLink
_master
 
Constructor Summary
DynamicViewLinkInfo()
          Default constructor.
DynamicViewLinkInfo(RowSetInfo master, java.lang.String[] srcCols, java.lang.String[] dstCols)
          Parameterized constuctor.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a field-for-field copy of this object.
 void createViewLink(oracle.jbo.ApplicationModule appMod, oracle.jbo.ViewObject detail)
          Internal: Application should not use this method.
 java.lang.String[] getDetailJoinColumns()
          Returns the list of the detail RowSetInfo's columns used to construct the join.
 java.lang.String[] getMasterJoinColumns()
          Returns the list of columns in the master rowset used to construct the join.
 
Methods inherited from class oracle.dacf.dataset.MasterLink
_makeUniqueName, getInstanceName, getMaster, removeViewLink, setInstanceName, setMaster
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicViewLinkInfo

public DynamicViewLinkInfo()
Default constructor.


DynamicViewLinkInfo

public DynamicViewLinkInfo(RowSetInfo master,
                           java.lang.String[] srcCols,
                           java.lang.String[] dstCols)
Parameterized constuctor.

Parameters:
master - a reference to the RowSetInfo that will serve as the master rowset.
srcCols - the list of columns in the master rowset that link the master to this rowset.
dstCols - the list of columns in the rowset that link to the master rowset.
Method Detail

getMasterJoinColumns

public java.lang.String[] getMasterJoinColumns()
Returns the list of columns in the master rowset used to construct the join.

Returns:
list of columns in the master rowset used by the join.

getDetailJoinColumns

public java.lang.String[] getDetailJoinColumns()
Returns the list of the detail RowSetInfo's columns used to construct the join.

Returns:
list of detail RowSetInfo's columns used to construct the join.

createViewLink

public void createViewLink(oracle.jbo.ApplicationModule appMod,
                           oracle.jbo.ViewObject detail)
Internal: Application should not use this method.

This method is internal to the DAC framework and should be used only by the framework.

Creates the link between the master RowSetInfo and the detail RowSetInfo within the context of the specified ApplicationModule.

Specified by:
createViewLink in class MasterLink
Parameters:
appMod - the name of the Application Module that contains the View Link.
detail - the detail View Object that should be linked to the master View Link.

clone

public java.lang.Object clone()
Creates and returns a field-for-field copy of this object.

Specified by:
clone in class MasterLink

Oracle Data-aware Controls Reference

 

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