|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataStoreTransaction
Provides transactional access to a MetadataStore
.
Please note that a transaction must always be ended by calling either commit()
or rollback()
.
MetadataStore.acquireTransaction()
Method Summary | |
---|---|
void |
commit()
Makes the changes persistent that have been performed in this transaction and releases the transaction instance so other clients may acquire a transaction on the MetadataStore . |
int |
performDelete(DeleteTransaction delete)
Performs the given DeleteTransaction . |
java.util.List<java.lang.String> |
performInsert(InsertTransaction insert)
Performs the given InsertTransaction . |
int |
performUpdate(UpdateTransaction update)
Performs the given UpdateTransaction . |
void |
rollback()
Aborts the changes that have been performed in this transaction and releases the transaction instance so other clients may acquire a transaction on the MetadataStore . |
Method Detail |
---|
void commit() throws MetadataStoreException
MetadataStore
.
MetadataStoreException
- if the committing failsvoid rollback() throws MetadataStoreException
MetadataStore
.
MetadataStoreException
- if the rollback failsjava.util.List<java.lang.String> performInsert(InsertTransaction insert) throws MetadataStoreException, MetadataInspectorException
InsertTransaction
.
insert
- operation to be performed, must not be null
null
MetadataStoreException
- if the insertion failed
MetadataInspectorException
int performDelete(DeleteTransaction delete) throws MetadataStoreException
DeleteTransaction
.
delete
- operation to be performed, must not be null
MetadataStoreException
- if the deletion failedint performUpdate(UpdateTransaction update) throws MetadataStoreException, MetadataInspectorException
UpdateTransaction
.
update
- operation to be performed, must not be null
MetadataStoreException
- if the update failed
MetadataInspectorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |