|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.task.Task
edu.wpi.prc.task.NonPersistentWorkUnit
public class NonPersistentWorkUnit
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.
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 |
---|
public NonPersistentWorkUnit()
public NonPersistentWorkUnit(java.lang.String taskID)
taskID
- The taskID to set.Method Detail |
---|
public void save()
save
in class Task
public void update()
update
in class Task
public void delete()
delete
in class Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |