org.enhydra.shark
Class WfStateEventAuditWrapper

java.lang.Object
  extended byorg.enhydra.shark.WfEventAuditWrapper
      extended byorg.enhydra.shark.WfStateEventAuditWrapper
All Implemented Interfaces:
BaseBusinessObject, PersistenceInterface, java.io.Serializable, WfEventAudit, WfEventAuditInternal, WfStateEventAudit, WfStateEventAuditInternal

public class WfStateEventAuditWrapper
extends WfEventAuditWrapper
implements WfStateEventAuditInternal

WfStateEventAuditImpl - Workflow Event Audit implementation.

Author:
Sasa Bojanic
See Also:
Serialized Form

Field Summary
protected  java.lang.String newState
           
protected  java.lang.String oldState
           
 
Fields inherited from class org.enhydra.shark.WfEventAuditWrapper
activityDefinitionId, activityDefinitionName, activityDefinitionType, activityId, activityName, eventType, packageId, processDefinitionId, processDefinitionName, processId, processMgrName, processMgrVersion, processName, shandle, timeStamp, username
 
Constructor Summary
protected WfStateEventAuditWrapper(WMSessionHandle shandle, StateEventAuditPersistenceObject po)
          Used to create object when restoring it from database.
protected WfStateEventAuditWrapper(WMSessionHandle shandle, WfExecutionObjectInternal object, java.lang.String eventType, java.lang.String oldState, java.lang.String newState)
           
 
Method Summary
 void delete(WMSessionHandle sh)
           
protected  void fillPersistentObject(EventAuditPersistenceInterface po)
           
 java.lang.String new_state()
           
 java.lang.String old_state()
           
 void persist(WMSessionHandle sh)
           
 void refresh()
           
protected  void restore(EventAuditPersistenceInterface po)
           
 
Methods inherited from class org.enhydra.shark.WfEventAuditWrapper
activity_definition_id, activity_definition_name, activity_definition_type, activity_key, activity_name, checkSecurity, event_type, initEventObject, package_id, process_definition_id, process_definition_name, process_key, process_mgr_name, process_mgr_version, process_name, source, time_stamp, username
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.enhydra.shark.api.internal.working.WfEventAuditInternal
activity_definition_id, activity_definition_name, activity_definition_type, package_id, process_definition_id, process_definition_name, username
 
Methods inherited from interface org.enhydra.shark.api.client.wfmodel.WfEventAudit
activity_key, activity_name, event_type, process_key, process_mgr_name, process_mgr_version, process_name, source, time_stamp
 

Field Detail

oldState

protected java.lang.String oldState

newState

protected java.lang.String newState
Constructor Detail

WfStateEventAuditWrapper

protected WfStateEventAuditWrapper(WMSessionHandle shandle,
                                   WfExecutionObjectInternal object,
                                   java.lang.String eventType,
                                   java.lang.String oldState,
                                   java.lang.String newState)
                            throws java.lang.Exception

WfStateEventAuditWrapper

protected WfStateEventAuditWrapper(WMSessionHandle shandle,
                                   StateEventAuditPersistenceObject po)
Used to create object when restoring it from database.

Method Detail

old_state

public java.lang.String old_state()
                           throws java.lang.Exception
Specified by:
old_state in interface WfStateEventAudit
Throws:
java.lang.Exception

new_state

public java.lang.String new_state()
                           throws java.lang.Exception
Specified by:
new_state in interface WfStateEventAudit
Throws:
java.lang.Exception

persist

public void persist(WMSessionHandle sh)
             throws java.lang.Exception
Specified by:
persist in interface PersistenceInterface
Throws:
java.lang.Exception

refresh

public void refresh()

delete

public void delete(WMSessionHandle sh)
            throws java.lang.Exception
Specified by:
delete in interface PersistenceInterface
Throws:
java.lang.Exception

fillPersistentObject

protected void fillPersistentObject(EventAuditPersistenceInterface po)
Overrides:
fillPersistentObject in class WfEventAuditWrapper

restore

protected void restore(EventAuditPersistenceInterface po)
Overrides:
restore in class WfEventAuditWrapper