edu.wpi.prc.task
Class NonPersistentResult

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

public class NonPersistentResult
extends Task

NonPersistentResult is a stripped-down version of the Result class. The reason that there are two different classes is because Result depends on the Hibernate library. The client does not need to use any Hibernate functionality, but if it were to use the Result 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 result 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
NonPersistentResult()
          Default contstructor.
NonPersistentResult(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

NonPersistentResult

public NonPersistentResult()
Default contstructor.


NonPersistentResult

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