ADF Designtime

oracle.adf.dt.controls.treemodel.bean.toplink
Class ToplinkModelQueryTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byoracle.adf.dt.controls.treemodel.DefaultDataControlTreeNode
          extended byoracle.adf.dt.controls.treemodel.DefaultDataControlAccessorNode
              extended byoracle.adf.dt.controls.treemodel.MethodTreeNode
                  extended byoracle.adf.dt.controls.treemodel.bean.BeanMethodNode
                      extended byoracle.adf.dt.controls.treemodel.bean.toplink.ToplinkModelQueryTreeNode
All Implemented Interfaces:
BasicTreeNode, java.lang.Cloneable, ContainerNode, DataControlAccessorNode, DataControlTreeNode, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class ToplinkModelQueryTreeNode
extends BeanMethodNode
implements DataControlAccessorNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Fields inherited from interface oracle.adf.dt.controls.DataControlTreeNode
ACCESSOR_NODE, ACTION_NODE, APPLICATION_MODULE, ATTRIBUTE_NODE, COLLECTION_NODE, DATA_CONTROL_NODE, JAVA_BEAN, METHOD_NODE
 
Constructor Summary
ToplinkModelQueryTreeNode(JUDTDataControl session, JUDTBean bean, java.lang.String queryName, boolean isReadAllQuery, TreeNodesChooser chooser)
           
 
Method Summary
 boolean actionRepresentsNode(JUDTCtrlAction action)
          Allows the tree node to decide if the passed in action represents the action that the tree node requires.
 void add(javax.swing.tree.MutableTreeNode newChild)
           
 java.lang.String getDefaultBindingName()
           
 java.lang.String getIteratorModelReference()
           
 java.lang.String getIteratorName()
           
 java.lang.String getIteratorSubType()
           
 java.lang.String getModelObjectName()
           
 java.lang.String getModelObjectType()
           
 java.lang.String getModelPath()
          Returns the path of the accessor hierarchy.
 java.lang.String getNodeText()
           
 int getNodeType()
           
 RowsetInfo getRowsetInfo()
          Only call this function if getNodeType() returns ACCESSOR_NODE or COLLECTION_NODE
 java.lang.String getTooltipText()
           
 void initializeActionBinding(JUDTCtrlAction action)
          Allows the tree node to initialize the action that is bound to it.
 void initializeIteratorBinding(JUDTIteratorBinding iterator)
          Allows tree node to initalize the iterator binding created based on the node selection.
 boolean iteratorRepresentsNode(JUDTIteratorBinding iterator)
          Allows tree node to decide if the given iterator matches the node's iterator definition.
 void loadChildNodes()
          Makes sure the child nodes are loaded.
 void setNodeText(java.lang.String nodeText)
           
 
Methods inherited from class oracle.adf.dt.controls.treemodel.bean.BeanMethodNode
hasReturnType, requiresIterator, setRequiresIterator
 
Methods inherited from class oracle.adf.dt.controls.treemodel.MethodTreeNode
getAttributeBindings, getAttributeInfo, getMethodDescriptor
 
Methods inherited from class oracle.adf.dt.controls.treemodel.DefaultDataControlAccessorNode
addActionNodes, getActionNodes, getIteratorClass, getMasterNode, isOperationSupported, setIteratorClass, setMasterNode
 
Methods inherited from class oracle.adf.dt.controls.treemodel.DefaultDataControlTreeNode
addTransactionNodes, getActionsFolder, getActualBindingType, getBindingNameSuffix, getDataControl, getInstanceName, getIteratorSourceNode, getMethodReturnNode, getNodeIcon, getTransactionNodes, getTreeNodesChooser, isMethodReturnChildNode, isReadyForBinding, isRuntimeEditable, isRuntimeVisible, isScalarMethodReturnNode, isViewObjectMethod, setActionInstanceName, setInstanceName, setIteratorSourcenode, setNodeIcon, setShouldExpand, shouldExpandNode, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.adf.dt.controls.DataControlAccessorNode
getIteratorClass, getMasterNode, setIteratorClass
 
Methods inherited from interface oracle.adf.dt.controls.DataControlTreeNode
getActualBindingType, getAttributeBindings, getAttributeInfo, getBindingNameSuffix, getDataControl, getInstanceName, getIteratorSourceNode, getMethodReturnNode, isMethodReturnChildNode, isOperationSupported, isReadyForBinding, isRuntimeEditable, isRuntimeVisible, isScalarMethodReturnNode, isViewObjectMethod, requiresIterator, setInstanceName
 
Methods inherited from interface oracle.adf.dt.controls.BasicTreeNode
getNodeIcon, getUserObject, setShouldExpand, shouldExpandNode
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Constructor Detail

ToplinkModelQueryTreeNode

public ToplinkModelQueryTreeNode(JUDTDataControl session,
                                 JUDTBean bean,
                                 java.lang.String queryName,
                                 boolean isReadAllQuery,
                                 TreeNodesChooser chooser)
Method Detail

getNodeType

public int getNodeType()
Specified by:
getNodeType in interface DataControlTreeNode
Overrides:
getNodeType in class MethodTreeNode

getModelObjectName

public java.lang.String getModelObjectName()
Specified by:
getModelObjectName in interface DataControlTreeNode
Overrides:
getModelObjectName in class MethodTreeNode

getModelObjectType

public java.lang.String getModelObjectType()
Specified by:
getModelObjectType in interface DataControlTreeNode
Overrides:
getModelObjectType in class MethodTreeNode

getTooltipText

public java.lang.String getTooltipText()
Specified by:
getTooltipText in interface BasicTreeNode
Overrides:
getTooltipText in class MethodTreeNode

getNodeText

public java.lang.String getNodeText()
Specified by:
getNodeText in interface BasicTreeNode
Overrides:
getNodeText in class MethodTreeNode

setNodeText

public void setNodeText(java.lang.String nodeText)

loadChildNodes

public void loadChildNodes()
Description copied from interface: ContainerNode
Makes sure the child nodes are loaded. If Any.

Specified by:
loadChildNodes in interface ContainerNode
Overrides:
loadChildNodes in class MethodTreeNode

add

public void add(javax.swing.tree.MutableTreeNode newChild)

getDefaultBindingName

public java.lang.String getDefaultBindingName()
Specified by:
getDefaultBindingName in interface DataControlTreeNode
Overrides:
getDefaultBindingName in class MethodTreeNode

initializeActionBinding

public void initializeActionBinding(JUDTCtrlAction action)
Description copied from interface: DataControlTreeNode
Allows the tree node to initialize the action that is bound to it. The default implementation provides initialization for the known method types.

Specified by:
initializeActionBinding in interface DataControlTreeNode
Overrides:
initializeActionBinding in class BeanMethodNode

getIteratorName

public java.lang.String getIteratorName()
Specified by:
getIteratorName in interface DataControlAccessorNode
Overrides:
getIteratorName in class DefaultDataControlAccessorNode

actionRepresentsNode

public boolean actionRepresentsNode(JUDTCtrlAction action)
Description copied from interface: DataControlTreeNode
Allows the tree node to decide if the passed in action represents the action that the tree node requires. Since the comparison is data control specific, the tree node needs to decide if the action that already exists in the binding container matches the node's requirements.

Specified by:
actionRepresentsNode in interface DataControlTreeNode
Overrides:
actionRepresentsNode in class DefaultDataControlTreeNode
Parameters:
action -
Returns:

getIteratorModelReference

public java.lang.String getIteratorModelReference()
Specified by:
getIteratorModelReference in interface DataControlAccessorNode
Overrides:
getIteratorModelReference in class DefaultDataControlAccessorNode
Returns:
The model reference expresssion for use in the iterator for this node.

getRowsetInfo

public RowsetInfo getRowsetInfo()
Only call this function if getNodeType() returns ACCESSOR_NODE or COLLECTION_NODE

Specified by:
getRowsetInfo in interface DataControlAccessorNode
Overrides:
getRowsetInfo in class MethodTreeNode
Returns:

getIteratorSubType

public java.lang.String getIteratorSubType()
Specified by:
getIteratorSubType in interface DataControlAccessorNode
Overrides:
getIteratorSubType in class DefaultDataControlTreeNode
Returns:
The iterator type name to use for this node. If getIteratorClass() returns a value, it takes precedence over getIteratorSubType(). The factory class will create the appropriate iterator class based on the sub type.

iteratorRepresentsNode

public boolean iteratorRepresentsNode(JUDTIteratorBinding iterator)
Allows tree node to decide if the given iterator matches the node's iterator definition. It a match is not found a new iterator will be created.

Specified by:
iteratorRepresentsNode in interface DataControlAccessorNode
Overrides:
iteratorRepresentsNode in class DefaultDataControlAccessorNode
Parameters:
iterator -
Returns:

initializeIteratorBinding

public void initializeIteratorBinding(JUDTIteratorBinding iterator)
Allows tree node to initalize the iterator binding created based on the node selection.

Specified by:
initializeIteratorBinding in interface DataControlAccessorNode
Overrides:
initializeIteratorBinding in class DefaultDataControlAccessorNode
Parameters:
iterator -

getModelPath

public java.lang.String getModelPath()
Description copied from interface: DataControlAccessorNode
Returns the path of the accessor hierarchy.

Specified by:
getModelPath in interface DataControlAccessorNode
Overrides:
getModelPath in class MethodTreeNode

ADF Designtime

 

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