|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wgen.op.DirectOpExecutor
An OpExecutor that does not connect thru RMI, but uses a Connection or ConnectionFactory to provide Ops with access to datasources.
| Field Summary | |
private boolean |
_closeConnectionsWhenFinished
Whether or not this OpExecutor should instruct the _connectionFactory to close any open connections after the Op is finished. |
private MappedConnectionFactory |
_connectionFactory
A factory that knows how to access various datasources and is passed on to the instantiated CallExecutors. |
| Constructor Summary | |
DirectOpExecutor(java.sql.Connection connection,
TraceKey traceKey)
|
|
DirectOpExecutor(MappedConnectionFactory connectionFactory)
|
|
| Method Summary | |
Op |
executeOp(Op op)
Evaluate the Op's options, construct the appropriate CallExecutor and invoke the Op's _execute method. |
void |
setCloseConnectionsWhenFinished(boolean closeConnectionsWhenFinished)
In the finally block of the executeOp method, tell the MappedConnectionFactory to close all the connections that it has open. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MappedConnectionFactory _connectionFactory
private boolean _closeConnectionsWhenFinished
| Constructor Detail |
public DirectOpExecutor(MappedConnectionFactory connectionFactory)
public DirectOpExecutor(java.sql.Connection connection,
TraceKey traceKey)
| Method Detail |
public void setCloseConnectionsWhenFinished(boolean closeConnectionsWhenFinished)
closeConnectionsWhenFinished - whether or not to tell the MappedConnectionFactory to
close all open connections
public Op executeOp(Op op)
throws OpException
executeOp in interface OpExecutorop - the Op to execute
OpException
java.lang.NullPointerException - if the op parameter is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||