net.wgen.op
Class DummyOp

java.lang.Object
  extended bynet.wgen.op.Op
      extended bynet.wgen.op.DummyOp
All Implemented Interfaces:
java.io.Serializable

public class DummyOp
extends Op

Version:
$Id: DummyOp.html,v 1.2 2007/01/28 04:09:36 paulfeuer Exp $
Author:
paulf
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.wgen.op.Op
_opExecutor, _options, _rootOp, LOG
 
Constructor Summary
DummyOp(TraceKey traceKey)
          Default constructor must use a TraceKey object.
 
Method Summary
protected  void _execute(CallExecutor exec)
          Execute the body of the Op.
 
Methods inherited from class net.wgen.op.Op
execute, getAmountOfWorkDone, getCallersUserId, getDefaultDataSourceName, getLogger, getOptions, getRootOp, getTraceKey, makeFunction, makeProcedure, makeQuery, setDefaultDataSourceName, setOpExecutor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyOp

public DummyOp(TraceKey traceKey)
Default constructor must use a TraceKey object. During initialization, the Op's options will be retrieved from the TraceKey's userData map at key ParamTriggerState.TRACE_KEY_USER_DATA_KEY. The defaultDataSourceName will also be initialized using the dataSourceName of the OpModule in the TraceKey. The defaultDataSourceName is used to initialize the dataSourceName of the DatabaseCalls created by the Op's DatabaseCall convenience methods.

Parameters:
traceKey - the traceKey identifying the request responsible for the instantiation and execution of this Op
Throws:
java.lang.NullPointerException - if traceKey or traceKey.getUserId() is null
See Also:
ParamTriggerState.TRACE_KEY_USER_DATA_KEY, OpModule.getDataSourceName()
Method Detail

_execute

protected void _execute(CallExecutor exec)
                 throws OpException
Execute the body of the Op.

Specified by:
_execute in class Op
Parameters:
exec - what will perform DB or other calls
Throws:
OpException