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 |
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 |
WriteCommandImpl
public WriteCommandImpl(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 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 SQLException
- Subclasses add specific bahavior
Default is to do nothing
- Throws:
SQLException
setDataObjectModel
public void setDataObjectModel(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 String toString()
- Overrides:
toString
in class Object
getGeneratedKey
public int getGeneratedKey()
addParameters
public void addParameters(Collection updateParameters)
-