|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.db.transaction.hierarchy.HierarchySnapshotManager
public class HierarchySnapshotManager
SnapshotManager wrapper for a Hierarchy.
Constructor Summary | |
---|---|
HierarchySnapshotManager()
|
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 a Hierarchy to manipulate. |
java.lang.Object |
getQueryData()
Provides an ImmutableHierarchy to query. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchySnapshotManager()
Method Detail |
---|
public java.lang.Object getData()
getData
in interface SnapshotManager
public java.lang.Object getQueryData()
getQueryData
in interface SnapshotManager
public void writeSnapshot(java.io.OutputStream out) throws java.io.IOException
SnapshotManager
writeSnapshot
in interface SnapshotManager
out
- the OutputStream to write the snapshot to.
java.io.IOException
public void readSnapshot(java.io.InputStream in) throws java.io.IOException
SnapshotManager
readSnapshot
in interface SnapshotManager
in
- the InputStream to read the snapshot from.
java.io.IOException
public void commit()
SnapshotManager
commit
in interface SnapshotManager
public void rollback()
SnapshotManager
rollback
in interface SnapshotManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |