Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb.impl
Class ReadCommandImpl

java.lang.Object
  extended by org.apache.tuscany.das.rdb.impl.BaseCommandImpl
      extended by org.apache.tuscany.das.rdb.impl.CommandImpl
          extended by org.apache.tuscany.das.rdb.impl.ReadCommandImpl
All Implemented Interfaces:
Command
Direct Known Subclasses:
SPCommandImpl

public class ReadCommandImpl
extends CommandImpl


Field Summary
 
Fields inherited from class org.apache.tuscany.das.rdb.impl.CommandImpl
debug, parameters, resultSetShape, statement
 
Fields inherited from class org.apache.tuscany.das.rdb.impl.BaseCommandImpl
configWrapper
 
Fields inherited from interface org.apache.tuscany.das.rdb.Command
FACTORY
 
Constructor Summary
ReadCommandImpl(java.lang.String sqlString)
           
ReadCommandImpl(java.lang.String sqlString, Config mapping)
           
ReadCommandImpl(java.lang.String sqlString, Config mapping, java.sql.Connection connection)
           
 
Method Summary
protected  commonj.sdo.DataObject buildGraph(java.sql.ResultSet result)
           
protected  void enablePaging()
           
 void execute()
          Performs the function defined by the command
 commonj.sdo.DataObject executeQuery()
          Performs the function defined by the command and return the results in the root DataObject
protected  int getEndRow()
           
protected  int getStartRow()
           
 void setConnection(ConnectionProperties c)
           
 void setDataObjectModel(commonj.sdo.Type schema)
          Specifies an object model for a graph of DataObjects returned by #executeQuery()
protected  void setEndRow(int endRow)
           
protected  void setStartRow(int startRow)
           
 
Methods inherited from class org.apache.tuscany.das.rdb.impl.CommandImpl
addParameter, addParameter, addParameter, addParameter, addParameter, close, getConnection, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, setConnection, setParameterType, setParameterType, setParameterValue, setParameterValue, setResultSetShape
 
Methods inherited from class org.apache.tuscany.das.rdb.impl.BaseCommandImpl
addCollisionColumn, addConverter, addGeneratedPrimaryKey, addPrimaryKey, addPrimaryKey, addRelationship, addRelationship, setConnection, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.das.rdb.Command
setConnection, setConnection
 

Constructor Detail

ReadCommandImpl

public ReadCommandImpl(java.lang.String sqlString)

ReadCommandImpl

public ReadCommandImpl(java.lang.String sqlString,
                       Config mapping)

ReadCommandImpl

public ReadCommandImpl(java.lang.String sqlString,
                       Config mapping,
                       java.sql.Connection connection)
Method Detail

execute

public void execute()
Description copied from interface: Command
Performs the function defined by the command

Specified by:
execute in interface Command
Specified by:
execute in class CommandImpl

executeQuery

public commonj.sdo.DataObject executeQuery()
Description copied from interface: Command
Performs the function defined by the command and return the results in the root DataObject

Specified by:
executeQuery in interface Command
Specified by:
executeQuery in class CommandImpl
Returns:
the root DataObject

buildGraph

protected commonj.sdo.DataObject buildGraph(java.sql.ResultSet result)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getStartRow

protected int getStartRow()

getEndRow

protected int getEndRow()

setStartRow

protected void setStartRow(int startRow)

setEndRow

protected void setEndRow(int endRow)

setConnection

public void setConnection(ConnectionProperties c)

setDataObjectModel

public void setDataObjectModel(commonj.sdo.Type schema)
Description copied from interface: Command
Specifies an object model for a graph of DataObjects returned by #executeQuery()

Parameters:
schema - the model as a commonj.sdo.Type

enablePaging

protected void enablePaging()

Tuscany DAS for Relational Databases

-