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

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


   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns());
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            lexer.nextToken();
            accept(Token.INDEX);
            primaryKey.setUsingIndex(expr());
        }
        return primaryKey;
    }
View Full Code Here


        if (lexer.token() == (Token.PRIMARY)) {
            lexer.nextToken();
            accept(Token.KEY);

            OraclePrimaryKey primaryKey = new OraclePrimaryKey();
            primaryKey.setName(constaintName);

            if (lexer.token() == (Token.LPAREN)) {
                lexer.nextToken();
                this.exprParser.names(primaryKey.getColumns());
                accept(Token.RPAREN);
            }

            primaryKey.setState(parseConstraintState());

            constaints.add(primaryKey);

            return true;
        }
View Full Code Here

        if (lexer.token() == (Token.PRIMARY)) {
            lexer.nextToken();
            accept(Token.KEY);

            OraclePrimaryKey primaryKey = new OraclePrimaryKey();
            primaryKey.setName(constaintName);

            if (lexer.token() == (Token.LPAREN)) {
                lexer.nextToken();
                this.exprParser.names(primaryKey.getColumns());
                accept(Token.RPAREN);
            }

            primaryKey.setState(parseConstraintState());

            constaints.add(primaryKey);

            return true;
        }
View Full Code Here

   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns(), primaryKey);
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            OracleUsingIndexClause using = parseUsingIndex();
            primaryKey.setUsing(using);
        }
        return primaryKey;
    }
View Full Code Here

   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns());
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            lexer.nextToken();
            accept(Token.INDEX);
            primaryKey.setUsingIndex(expr());
        }
        return primaryKey;
    }
View Full Code Here

   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns());
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            lexer.nextToken();
            accept(Token.INDEX);
            primaryKey.setUsingIndex(expr());
        }
        return primaryKey;
    }
View Full Code Here

   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns());
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            OracleUsingIndexClause using = parseUsingIndex();
            primaryKey.setUsing(using);
        }
        return primaryKey;
    }
View Full Code Here

   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns());
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            lexer.nextToken();
            accept(Token.INDEX);
            primaryKey.setUsingIndex(expr());
        }
        return primaryKey;
    }
View Full Code Here

   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns());
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            lexer.nextToken();
            accept(Token.INDEX);
            primaryKey.setUsingIndex(expr());
        }
        return primaryKey;
    }
View Full Code Here

   
    public OraclePrimaryKey parsePrimaryKey() {
        lexer.nextToken();
        accept(Token.KEY);

        OraclePrimaryKey primaryKey = new OraclePrimaryKey();
        accept(Token.LPAREN);
        exprList(primaryKey.getColumns());
        accept(Token.RPAREN);

       
        if (lexer.token() == Token.USING) {
            OracleUsingIndexClause using = parseUsingIndex();
            primaryKey.setUsing(using);
        }
        return primaryKey;
    }
View Full Code Here

TOP

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

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.