Package com.alibaba.druid.sql.dialect.db2.visitor

Examples of com.alibaba.druid.sql.dialect.db2.visitor.DB2OutputVisitor


        if (JdbcUtils.H2.equals(dbType)) {
            return new MySqlStatementParser(sql);
        }
       
        if (JdbcUtils.DB2.equals(dbType)) {
            return new DB2StatementParser(sql);
        }

        return new SQLStatementParser(sql);
    }
View Full Code Here


        if (JdbcUtils.SQL_SERVER.equals(dbType) || JdbcUtils.JTDS.equals(dbType)) {
            return new SQLServerEvalVisitor();
        }

        if (JdbcUtils.DB2.equals(dbType)) {
            return new DB2EvalVisitor();
        }

        return new SQLEvalVisitorImpl();
    }
View Full Code Here

        if (JdbcUtils.SQL_SERVER.equals(dbType) || JdbcUtils.JTDS.equals(dbType)) {
            return new SQLServerEvalVisitor();
        }

        if (JdbcUtils.DB2.equals(dbType)) {
            return new DB2EvalVisitor();
        }

        return new SQLEvalVisitorImpl();
    }
View Full Code Here

        if (JdbcUtils.SQL_SERVER.equals(dbType) || JdbcUtils.JTDS.equals(dbType)) {
            return new SQLServerEvalVisitor();
        }

        if (JdbcUtils.DB2.equals(dbType)) {
            return new DB2EvalVisitor();
        }

        return new SQLEvalVisitorImpl();
    }
View Full Code Here

        if (JdbcUtils.SQL_SERVER.equals(dbType) || JdbcUtils.JTDS.equals(dbType)) {
            return new SQLServerEvalVisitor();
        }

        if (JdbcUtils.DB2.equals(dbType)) {
            return new DB2EvalVisitor();
        }

        return new SQLEvalVisitorImpl();
    }
View Full Code Here

        if (JdbcUtils.SQL_SERVER.equals(dbType) || JdbcUtils.JTDS.equals(dbType)) {
            return new SQLServerEvalVisitor();
        }

        if (JdbcUtils.DB2.equals(dbType)) {
            return new DB2EvalVisitor();
        }

        return new SQLEvalVisitorImpl();
    }
View Full Code Here

        return new DB2WallVisitor(this);
    }

    @Override
    public ExportParameterVisitor createExportParameterVisitor() {
        return new DB2ExportParameterVisitor();
    }
View Full Code Here

        return sql;
    }

    public static String toDB2String(SQLObject sqlObject) {
        StringBuilder out = new StringBuilder();
        sqlObject.accept(new DB2OutputVisitor(out));

        String sql = out.toString();
        return sql;
    }
View Full Code Here

        if (JdbcUtils.SQL_SERVER.equals(dbType) || JdbcUtils.JTDS.equals(dbType)) {
            return new SQLServerOutputVisitor(out);
        }

        if (JdbcUtils.DB2.equals(dbType)) {
            return new DB2OutputVisitor(out);
        }

        return new SQLASTOutputVisitor(out);
    }
View Full Code Here

import com.alibaba.druid.sql.dialect.db2.visitor.DB2OutputVisitor;

public class DB2Test extends TestCase {
  protected String output(List<SQLStatement> stmtList) {
    StringBuilder out = new StringBuilder();
    DB2OutputVisitor visitor = new DB2OutputVisitor(out);

    for (SQLStatement stmt : stmtList) {
      stmt.accept(visitor);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.db2.visitor.DB2OutputVisitor

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.