|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.datasource.rdb.lib.JDBCWrapper
This class implements the Wrapper interface for the jdbc resources. This implementation uses Statements to perform the request.
Constructor Summary | |
JDBCWrapper()
|
Method Summary | |
long |
deleteData(QueryLeaf ql,
ParameterOperand[] parameters,
java.lang.Object connection,
EvaluationMetaData evalMD)
This method links the wrapper to a particular QueryLeaf, and executes the delete on the underlying data store. |
TupleCollection |
fetchData(QueryLeaf lf,
ParameterOperand[] parameters,
java.lang.Object connection,
EvaluationMetaData evalMD)
This method links the wrapper to a particular QueryLeaf, and executes the query on the underlying data store for fetching data. |
long |
updateData(QueryLeaf ql,
ParameterOperand[] parameters,
java.lang.Object connection,
EvaluationMetaData evalMD)
This method links the wrapper to a particular QueryLeaf, and executes data updating on the underlying data store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCWrapper()
Method Detail |
public TupleCollection fetchData(QueryLeaf lf, ParameterOperand[] parameters, java.lang.Object connection, EvaluationMetaData evalMD) throws EvaluationException
Wrapper
fetchData
in interface Wrapper
lf
- the QueryLeafparameters
- the parameters necessary for obtaining data from the
QueryLeaf (in the case the QueryLeaf contains an expression)connection
- an Object which contains information for connecting
to the DataStore behind the QueryLeaf (could be a JDBC connection, ...)s
EvaluationException
- in case of problems during the evaluation.public long deleteData(QueryLeaf ql, ParameterOperand[] parameters, java.lang.Object connection, EvaluationMetaData evalMD) throws EvaluationException
Wrapper
deleteData
in interface Wrapper
ql
- the QueryLeafparameters
- the parameters necessary for obtaining data from the
QueryLeaf (in the case the QueryLeaf contains an expression)connection
- an Object which contains information for connecting
to the DataStore behind the QueryLeaf (could be a JDBC connection, ...)s
EvaluationException
- in case of problems during the evaluation.public long updateData(QueryLeaf ql, ParameterOperand[] parameters, java.lang.Object connection, EvaluationMetaData evalMD) throws EvaluationException
Wrapper
updateData
in interface Wrapper
ql
- the QueryLeafparameters
- the parameters necessary for obtaining data from the
QueryLeaf (in the case the QueryLeaf contains an expression)connection
- an Object which contains information for connecting
to the DataStore behind the QueryLeaf (could be a JDBC connection, ...)sevalMD
- MUST define the update expression with the annotation
ANNOTATION_UPDATE_EXPRESSION
EvaluationException
- in case of problems during the evaluation.EvaluationMetaData.ANNOTATION_UPDATE_EXPRESSION
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |