Tuscany DAS for Relational Databases

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

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
              extended by org.apache.tuscany.das.rdb.impl.InsertCommandImpl
All Implemented Interfaces:
Command

public class InsertCommandImpl
extends WriteCommandImpl


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
InsertCommandImpl(java.lang.String sqlString)
           
 
Method Summary
 int getGeneratedKey()
           
 java.lang.Object getParameterValue(java.lang.String name)
          Returns the value of the associated Parameter
protected  boolean isInsert()
           
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.WriteCommandImpl
addParameters, execute, executeQuery, getMappingModel, setDataObjectModel
 
Methods inherited from class org.apache.tuscany.das.rdb.impl.CommandImpl
addParameter, addParameter, addParameter, addParameter, addParameter, close, getConnection, getParameter, getParameter, getParameters, 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

InsertCommandImpl

public InsertCommandImpl(java.lang.String sqlString)
Method Detail

isInsert

protected boolean isInsert()

getGeneratedKey

public int getGeneratedKey()
Overrides:
getGeneratedKey in class WriteCommandImpl

getParameterValue

public java.lang.Object getParameterValue(java.lang.String name)
Description copied from interface: Command
Returns the value of the associated Parameter

Specified by:
getParameterValue in interface Command
Overrides:
getParameterValue in class CommandImpl
Parameters:
name - the name of the Parameter
Returns:
the value of the Parameter

subtypeProcessing

protected void subtypeProcessing()
                          throws java.sql.SQLException
Description copied from class: WriteCommandImpl
Subclasses add specific bahavior Default is to do nothing

Overrides:
subtypeProcessing in class WriteCommandImpl
Throws:
java.sql.SQLException

toString

public java.lang.String toString()
Overrides:
toString in class WriteCommandImpl

Tuscany DAS for Relational Databases

-