|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
A Command is used to execute a read or write to a database
Field Summary | |
---|---|
static CommandFactory |
FACTORY
|
Method Summary | |
---|---|
void |
addParameter(int index,
int direction,
commonj.sdo.Type sdoType)
Adds a Parameter to the command |
void |
addParameter(int index,
commonj.sdo.Type sdoType)
Adds a Parameter to the command |
void |
addParameter(java.lang.String name,
int direction,
commonj.sdo.Type sdoType)
Adds a Parameter to the command |
void |
addParameter(java.lang.String name,
commonj.sdo.Type sdoType)
Adds a Parameter to the command |
void |
close()
Cleans up and realeases all resources associated with this command. |
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 |
Parameter |
getParameter(int index)
Returns the Parameter at index |
Parameter |
getParameter(java.lang.String name)
Returns the parameter associated with "name" |
java.lang.Object |
getParameterValue(int index)
Returns the value of the associated Parameter |
java.lang.Object |
getParameterValue(java.lang.String name)
Returns the value of the associated Parameter |
void |
setConnection(java.sql.Connection connection)
Provides the java.sql.Connection to be used for this executing this command. |
void |
setConnection(java.sql.Connection connection,
boolean manageTransactions)
Provides the java.sql.Connection to be used for this executing this command. |
void |
setDataObjectModel(commonj.sdo.Type schema)
Specifies an object model for a graph of DataObjects returned by #executeQuery() |
void |
setParameterType(int index,
commonj.sdo.Type dataType)
Sets the "type" of the associated Parameter |
void |
setParameterType(java.lang.String string,
commonj.sdo.Type dataType)
Sets the "type" of the associated Parameter |
void |
setParameterValue(int index,
java.lang.Object value)
Sets the value of the associated Parameter |
void |
setParameterValue(java.lang.String name,
java.lang.Object value)
Sets the value of the named Parameter |
void |
setResultSetShape(ResultSetShape shape)
Defines the structure of the ResultSet returned by the JDBC Driver when this command is executed. |
Field Detail |
---|
static final CommandFactory FACTORY
Method Detail |
---|
void execute()
commonj.sdo.DataObject executeQuery()
Parameter getParameter(java.lang.String name)
name
- the name of the parameter
Parameter getParameter(int index)
index
- the index of the Parameter
void setParameterValue(java.lang.String name, java.lang.Object value)
name
- the name of this Parametervalue
- the value for the Parametervoid setParameterValue(int index, java.lang.Object value)
index
- the index of the Parametervalue
- the value for the Parametervoid setParameterType(java.lang.String string, commonj.sdo.Type dataType)
name
- the name of this Parametertype
- the SDODataTypes-defined "type" for the Parameter.void setParameterType(int index, commonj.sdo.Type dataType)
index
- the index of the Parametertype
- the SDODataTypes-defined "type" for the Parameter.java.lang.Object getParameterValue(java.lang.String name)
name
- the name of the Parameter
java.lang.Object getParameterValue(int index)
index
- the index of the Parameter
void addParameter(int index, commonj.sdo.Type sdoType)
index
- the index of the parametersdoType
- the commonj.sdo.Type of the Parametervoid addParameter(java.lang.String name, commonj.sdo.Type sdoType)
name
- the index of the parametersdoType
- the commonj.sdo.Type of the Parametervoid addParameter(int index, int direction, commonj.sdo.Type sdoType)
index
- the index of the parameterdirection
- the direction of the Parameter. Either Parameter.IN,
Parameter.OUT or Parameter.INOUTsdoType
- specifies the type as a commonj.sdo.Type from
SDODataTypes
void addParameter(java.lang.String name, int direction, commonj.sdo.Type sdoType)
name
- the name associated with the Parameterdirection
- the direction of the Parameter. Either Parameter.IN,
Parameter.OUT or Parameter.INOUTsdoType
- specifies the type as a commonj.sdo.Type from
SDODataTypes
void setDataObjectModel(commonj.sdo.Type schema)
schema
- the model as a commonj.sdo.Typevoid setResultSetShape(ResultSetShape shape)
This method is prvided primarily to support platforms (such as Oracle) that do not provide complete support for ResultSetMetadata
shape
- the specified result set shapeResultSetShape
void setConnection(java.sql.Connection connection)
connection
- the java.sql.Connectionvoid setConnection(java.sql.Connection connection, boolean manageTransactions)
connection
- the java.sql.ConnectionmanageTransactions
- true
if the DAS should perform tx
commit/rollbackvoid close()
|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |