org.deegree.metadata.persistence.ebrim.eo
Class EbrimEOMDStoreTransaction

java.lang.Object
  extended by org.deegree.metadata.persistence.ebrim.eo.EbrimEOMDStoreTransaction
All Implemented Interfaces:
MetadataStoreTransaction

public class EbrimEOMDStoreTransaction
extends Object
implements MetadataStoreTransaction

MetadataStoreTransaction implementation for the EbrimEOMDStore.

Version:
$Revision: $, $Date: $
Author:
Lyn Goltz, last edited by: $Author: lyn $

Constructor Summary
EbrimEOMDStoreTransaction(Connection conn, boolean useLegacyPredicates)
           
 
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 operation)
          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
 

Constructor Detail

EbrimEOMDStoreTransaction

public EbrimEOMDStoreTransaction(Connection conn,
                                 boolean useLegacyPredicates)
Method Detail

commit

public void commit()
            throws MetadataStoreException
Description copied from interface: MetadataStoreTransaction
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.

Specified by:
commit in interface MetadataStoreTransaction
Throws:
MetadataStoreException - if the committing fails

rollback

public void rollback()
              throws MetadataStoreException
Description copied from interface: MetadataStoreTransaction
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.

Specified by:
rollback in interface MetadataStoreTransaction
Throws:
MetadataStoreException - if the rollback fails

performInsert

public List<String> performInsert(InsertOperation insert)
                           throws MetadataStoreException,
                                  MetadataInspectorException
Description copied from interface: MetadataStoreTransaction
Performs the given InsertOperation. TODO for scalabilitiy reasons and simplicitly, consider changing this to #performInsert (MetadataRecord)

Specified by:
performInsert in interface MetadataStoreTransaction
Parameters:
insert - operation to be performed, must not be null
Returns:
identifier of the inserted records, can be empty, but never null
Throws:
MetadataStoreException - if the insertion failed
MetadataInspectorException

performDelete

public int performDelete(DeleteOperation operation)
                  throws MetadataStoreException
Description copied from interface: MetadataStoreTransaction
Performs the given DeleteOperation.

Specified by:
performDelete in interface MetadataStoreTransaction
Parameters:
operation - operation to be performed, must not be null
Returns:
number of deleted records
Throws:
MetadataStoreException - if the deletion failed

performUpdate

public int performUpdate(UpdateOperation update)
                  throws MetadataStoreException,
                         MetadataInspectorException
Description copied from interface: MetadataStoreTransaction
Performs the given UpdateOperation.

Specified by:
performUpdate in interface MetadataStoreTransaction
Parameters:
update - operation to be performed, must not be null
Returns:
number of updated records
Throws:
MetadataStoreException - if the update failed
MetadataInspectorException


Copyright © 2011. All Rights Reserved.