org.example.finance
Class ProjectTimesheetsOp

java.lang.Object
  extended bynet.wgen.op.Op
      extended byorg.example.finance.ProjectTimesheetsOp
All Implemented Interfaces:
java.io.Serializable

public class ProjectTimesheetsOp
extends Op

Version:
$Id: ProjectTimesheetsOp.html,v 1.2 2007/01/28 04:09:38 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.
See Also:
Serialized Form

Field Summary
private  java.util.Map _projectInfo
           
private  java.lang.Integer _projectSid
           
private  java.util.List _timesheetResults
           
private static java.lang.String PROCEDURE
           
 
Fields inherited from class net.wgen.op.Op
_opExecutor, _options, _rootOp, LOG
 
Constructor Summary
ProjectTimesheetsOp(TraceKey traceKey)
          Default constructor must use a TraceKey object.
 
Method Summary
protected  void _execute(CallExecutor exec)
          Execute the body of the Op.
 java.util.Map getProjectInfo()
           
 java.util.List getTimesheetResults()
           
 void setProjectSid(java.lang.Integer projectSid)
           
 
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
 

Field Detail

PROCEDURE

private static final java.lang.String PROCEDURE
See Also:
Constant Field Values

_projectSid

private java.lang.Integer _projectSid

_timesheetResults

private java.util.List _timesheetResults

_projectInfo

private java.util.Map _projectInfo
Constructor Detail

ProjectTimesheetsOp

public ProjectTimesheetsOp(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

setProjectSid

public void setProjectSid(java.lang.Integer projectSid)

getTimesheetResults

public java.util.List getTimesheetResults()

getProjectInfo

public java.util.Map getProjectInfo()