Package com.alibaba.druid.sql.dialect.oracle.ast.stmt

Examples of com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleCreateViewStatement


        // return parser.parseCrateTable();
        throw new ParserException("TODO");
    }

    public OracleCreateViewStatement parseCreateView() throws ParserException {
        OracleCreateViewStatement createView = new OracleCreateViewStatement();

        accept(Token.CREATE);
        if (lexer.token() == (Token.OR)) {
            lexer.nextToken();

            if (identifierEquals("REPLACE")) lexer.nextToken();
            else {
                throw new ParserException("syntax error");
            }

            createView.setReplace(true);
        }

        if (identifierEquals("NO")) {
            lexer.nextToken();

            if (identifierEquals("FORCE")) lexer.nextToken();
            else {
                throw new ParserException("syntax error");
            }

            createView.setForce(Boolean.FALSE);
        }

        if (identifierEquals("FORCE")) {
            lexer.nextToken();
            createView.setForce(Boolean.TRUE);
        }

        accept(Token.VIEW);

        // createView.setName(new OracleExprParser(this.lexer).name());
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleCreateViewStatement

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.