Package com.foundationdb.sql.parser

Examples of com.foundationdb.sql.parser.SetTransactionAccessNode


                }
            }
            break;
        case TRANSACTION_ACCESS:
            {
                SetTransactionAccessNode node = (SetTransactionAccessNode)statement;
                boolean current = node.isCurrent();
                boolean readOnly = (node.getAccessMode() ==
                                    AccessMode.READ_ONLY_ACCESS_MODE);
                if (current)
                    server.setTransactionReadOnly(readOnly);
                else
                    server.setTransactionDefaultReadOnly(readOnly);
            }
            break;
        case SET_CONFIGURATION:
            {
                SetConfigurationNode node = (SetConfigurationNode)statement;
                setVariable (server, node.getVariable(), node.getValue());
            }
            break;
        case SHOW_CONFIGURATION:
            {
                ShowConfigurationNode node = (ShowConfigurationNode)statement;
                showVariable (context, server, node.getVariable());
            }
            break;
        case SET_CONSTRAINTS:
            {
                SetConstraintsNode node = (SetConstraintsNode)statement;
                deferConstraints(server,
                                 node.isAll(), node.getConstraints(), node.isDeferred());
            }
            break;
        default:
            throw new UnsupportedSQLException("session control", statement);
        }
View Full Code Here

TOP

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

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.