ADF Designtime

oracle.adf.dt.dbpanel
Class IteratorManager

java.lang.Object
  extended byoracle.adf.dt.dbpanel.IteratorManager

public final class IteratorManager
extends java.lang.Object

Main class responsible for creating iterator definitions for a selected tree node. There are basically two main types of nodes accessor and non-accessor. If a non-accessor node is selected, and iterator must be created for its accessor parent node so that the data for the selected noe is avaialable. An accessor node may exist as part of a hierarchy. If there is a hierarchy, an iterator binding will be created for each node in this hierarchy.


Method Summary
static void cleanupModelReference(DataControlAccessorNode treeNode, JUDTIteratorBinding iterator, JUDTDataControl control)
          We need to make sure the iterator points to the name in the CPX file, not the proposed name in the databinding tree.
static JUDTIteratorBinding createIterator(DataControlAccessorNode treeNode, JUDTBaseBindingContainer container)
           
static JUDTIteratorBinding createIteratorWithId(DataControlAccessorNode treeNode, JUDTBaseBindingContainer container, java.lang.String sIteratorName)
           
static JUDTIteratorBinding findOrCreateIterator(DataControlAccessorNode treeNode, JUDTBaseBindingContainer container)
          Main entry point for creating iterators.
static java.lang.String generateUniqueIteratorBindingName(JUDTBaseBindingContainer container, DataControlAccessorNode treeNode)
          Looks for the iteratorName associated with the treeNode If iterator already exist for the given tree node then generate a new iterator name adding index to it
static void printAccessorNodeDiagnostics(DataControlAccessorNode node)
          Uses a diagnostic visitor to print out some debugging information about each accessor in the hierarchy.
protected static void visitAccessorHierarchy(DataControlAccessorNode node, AccessorNodeVisitor visitor)
          Generic api for introducing a visitor that will be called at every level of the accessor node's hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

visitAccessorHierarchy

protected static void visitAccessorHierarchy(DataControlAccessorNode node,
                                             AccessorNodeVisitor visitor)
Generic api for introducing a visitor that will be called at every level of the accessor node's hierarchy.

Parameters:
node -
visitor -

printAccessorNodeDiagnostics

public static void printAccessorNodeDiagnostics(DataControlAccessorNode node)
Uses a diagnostic visitor to print out some debugging information about each accessor in the hierarchy.

Parameters:
node -

findOrCreateIterator

public static JUDTIteratorBinding findOrCreateIterator(DataControlAccessorNode treeNode,
                                                       JUDTBaseBindingContainer container)
Main entry point for creating iterators. It takes the accessor node return be the selected tree node and creates the iterator hierachy required at runtime.

Parameters:
treeNode -
container -
Returns:

cleanupModelReference

public static void cleanupModelReference(DataControlAccessorNode treeNode,
                                         JUDTIteratorBinding iterator,
                                         JUDTDataControl control)
We need to make sure the iterator points to the name in the CPX file, not the proposed name in the databinding tree.


createIterator

public static JUDTIteratorBinding createIterator(DataControlAccessorNode treeNode,
                                                 JUDTBaseBindingContainer container)

createIteratorWithId

public static JUDTIteratorBinding createIteratorWithId(DataControlAccessorNode treeNode,
                                                       JUDTBaseBindingContainer container,
                                                       java.lang.String sIteratorName)

generateUniqueIteratorBindingName

public static java.lang.String generateUniqueIteratorBindingName(JUDTBaseBindingContainer container,
                                                                 DataControlAccessorNode treeNode)
Looks for the iteratorName associated with the treeNode If iterator already exist for the given tree node then generate a new iterator name adding index to it


ADF Designtime

 

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