Package com.scooterframework.transaction

Examples of com.scooterframework.transaction.Transaction


    private UserDatabaseConnection getConnection()
    throws BaseSQLException {
      UserDatabaseConnection conn = null;

        try {
            Transaction ts = getTransactionManager().getTransaction();

            if (ts == null || !ts.isTransactionStarted())  {
                throw new TransactionException("getConnection() failed: no started transaction.");
            }

            conn = ts.getConnection();

            if (conn == null) throw new CreateConnectionFailureException("getConnection() failed to create a connection.");
        }
        catch(CreateConnectionFailureException ccfex) {
            throw new BaseSQLException(ccfex);
View Full Code Here


    private UserDatabaseConnection getConnection(String connectionName)
    throws BaseSQLException {
      UserDatabaseConnection conn = null;

        try {
            Transaction ts = getTransactionManager().getTransaction();

            if (ts == null || !ts.isTransactionStarted())  {
                throw new TransactionException("getConnection() failed: no started transaction.");
            }

            conn = ts.getConnection(connectionName);

            if (conn == null) throw new CreateConnectionFailureException("getConnection() failed to create a connection.");
        }
        catch(CreateConnectionFailureException ccfex) {
            throw new BaseSQLException(ccfex);
View Full Code Here

    private UserDatabaseConnection getConnection(DatabaseConnectionContext dcc)
    throws BaseSQLException {
      UserDatabaseConnection conn = null;

        try {
            Transaction ts = getTransactionManager().getTransaction();

            if (ts == null || !ts.isTransactionStarted())  {
                throw new TransactionException("getConnection() failed: no started transaction.");
            }

            conn = ts.getConnection(dcc);

            if (conn == null) throw new CreateConnectionFailureException("getConnection() failed to create a connection.");
        }
        catch(CreateConnectionFailureException ccfex) {
            throw new BaseSQLException(ccfex);
View Full Code Here

TOP

Related Classes of com.scooterframework.transaction.Transaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.