|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.metadata.iso.persistence.ISOMetadataStoreTransaction
public class ISOMetadataStoreTransaction
MetadataStoreTransaction
implementation for the ISOMetadataStore
.
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void commit() throws MetadataStoreException
MetadataStoreTransaction
MetadataStore
.
commit
in interface MetadataStoreTransaction
MetadataStoreException
- if the committing failspublic int performDelete(DeleteOperation delete) throws MetadataStoreException
MetadataStoreTransaction
DeleteOperation
.
performDelete
in interface MetadataStoreTransaction
delete
- operation to be performed, must not be null
MetadataStoreException
- if the deletion failedpublic List<String> performInsert(InsertOperation insert) throws MetadataStoreException, MetadataInspectorException
MetadataStoreTransaction
InsertOperation
.
TODO for scalabilitiy reasons and simplicitly, consider changing this to #performInsert (MetadataRecord)
performInsert
in interface MetadataStoreTransaction
insert
- operation to be performed, must not be null
null
MetadataStoreException
- if the insertion failed
MetadataInspectorException
public int performUpdate(UpdateOperation update) throws MetadataStoreException, MetadataInspectorException
MetadataStoreTransaction
UpdateOperation
.
performUpdate
in interface MetadataStoreTransaction
update
- operation to be performed, must not be null
MetadataStoreException
- if the update failed
MetadataInspectorException
public void rollback() throws MetadataStoreException
MetadataStoreTransaction
MetadataStore
.
rollback
in interface MetadataStoreTransaction
MetadataStoreException
- if the rollback fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |