org.wso2.carbon.registry.core.dataaccess
Interface TransactionManager

All Known Subinterfaces:
Registry
All Known Implementing Classes:
CacheBackedRegistry, EmbeddedRegistry, InMemoryEmbeddedRegistry, JDBCTransactionManager, RemoteRegistry, UserRegistry

public interface TransactionManager

This describes a an instance of the manager class that can be used to manage transactions on the back-end database.


Method Summary
 void beginTransaction()
          Start a new transaction
 void commitTransaction()
          Commit the currently active transaction
 void rollbackTransaction()
          Rollback the currently active transaction
 

Method Detail

beginTransaction

void beginTransaction()
                      throws RegistryException
Start a new transaction

Throws:
RegistryException - If an error occurs while starting a transaction

commitTransaction

void commitTransaction()
                       throws RegistryException
Commit the currently active transaction

Throws:
RegistryException - If an error occurs while committing a transaction

rollbackTransaction

void rollbackTransaction()
                         throws RegistryException
Rollback the currently active transaction

Throws:
RegistryException - If an error occurs while rolling back a transaction


Copyright © 2012 WSO2 Inc. All Rights Reserved.