org.deegree.metadata.persistence.iso
Class ISOMetadataStoreTransaction

java.lang.Object
  extended by org.deegree.metadata.persistence.iso.ISOMetadataStoreTransaction
All Implemented Interfaces:
MetadataStoreTransaction

public class ISOMetadataStoreTransaction
extends java.lang.Object
implements MetadataStoreTransaction

MetadataStoreException implementation for the ISOMetadataStore.

Version:
$Revision: 29863 $, $Date: 2011-03-04 09:41:59 +0100 (Fr, 04. Mär 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

performDelete

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

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

performInsert

public java.util.List<java.lang.String> performInsert(InsertTransaction insert)
                                               throws MetadataStoreException,
                                                      MetadataInspectorException
Description copied from interface: MetadataStoreTransaction
Performs the given InsertTransaction.

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

performUpdate

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

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

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


Copyright © 2011. All Rights Reserved.