|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Persistent
Specified methods which must be implemented by objects wishing to be saved.
| Field Summary | |
|---|---|
static int |
DELETED
The Persistent needs to be deleted from the data store. |
static int |
MODIFIED
The Peersistence has been modified since last save or restore. |
static int |
NEW
The Persistent is a brand new object. |
static int |
UNMODIFIED
The Persistent has not yet been modified since last save or restore. |
| Method Summary | |
|---|---|
void |
restore()
Prescribes a method for restoration from a data store. |
void |
save()
Prescribes a method for saving this object's data to a data store. |
| Field Detail |
|---|
static final int UNMODIFIED
static final int MODIFIED
static final int NEW
static final int DELETED
| Method Detail |
|---|
void restore()
throws PersistenceException
PersistenceException - thrown when an error occurs in restoringPersistentPeer
void save()
throws PersistenceException
PersistentPeer - thrown when an error occurs in saving
PersistenceExceptionPersistentPeer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||