|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.das.rdb.impl.BaseCommandImpl
org.apache.tuscany.das.rdb.impl.CommandImpl
org.apache.tuscany.das.rdb.impl.WriteCommandImpl
public abstract class WriteCommandImpl
Field Summary |
---|
Fields inherited from class org.apache.tuscany.das.rdb.impl.CommandImpl |
---|
parameters, resultSetShape, statement |
Fields inherited from class org.apache.tuscany.das.rdb.impl.BaseCommandImpl |
---|
configWrapper |
Constructor Summary | |
---|---|
WriteCommandImpl(Command command)
|
|
WriteCommandImpl(java.lang.String sqlString)
|
Method Summary | |
---|---|
protected void |
addParameters(Parameters parameters)
|
void |
addResultDescriptor(ResultDescriptor resultDescriptor)
Add/replace based on columnIndex (>=0)embedded in resultDescriptor else add at end |
void |
basicExecute()
|
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()
Returns the value of the database-generated key. |
Config |
getMappingModel()
|
ResultDescriptor |
getResultDescriptor(int index)
Return resultDescriptor if exact match for columnIndex(>=0) found else return null; |
java.util.List |
getResultDescriptors()
|
void |
printResultDescriptors(java.io.OutputStream ostrm)
Utility method |
ResultDescriptor |
removeResultDescriptor(int index)
remove ResultDescriptor at given columnIndex(>=0) and return same. |
ResultDescriptor |
removeResultDescriptor(ResultDescriptor resultDescriptor)
Remove resultDescriptor only if matched for index(>=0), name, type, schema name and table name and return same, else return null For -ve index, ignore index and if unique match for rest of the attriutes, remove/return, if multiple matches found, throw RuntimeException |
void |
setResultDescriptors(java.util.List resultDescriptorList)
Allow set of ResultDescriptor when command is created on-the-fly |
java.lang.String |
toString()
|
Methods inherited from class org.apache.tuscany.das.rdb.impl.CommandImpl |
---|
addParameter, close, getConnection, getParameter, getParameter, getParameters, setConnection, setParameter, setParameter |
Methods inherited from class org.apache.tuscany.das.rdb.impl.BaseCommandImpl |
---|
setConnection, setConnection, setConnection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WriteCommandImpl(Command command)
public WriteCommandImpl(java.lang.String sqlString)
Method Detail |
---|
public void setResultDescriptors(java.util.List resultDescriptorList)
Command
public java.util.List getResultDescriptors()
public void addResultDescriptor(ResultDescriptor resultDescriptor)
Command
public ResultDescriptor removeResultDescriptor(int index)
Command
public ResultDescriptor removeResultDescriptor(ResultDescriptor resultDescriptor)
Command
public ResultDescriptor getResultDescriptor(int index)
Command
public void printResultDescriptors(java.io.OutputStream ostrm) throws java.io.IOException
Command
java.io.IOException
public void execute()
Command
execute
in interface Command
execute
in class CommandImpl
public void basicExecute()
public commonj.sdo.DataObject executeQuery()
Command
executeQuery
in interface Command
executeQuery
in class CommandImpl
public Config getMappingModel()
public java.lang.String toString()
toString
in class java.lang.Object
public int getGeneratedKey()
Command
getGeneratedKey
in interface Command
getGeneratedKey
in class CommandImpl
protected void addParameters(Parameters parameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |