|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.VTIDeferModPolicy
This class applies a VTI modification deferral policy to a statement to see whether it should be deferred.
Field Summary | |
private java.util.Hashtable |
columns
|
private DeferModification |
deferralControl
|
private boolean |
deferred
|
private int |
statementType
|
private int |
tableNumber
|
Constructor Summary | |
private |
VTIDeferModPolicy(FromVTI targetVTI,
java.lang.String[] columnNames,
DeferModification deferralControl,
int statementType)
|
Method Summary | |
static boolean |
deferIt(int statementType,
FromVTI targetVTI,
java.lang.String[] updateColumnNames,
QueryTreeNode source)
See if a VTI modification statement should be deferred. |
boolean |
skipChildren(Visitable node)
Method that is called to indicate whether we should skip all nodes below this node for traversal. |
boolean |
stopTraversal()
Method that is called to see if query tree traversal should be stopped before visiting all nodes. |
Visitable |
visit(Visitable node)
This is the default visit operation on a QueryTreeNode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean deferred
private DeferModification deferralControl
private int statementType
private int tableNumber
private java.util.Hashtable columns
Constructor Detail |
private VTIDeferModPolicy(FromVTI targetVTI, java.lang.String[] columnNames, DeferModification deferralControl, int statementType)
Method Detail |
public static boolean deferIt(int statementType, FromVTI targetVTI, java.lang.String[] updateColumnNames, QueryTreeNode source) throws StandardException
statementType
- DeferModification.INSERT_STATEMENT, UPDATE_STATEMENT, or DELETE_STATEMENTtargetVTI
- The target VTIupdateColumnNames
- The list of columns being updated, null if this is not an update statementsource
-
StandardException
public Visitable visit(Visitable node) throws StandardException
Visitor
Visitors will overload this method by implementing a version with a signature that matches a specific type of node. For example, if I want to do something special with aggregate nodes, then that Visitor will implement a visit(AggregateNode node) method which does the aggregate specific processing.
visit
in interface Visitor
node
- the node to process
StandardException
- may be throw an error
as needed by the visitor (i.e. may be a normal error
if a particular node is found, e.g. if checking
a group by, we don't expect to find any ColumnReferences
that aren't under an AggregateNode -- the easiest
thing to do is just throw an error when we find the
questionable node).public boolean stopTraversal()
Visitor
stopTraversal
in interface Visitor
public boolean skipChildren(Visitable node)
Visitor
Differs from stopTraversal() in that it only affects subtrees, rather than the entire traversal.
skipChildren
in interface Visitor
node
- the node to process
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |