|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnapshotManager
Method Summary | |
---|---|
void |
commit()
Commits the current changes to the data Object, indicating that the most recent Transaction was successful. |
java.lang.Object |
getData()
Provides the Object containing all the data for this SnapshotManager. |
java.lang.Object |
getQueryData()
If at all possible, this provides a read-only view of the Object returned by getData(). |
void |
readSnapshot(java.io.InputStream in)
Reads a snapshot of the data Object from in, replacing the current data Object, or overriding all it's internal data. |
void |
rollback()
Indicates that the changes to the data Object since the most recent call to commit() should be discarded. |
void |
writeSnapshot(java.io.OutputStream out)
Writes a snapshot of the data Object to out. |
Method Detail |
---|
java.lang.Object getData()
java.lang.Object getQueryData()
void writeSnapshot(java.io.OutputStream out) throws java.io.IOException
out
- the OutputStream to write the snapshot to.
java.lang.Exception
- if an error occurs. An Exception thrown here indicates
this SnapshotManager is in an unusable state.
java.io.IOException
void readSnapshot(java.io.InputStream in) throws java.io.IOException
in
- the InputStream to read the snapshot from.
java.lang.Exception
- if an error occurs. An Exception thrown here indicates
this SnapshotManager is in an unusable state.
java.io.IOException
void commit()
void rollback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |