org.wso2.carbon.registry.core.jdbc.dataaccess
Class JDBCTransactionManager

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCTransactionManager
All Implemented Interfaces:
TransactionManager

public class JDBCTransactionManager
extends Object
implements TransactionManager

An implementation of TransactionManager to manage a back-end JDBC-based transactions.


Constructor Summary
JDBCTransactionManager(DataAccessManager dataAccessManager)
          Creates a JDBC Transaction manager using the given data access manager.
 
Method Summary
 void beginTransaction()
          Start a new transaction
 void commitTransaction()
          Commit the currently active transaction
 void rollbackTransaction()
          Rollback the currently active transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCTransactionManager

public JDBCTransactionManager(DataAccessManager dataAccessManager)
Creates a JDBC Transaction manager using the given data access manager.

Parameters:
dataAccessManager - the data access manager to use.
Method Detail

beginTransaction

public void beginTransaction()
                      throws RegistryException
Description copied from interface: TransactionManager
Start a new transaction

Specified by:
beginTransaction in interface TransactionManager
Throws:
RegistryException - If an error occurs while starting a transaction

rollbackTransaction

public void rollbackTransaction()
                         throws RegistryException
Description copied from interface: TransactionManager
Rollback the currently active transaction

Specified by:
rollbackTransaction in interface TransactionManager
Throws:
RegistryException - If an error occurs while rolling back a transaction

commitTransaction

public void commitTransaction()
                       throws RegistryException
Description copied from interface: TransactionManager
Commit the currently active transaction

Specified by:
commitTransaction in interface TransactionManager
Throws:
RegistryException - If an error occurs while committing a transaction


Copyright © 2013 WSO2 Inc. All Rights Reserved.