|
||||||||||
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.NonPersistentResult
public class NonPersistentResult
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.
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 |
---|
public NonPersistentResult()
public NonPersistentResult(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 |