Tuscany DAS for Relational Databases

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

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.WriteCommandImpl
All Implemented Interfaces:
Command
Direct Known Subclasses:
DeleteCommandImpl, InsertCommandImpl, UpdateCommandImpl

public abstract class WriteCommandImpl
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
WriteCommandImpl(java.lang.String sqlString)
           
 
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 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, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.das.rdb.Command
setConnection, setConnection
 

Constructor Detail

WriteCommandImpl

public WriteCommandImpl(java.lang.String sqlString)
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

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)

Tuscany DAS for Relational Databases

-