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

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


    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.addTableSource(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                accept(Token.LOG);
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here


    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.addTableSource(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                acceptIdentifier("LOG");
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here

    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.addTableSource(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                acceptIdentifier("LOG");
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here

    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.getTableNames().add(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                accept(Token.LOG);
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here

    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.addTableSource(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                acceptIdentifier("LOG");
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here

    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.addTableSource(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                acceptIdentifier("LOG");
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here

    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.addTableSource(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                acceptIdentifier("LOG");
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here

    }

    public OracleTruncateStatement parseTruncate() {
        accept(Token.TRUNCATE);
        accept(Token.TABLE);
        OracleTruncateStatement stmt = new OracleTruncateStatement();

        SQLName name = this.exprParser.name();
        stmt.addTableSource(name);

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

            if (identifierEquals("SNAPSHOT")) {
                lexer.nextToken();
                acceptIdentifier("LOG");
                stmt.setPurgeSnapshotLog(true);
            } else {
                throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
            }
        }
View Full Code Here

TOP

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

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.