org.apache.derby.impl.sql.compile
Class HashNodeList

java.lang.Object
  extended byorg.apache.derby.impl.sql.compile.QueryTreeNode
      extended byorg.apache.derby.impl.sql.compile.HashNodeList
All Implemented Interfaces:
Visitable

public abstract class HashNodeList
extends QueryTreeNode

HashNodeList is the root class for all hashlists of query tree nodes. It implements the QueryTree interface that is part of the Language protocols

Author:
Rick Hillegas

Field Summary
private  java.util.Hashtable hashtable
           
 
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset
 
Constructor Summary
HashNodeList()
           
 
Method Summary
 void add(java.lang.Object key, java.lang.Object value)
          Add an element to this hash list.
 java.util.Enumeration elements()
          Get an iterator to walk this hash list
 java.lang.Object get(java.lang.Object key)
          Gets an element by key
 boolean needsSavepoint()
          Returns whether or not this Statement requires a set/clear savepoint around its execution.
 int size()
          Returns the size of the list.
 java.lang.String toString()
          Convert this object to a String.
 
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, bind, convertDefaultNode, debugFlush, debugPrint, executeSchemaName, executeStatementName, formatNodeString, foundString, generate, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getSPSName, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isSessionSchema, isSessionSchema, makeConstantAction, makeResultDescription, makeTableName, nodeHeader, optimize, parseQueryText, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, treePrint, treePrint, verifyClassExist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hashtable

private java.util.Hashtable hashtable
Constructor Detail

HashNodeList

public HashNodeList()
Method Detail

add

public void add(java.lang.Object key,
                java.lang.Object value)
Add an element to this hash list.

Parameters:
key - hash key for new value
value - new item to add to list

size

public int size()
Returns the size of the list.

Returns:
size of the list

elements

public java.util.Enumeration elements()
Get an iterator to walk this hash list

Returns:
an Enumeration for walking this hash list

get

public java.lang.Object get(java.lang.Object key)
Gets an element by key

Parameters:
key - hash key to lookup
Returns:
the element associated with the hash key null if no element with that key exists

toString

public java.lang.String toString()
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Overrides:
toString in class QueryTreeNode
Returns:
This object as a String

needsSavepoint

public boolean needsSavepoint()
Returns whether or not this Statement requires a set/clear savepoint around its execution. The following statement "types" do not require them: Cursor - unnecessary and won't work in a read only environment Xact - savepoint will get blown away underneath us during commit/rollback

Overrides:
needsSavepoint in class QueryTreeNode
Returns:
boolean Whether or not this Statement requires a set/clear savepoint

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.