|
||||||||||
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(DeleteOperation delete)
Performs the given DeleteOperation . |
List<String> |
performInsert(InsertOperation insert)
Performs the given InsertOperation . |
int |
performUpdate(UpdateOperation update)
Performs the given UpdateOperation . |
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 failsList<String> performInsert(InsertOperation insert) throws MetadataStoreException, MetadataInspectorException
InsertOperation
.
TODO for scalabilitiy reasons and simplicitly, consider changing this to #performInsert (MetadataRecord)
insert
- operation to be performed, must not be null
null
MetadataStoreException
- if the insertion failed
MetadataInspectorException
int performDelete(DeleteOperation delete) throws MetadataStoreException
DeleteOperation
.
delete
- operation to be performed, must not be null
MetadataStoreException
- if the deletion failedint performUpdate(UpdateOperation update) throws MetadataStoreException, MetadataInspectorException
UpdateOperation
.
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 |