edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator
Class SQLStmtImp

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
              |
              +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
                    |
                    +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.SQLStmtImp

public class SQLStmtImp
extends XATOperatorImp
implements SQLStmt

Implementation for interface SQLStmt .

Since:
1.0
See Also:
Serialized Form

Field Summary
protected  java.lang.String sOrgColumnName
           
protected  java.lang.String sSqlStmt
           
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
columnsFiltered, outputColumnName, xnodOwner, xtabOutput
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
stats, statsPresent
 
Constructor Summary
SQLStmtImp(XATNode xnodInit)
          Assigns a node to this operator .
SQLStmtImp(XATNode xnodInit, java.lang.String sSqlStmtInit)
          Assigns a node to this operator and the sql statement.
 
Method Summary
 void accept(Visitor visitor)
          It used to implement a visitor pattern.
 java.lang.String getStmt()
          Get the current SQL statement in the SQL operator.
 void setStmt(java.lang.String newSQL)
          Set the SQL stored in this SQL operator.
 java.lang.String toString()
          returns a string representation
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
clone, getColumnsFiltered, getNode, getOutput, getOutputColumnName, getOutputDataSource, getOutputDataSources, getPrimaryDataSource, getPrimarySource, setDefaultProperties, setNode, setOutput, setOutputColumnName, setProperty
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
addStatistic, compareTo, getStatistics, isValidStatistic, setDefaultStatistics
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
addProperty, getProperties, getProperty, isValidPropertyName, setNewPropertyValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sSqlStmt

protected java.lang.String sSqlStmt

sOrgColumnName

protected java.lang.String sOrgColumnName
Constructor Detail

SQLStmtImp

public SQLStmtImp(XATNode xnodInit)
Assigns a node to this operator .
Parameters:
xnodInit - edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNode
Since:
1.0

SQLStmtImp

public SQLStmtImp(XATNode xnodInit,
                  java.lang.String sSqlStmtInit)
Assigns a node to this operator and the sql statement.
Parameters:
xnodInit - edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNode
sSqlStmtInit - is teh the sql statement
Since:
1.0
Method Detail

accept

public void accept(Visitor visitor)
It used to implement a visitor pattern.
Parameters:
visitor - for the visitor pattern
Since:
1.0

getStmt

public java.lang.String getStmt()
Get the current SQL statement in the SQL operator.
Specified by:
getStmt in interface SQLStmt
Returns:
current SQL language.
Since:
1.0

setStmt

public void setStmt(java.lang.String newSQL)
Set the SQL stored in this SQL operator.
Specified by:
setStmt in interface SQLStmt
Parameters:
newSQL - the new SQL statement.
Returns:
original SQL statement.
Since:
1.0

toString

public java.lang.String toString()
returns a string representation
Overrides:
toString in class XATOperatorImp
Returns:
java.lang.String
Since:
1.0