org.apache.tuscany.das.rdb.impl
Class WriteCommandImpl
java.lang.Object
org.apache.tuscany.das.rdb.impl.BaseCommandImpl
org.apache.tuscany.das.rdb.impl.CommandImpl
org.apache.tuscany.das.rdb.impl.WriteCommandImpl
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- DeleteCommandImpl, InsertCommandImpl, UpdateCommandImpl
public abstract class WriteCommandImpl
- extends CommandImpl
Fields inherited from interface org.apache.tuscany.das.rdb.Command |
FACTORY |
Method Summary |
void |
addParameters(java.util.Collection updateParameters)
|
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 |
int |
getGeneratedKey()
|
Config |
getMappingModel()
|
void |
setDataObjectModel(commonj.sdo.Type schema)
Specifies an object model for a graph of DataObjects returned by
#executeQuery() |
protected void |
subtypeProcessing()
Subclasses add specific bahavior
Default is to do nothing |
java.lang.String |
toString()
|
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, wait, wait, wait |
WriteCommandImpl
public WriteCommandImpl(java.lang.String sqlString)
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
getMappingModel
public Config getMappingModel()
subtypeProcessing
protected void subtypeProcessing()
throws java.sql.SQLException
- Subclasses add specific bahavior
Default is to do nothing
- Throws:
java.sql.SQLException
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getGeneratedKey
public int getGeneratedKey()
addParameters
public void addParameters(java.util.Collection updateParameters)
-