Package com.scooterframework.orm.sqldataexpress.exception

Examples of com.scooterframework.orm.sqldataexpress.exception.TransactionException


            super.begin();
           
            ut.begin();
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in begin()", ex);
        }
    }
View Full Code Here


            bTransactionHasEnded = true;
           
            releaseResources();
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in commit()", ex);
        }
    }
View Full Code Here

            ut.rollback();
           
            releaseResources();
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in rollback()", ex);
        }
    }
View Full Code Here

            nameConnMap.clear();
           
            bAllResourcesReleased = true;
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in releaseResources()", ex);
        }
    }
View Full Code Here

    /**
     * Commit a transaction.
     */
    public void commit() {
        if (bTransactionHasCommitted) {
          throw new TransactionException("Transaciton has already been committed.");
        }
        else {
          bTransactionHasCommitted = true;
        }
    }
View Full Code Here

    /**
     * Rollback a transaction.
     */
    public void rollback() {
        if (bTransactionHasRollbacked) {
          throw new TransactionException("Transaciton has already been rollbacked.");
        }
        else {
          bTransactionHasRollbacked = true;
        }
    }
View Full Code Here

    public void begin() {
        try {
            super.begin();
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in begin()", ex);
        }
    }
View Full Code Here

            for (UserDatabaseConnection udc : connList) {
                DAOUtil.commit(udc.getConnection());
            }
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in commit()", ex);
        }
    }
View Full Code Here

            for (UserDatabaseConnection udc : connList) {
                DAOUtil.rollback(udc.getConnection());
            }
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in rollback()", ex);
        }
    }
View Full Code Here

        }
        else if (type.equalsIgnoreCase(Transaction.CMT_TRANSACTION_TYPE)) {
            ts = new CmtTransaction();
        }
        else {
            throw new TransactionException("TransactionFactory:createTransaction() failed. Type: " + type + ".");
        }
       
        return ts;
    }
View Full Code Here

TOP

Related Classes of com.scooterframework.orm.sqldataexpress.exception.TransactionException

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.