org.apache.tuscany.das.rdb.impl
Class InsertCommandImpl
java.lang.Object
org.apache.tuscany.das.rdb.impl.BaseCommandImpl
org.apache.tuscany.das.rdb.impl.CommandImpl
org.apache.tuscany.das.rdb.impl.WriteCommandImpl
org.apache.tuscany.das.rdb.impl.InsertCommandImpl
- All Implemented Interfaces:
- Command
public class InsertCommandImpl
- extends WriteCommandImpl
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, setConnection, setParameterType, setParameterType, setParameterValue, setParameterValue, setResultSetShape |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InsertCommandImpl
public InsertCommandImpl(java.lang.String sqlString)
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
-