|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wgen.op.db.dbunit.CallExecutorDBUnit
Executes DatabaseCalls using XML-backed capture files to supply the data.
| Field Summary | |
private TraceKey |
_traceKey
|
static java.lang.String |
CONTEXT_TAG
|
| Constructor Summary | |
CallExecutorDBUnit(TraceKey traceKey)
|
|
| Method Summary | |
void |
executeDatabaseCall(DatabaseCall dbCall)
Executes an operation described by the DatabaseCall and registers that operations output in the appropriate registers in the DatabaseCall. |
void |
executeOp(Op op)
Executes an Op. |
java.util.Collection |
executeQueryWithResultSet(DatabaseCall dbCall)
Executes an operation described by the DatabaseCall and returns the List representing the data returned by the PreparedStatement in the ResultSet. |
void |
executeUpdate(DatabaseCall dbCall)
Not implemented, but won't throw an exception. |
protected DatabaseCallException |
makeDatabaseCallException(DatabaseCall dbCall,
java.lang.Exception ex)
Make a DatabaseCallException out of an exception. |
private void |
processPostCallOptions(DatabaseCall dbCall)
Called at the end of the finally statement to process any options that should be evaluated after everything is called. |
private void |
processPreCallOptions(DatabaseCall dbCall)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONTEXT_TAG
private final TraceKey _traceKey
| Constructor Detail |
public CallExecutorDBUnit(TraceKey traceKey)
| Method Detail |
public void executeOp(Op op)
throws OpException
executeOp in interface CallExecutorop -
OpException
public void executeDatabaseCall(DatabaseCall dbCall)
throws DatabaseCallException
executeDatabaseCall in interface CallExecutordbCall - the object describing the operation to be performed
DatabaseCallException
public java.util.Collection executeQueryWithResultSet(DatabaseCall dbCall)
throws DatabaseCallException
executeQueryWithResultSet in interface CallExecutordbCall - the object describing the operation to be run
DatabaseCallException
public void executeUpdate(DatabaseCall dbCall)
throws DatabaseCallException
executeUpdate in interface CallExecutordbCall -
DatabaseCallException
protected DatabaseCallException makeDatabaseCallException(DatabaseCall dbCall,
java.lang.Exception ex)
dbCall - the statement being executed when the error was encounteredex - the exception that occurred
private void processPostCallOptions(DatabaseCall dbCall)
dbCall - the call being finishedprivate void processPreCallOptions(DatabaseCall dbCall)
dbCall -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||