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

Examples of com.alibaba.druid.sql.dialect.oracle.ast.clause.OracleLobStorageClause


    }
   
    public OracleLobStorageClause parseLobStorage() {
        lexer.nextToken();
       
        OracleLobStorageClause clause = new OracleLobStorageClause();
       
        accept(Token.LPAREN);
        this.names(clause.getItems());
        accept(Token.RPAREN);
       
        accept(Token.STORE);
        accept(Token.AS);
       
        for (;;) {
            if (identifierEquals("SECUREFILE")) {
                lexer.nextToken();
                clause.setSecureFile(true);
                continue;
            }
           
            if (identifierEquals("BASICFILE")) {
                lexer.nextToken();
                clause.setBasicFile(true);
                continue;
            }
           
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
               
                for (;;) {
                    if (lexer.token() == Token.TABLESPACE) {
                        lexer.nextToken();
                        clause.setTableSpace(this.name());
                        continue;
                    }
                   
                    if (lexer.token() == Token.ENABLE) {
                        lexer.nextToken();
                        accept(Token.STORAGE);
                        accept(Token.IN);
                        accept(Token.ROW);
                        clause.setEnable(true);
                        continue;
                    }
                   
                    if (lexer.token() == Token.CHUNK) {
                        lexer.nextToken();
                        clause.setChunk(this.primary());
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCACHE) {
                        lexer.nextToken();
                        clause.setCache(false);
                        if (lexer.token() == Token.LOGGING) {
                            lexer.nextToken();
                            clause.setLogging(true);
                        }
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCOMPRESS) {
                        lexer.nextToken();
                        clause.setCompress(false);
                        continue;
                    }
                   
                    if (lexer.token() == Token.KEEP_DUPLICATES) {
                        lexer.nextToken();
                        clause.setKeepDuplicate(true);
                        continue;
                    }
                   
                    break;
                }
View Full Code Here


    }
   
    public OracleLobStorageClause parseLobStorage() {
        lexer.nextToken();
       
        OracleLobStorageClause clause = new OracleLobStorageClause();
       
        accept(Token.LPAREN);
        this.names(clause.getItems());
        accept(Token.RPAREN);
       
        accept(Token.STORE);
        accept(Token.AS);
       
        for (;;) {
            if (identifierEquals("SECUREFILE")) {
                lexer.nextToken();
                clause.setSecureFile(true);
                continue;
            }
           
            if (identifierEquals("BASICFILE")) {
                lexer.nextToken();
                clause.setBasicFile(true);
                continue;
            }
           
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
               
                for (;;) {
                    if (lexer.token() == Token.TABLESPACE) {
                        lexer.nextToken();
                        clause.setTableSpace(this.name());
                        continue;
                    }
                   
                    if (lexer.token() == Token.ENABLE) {
                        lexer.nextToken();
                        accept(Token.STORAGE);
                        accept(Token.IN);
                        accept(Token.ROW);
                        clause.setEnable(true);
                        continue;
                    }
                   
                    if (lexer.token() == Token.CHUNK) {
                        lexer.nextToken();
                        clause.setChunk(this.primary());
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCACHE) {
                        lexer.nextToken();
                        clause.setCache(false);
                        if (lexer.token() == Token.LOGGING) {
                            lexer.nextToken();
                            clause.setLogging(true);
                        }
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCOMPRESS) {
                        lexer.nextToken();
                        clause.setCompress(false);
                        continue;
                    }
                   
                    if (lexer.token() == Token.KEEP_DUPLICATES) {
                        lexer.nextToken();
                        clause.setKeepDuplicate(true);
                        continue;
                    }
                   
                    break;
                }
View Full Code Here

            } else if (lexer.token() == Token.STORAGE) {
                OracleStorageClause storage = ((OracleExprParser) this.exprParser).parseStorage();
                stmt.setStorage(storage);
                continue;
            } else if (lexer.token() == Token.LOB) {
                OracleLobStorageClause lobStorage = ((OracleExprParser) this.exprParser).parseLobStorage();
                stmt.setLobStorage(lobStorage);
                continue;
            } else if (lexer.token() == Token.INITRANS) {
                lexer.nextToken();
                stmt.setInitrans(this.exprParser.expr());
View Full Code Here

    }
   
    public OracleLobStorageClause parseLobStorage() {
        lexer.nextToken();
       
        OracleLobStorageClause clause = new OracleLobStorageClause();
       
        accept(Token.LPAREN);
        this.names(clause.getItems());
        accept(Token.RPAREN);
       
        accept(Token.STORE);
        accept(Token.AS);
       
        for (;;) {
            if (identifierEquals("SECUREFILE")) {
                lexer.nextToken();
                clause.setSecureFile(true);
                continue;
            }
           
            if (identifierEquals("BASICFILE")) {
                lexer.nextToken();
                clause.setBasicFile(true);
                continue;
            }
           
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
               
                for (;;) {
                    if (lexer.token() == Token.TABLESPACE) {
                        lexer.nextToken();
                        clause.setTableSpace(this.name());
                        continue;
                    }
                   
                    if (lexer.token() == Token.ENABLE) {
                        lexer.nextToken();
                        accept(Token.STORAGE);
                        accept(Token.IN);
                        accept(Token.ROW);
                        clause.setEnable(true);
                        continue;
                    }
                   
                    if (lexer.token() == Token.CHUNK) {
                        lexer.nextToken();
                        clause.setChunk(this.primary());
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCACHE) {
                        lexer.nextToken();
                        clause.setCache(false);
                        if (lexer.token() == Token.LOGGING) {
                            lexer.nextToken();
                            clause.setLogging(true);
                        }
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCOMPRESS) {
                        lexer.nextToken();
                        clause.setCompress(false);
                        continue;
                    }
                   
                    if (lexer.token() == Token.KEEP_DUPLICATES) {
                        lexer.nextToken();
                        clause.setKeepDuplicate(true);
                        continue;
                    }
                   
                    break;
                }
View Full Code Here

    }
   
    public OracleLobStorageClause parseLobStorage() {
        lexer.nextToken();
       
        OracleLobStorageClause clause = new OracleLobStorageClause();
       
        accept(Token.LPAREN);
        this.names(clause.getItems());
        accept(Token.RPAREN);
       
        accept(Token.STORE);
        accept(Token.AS);
       
        for (;;) {
            if (identifierEquals("SECUREFILE")) {
                lexer.nextToken();
                clause.setSecureFile(true);
                continue;
            }
           
            if (identifierEquals("BASICFILE")) {
                lexer.nextToken();
                clause.setBasicFile(true);
                continue;
            }
           
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
               
                for (;;) {
                    if (lexer.token() == Token.TABLESPACE) {
                        lexer.nextToken();
                        clause.setTableSpace(this.name());
                        continue;
                    }
                   
                    if (lexer.token() == Token.ENABLE) {
                        lexer.nextToken();
                        accept(Token.STORAGE);
                        accept(Token.IN);
                        accept(Token.ROW);
                        clause.setEnable(true);
                        continue;
                    }
                   
                    if (lexer.token() == Token.CHUNK) {
                        lexer.nextToken();
                        clause.setChunk(this.primary());
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCACHE) {
                        lexer.nextToken();
                        clause.setCache(false);
                        if (lexer.token() == Token.LOGGING) {
                            lexer.nextToken();
                            clause.setLogging(true);
                        }
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCOMPRESS) {
                        lexer.nextToken();
                        clause.setCompress(false);
                        continue;
                    }
                   
                    if (lexer.token() == Token.KEEP_DUPLICATES) {
                        lexer.nextToken();
                        clause.setKeepDuplicate(true);
                        continue;
                    }
                   
                    break;
                }
View Full Code Here

    }
   
    public OracleLobStorageClause parseLobStorage() {
        lexer.nextToken();
       
        OracleLobStorageClause clause = new OracleLobStorageClause();
       
        accept(Token.LPAREN);
        this.names(clause.getItems());
        accept(Token.RPAREN);
       
        accept(Token.STORE);
        accept(Token.AS);
       
        for (;;) {
            if (identifierEquals("SECUREFILE")) {
                lexer.nextToken();
                clause.setSecureFile(true);
                continue;
            }
           
            if (identifierEquals("BASICFILE")) {
                lexer.nextToken();
                clause.setBasicFile(true);
                continue;
            }
           
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
               
                for (;;) {
                    if (lexer.token() == Token.TABLESPACE) {
                        lexer.nextToken();
                        clause.setTableSpace(this.name());
                        continue;
                    }
                   
                    if (lexer.token() == Token.ENABLE) {
                        lexer.nextToken();
                        accept(Token.STORAGE);
                        accept(Token.IN);
                        accept(Token.ROW);
                        clause.setEnable(true);
                        continue;
                    }
                   
                    if (lexer.token() == Token.CHUNK) {
                        lexer.nextToken();
                        clause.setChunk(this.primary());
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCACHE) {
                        lexer.nextToken();
                        clause.setCache(false);
                        if (lexer.token() == Token.LOGGING) {
                            lexer.nextToken();
                            clause.setLogging(true);
                        }
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCOMPRESS) {
                        lexer.nextToken();
                        clause.setCompress(false);
                        continue;
                    }
                   
                    if (lexer.token() == Token.KEEP_DUPLICATES) {
                        lexer.nextToken();
                        clause.setKeepDuplicate(true);
                        continue;
                    }
                   
                    break;
                }
View Full Code Here

    }
   
    public OracleLobStorageClause parseLobStorage() {
        lexer.nextToken();
       
        OracleLobStorageClause clause = new OracleLobStorageClause();
       
        accept(Token.LPAREN);
        this.names(clause.getItems());
        accept(Token.RPAREN);
       
        accept(Token.STORE);
        accept(Token.AS);
       
        for (;;) {
            if (identifierEquals("SECUREFILE")) {
                lexer.nextToken();
                clause.setSecureFile(true);
                continue;
            }
           
            if (identifierEquals("BASICFILE")) {
                lexer.nextToken();
                clause.setBasicFile(true);
                continue;
            }
           
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
               
                for (;;) {
                    if (lexer.token() == Token.TABLESPACE) {
                        lexer.nextToken();
                        clause.setTableSpace(this.name());
                        continue;
                    }
                   
                    if (lexer.token() == Token.ENABLE) {
                        lexer.nextToken();
                        accept(Token.STORAGE);
                        accept(Token.IN);
                        accept(Token.ROW);
                        clause.setEnable(true);
                        continue;
                    }
                   
                    if (lexer.token() == Token.CHUNK) {
                        lexer.nextToken();
                        clause.setChunk(this.primary());
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCACHE) {
                        lexer.nextToken();
                        clause.setCache(false);
                        if (lexer.token() == Token.LOGGING) {
                            lexer.nextToken();
                            clause.setLogging(true);
                        }
                        continue;
                    }
                   
                    if (lexer.token() == Token.NOCOMPRESS) {
                        lexer.nextToken();
                        clause.setCompress(false);
                        continue;
                    }
                   
                    if (lexer.token() == Token.KEEP_DUPLICATES) {
                        lexer.nextToken();
                        clause.setKeepDuplicate(true);
                        continue;
                    }
                   
                    break;
                }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.oracle.ast.clause.OracleLobStorageClause

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.