Package com.foundationdb.sql.parser

Examples of com.foundationdb.sql.parser.IsolationLevel


            server.rollbackTransaction();
            break;
        case TRANSACTION_ISOLATION:
            {
                SetTransactionIsolationNode node = (SetTransactionIsolationNode)statement;
                IsolationLevel level = node.getIsolationLevel();
                switch (level) {
                case UNSPECIFIED_ISOLATION_LEVEL:
                case SERIALIZABLE_ISOLATION_LEVEL:
                    break;
                default:
                    if (server.getAttribute(ISOLATION_LEVEL_WARNED) == null) {
                        context.warnClient(new IsolationLevelIgnoredException(level.getSyntax(), IsolationLevel.SERIALIZABLE_ISOLATION_LEVEL.getSyntax()));
                        server.setAttribute(ISOLATION_LEVEL_WARNED, Boolean.TRUE);
                    }
                    break;
                }
            }
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.parser.IsolationLevel

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.