|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlobVersion
Set of BlobObject modifications that were or will be saved together
to this BlobStore.
| Method Summary | |
|---|---|
void |
commit()
Makes the changes to the open blobs in this BlobVersion available
to others. |
boolean |
erase()
Reverts all committed changes to blobs from this BlobVersion. |
String[] |
getModifications()
Blobs that have been modified in this version. |
BlobObject |
open(String uri)
Opens a BlobObject for reading or writing if this
BlobVersion has not be committed. |
void |
prepare()
Prevents any further changes to the store from other threads until commit() or rollback() is called from this thread. |
void |
rollback()
Aborts all uncommitted changes to blobs, restoring the initial state of this BlobVersion. |
| Method Detail |
|---|
String[] getModifications()
throws IOException
IOException
BlobObject open(String uri)
throws IOException,
IllegalStateException
BlobObject for reading or writing if this
BlobVersion has not be committed. Opens a read-only
BlobObject using this version if this BlobVersion is
closed.
IllegalStateException - if this BlobVersion has been committed and the blob
is not listed in getModifications().
IOException
void prepare()
throws IOException
commit() or rollback() is called from this thread.
Checks that the blobs read or written in this BlobVersion were
not changed in another BlobVersion since they were opened.
IOException - if a blob opened in this BlobVersion had since
changed.
void commit()
throws IOException
BlobVersion available
to others. This method can only be called at most once for a given
BlobVersion; once this method is called this state is closed and
only the modified blobs can be opened.
IOException - if a blob opened in this BlobVersion had since
changed.
void rollback()
throws IOException
BlobVersion.
IOException
boolean erase()
throws IOException
BlobVersion.
true if all blobs of this version were removed
successfully.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||