org.apache.tuscany.das.rdb.impl
Class ReadCommandImpl
java.lang.Object
org.apache.tuscany.das.rdb.impl.BaseCommandImpl
org.apache.tuscany.das.rdb.impl.CommandImpl
org.apache.tuscany.das.rdb.impl.ReadCommandImpl
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- SPCommandImpl
public class ReadCommandImpl
- extends CommandImpl
Fields inherited from interface org.apache.tuscany.das.rdb.Command |
FACTORY |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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()
-