edu.wpi.cs.dsrg.xmldb.xat.component.sqlgeneration
Class IncrementalQuery

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.component.sqlgeneration.IncrementalQuery
Direct Known Subclasses:
IncrementalSQL, IncrementalXQuery

public abstract class IncrementalQuery
extends java.lang.Object

 IncrementalQuery is an ABC for the different query types.  It
 contains the methods for adding a clause and getting the query statement.

 Each IncrementalQuery has one or more Vectors corresponding to the different
 clauses in that query.  For example, an SQL statement will have SELECT, FROM, WHERE, etc
 The query is built incrementally, that is, each operator will add one or more
 clauses to the query via addClause.  
 

See Also:
IncrementalSQL, IncrementalXQuery

Field Summary
 BindingTable variableTable
           
 
Constructor Summary
IncrementalQuery()
          SQLIncrementalStatement constructor comment.
IncrementalQuery(BindingTable varTable)
          SQLIncrementalStatement constructor comment.
 
Method Summary
abstract  void addClause(QueryFragment fragment)
           addClause accepts an QueryFragment.
abstract  java.lang.String getStatement()
          getSQLStatement returns 1 Query statement of the appropriate tyep that is the combination of the various clause properties
 BindingTable getVariableTable()
          Insert the method's description here.
abstract  void initialize()
          initialize empties the vectors for each of the clauses.
 void setVariableTable(BindingTable newVariableTable)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variableTable

public BindingTable variableTable
Constructor Detail

IncrementalQuery

public IncrementalQuery()
SQLIncrementalStatement constructor comment.

IncrementalQuery

public IncrementalQuery(BindingTable varTable)
SQLIncrementalStatement constructor comment.
Method Detail

addClause

public abstract void addClause(QueryFragment fragment)
  addClause accepts an QueryFragment.  It takes the
  clauseText from the fragment and appends it to the
  appropriate clause vector
 
Parameters:
fragment - the QueryFragment to add to the SQL statement

getStatement

public abstract java.lang.String getStatement()
                                       throws SQLNoStatementExists
getSQLStatement returns 1 Query statement of the appropriate tyep that is the combination of the various clause properties

getVariableTable

public BindingTable getVariableTable()
Insert the method's description here. Creation date: (1/9/2003 3:00:29 PM)
Returns:
edu.wpi.cs.dsrg.utils.BindingTable

initialize

public abstract void initialize()
initialize empties the vectors for each of the clauses.

setVariableTable

public void setVariableTable(BindingTable newVariableTable)
Insert the method's description here. Creation date: (1/9/2003 3:00:29 PM)
Parameters:
newVariableTable - BindingTable