edu.wpi.prc.task
Class NonPersistentWorkUnit

java.lang.Object
  extended by edu.wpi.prc.task.Task
      extended by edu.wpi.prc.task.NonPersistentWorkUnit
All Implemented Interfaces:
Prioritizable

public class NonPersistentWorkUnit
extends Task

NonPersistentWorkUnit is a stripped-down version of the WorkUnit class. The reason that there are two different classes is because WorkUnit depends on the Hibernate library. The client does not need to use any Hibernate functionality, but if it were to use the WorkUnit class, the client would still need to have the Hibernate jar file, which is over 1.5MB in size. The client distribution file should be as small as possible, so by using this version of the work unit class that does not depend on Hibernate, the client does not need to have the Hibernate jar file.

Author:
James Baldassari

Field Summary
 
Fields inherited from class edu.wpi.prc.task.Task
MIN_PRIORITY
 
Constructor Summary
NonPersistentWorkUnit()
          Default constructor.
NonPersistentWorkUnit(java.lang.String taskID)
          Constructor that takes a task ID.
 
Method Summary
 void delete()
          Only used in the persistent version of this class.
 void save()
          Only used in the persistent version of this class.
 void update()
          Only used in the persistent version of this class.
 
Methods inherited from class edu.wpi.prc.task.Task
getCreationDate, getData, getDataPartitions, getId, getPriority, getState, getStateStr, getTaskID, isEqual, setCreationDate, setData, setDataPartitions, setId, setPriority, setState, setStateStr, setTaskID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonPersistentWorkUnit

public NonPersistentWorkUnit()
Default constructor.


NonPersistentWorkUnit

public NonPersistentWorkUnit(java.lang.String taskID)
Constructor that takes a task ID.

Parameters:
taskID - The taskID to set.
Method Detail

save

public void save()
Only used in the persistent version of this class.

Specified by:
save in class Task

update

public void update()
Only used in the persistent version of this class.

Specified by:
update in class Task

delete

public void delete()
Only used in the persistent version of this class.

Specified by:
delete in class Task