Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.NoTransactionInProgressException


    }

    @Override
    public void commitTransaction() {
        if (transaction == null) {
            warnClient(new NoTransactionInProgressException());
            return;
        }
        try {
            transaction.commit();
        }
View Full Code Here


    }

    @Override
    public void rollbackTransaction() {
        if (transaction == null) {
            warnClient(new NoTransactionInProgressException());
            return;
        }
        try {
            transaction.rollback();
        }
View Full Code Here

    }

    @Override
    public void setTransactionReadOnly(boolean readOnly) {
        if (transaction == null)
            throw new NoTransactionInProgressException();
        transaction.setReadOnly(readOnly);
    }
View Full Code Here

        }
        else {
            switch (transactionMode) {
            case REQUIRED:
            case REQUIRED_WRITE:
                throw new NoTransactionInProgressException();
            case READ:
            case NEW:
            case IMPLICIT_COMMIT_AND_NEW:
                transaction = new ServerTransaction(this, true, ServerTransaction.PeriodicallyCommit.OFF);
                localTransaction = true;
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.NoTransactionInProgressException

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.