Package com.alibaba.druid.hdriver.impl.execute

Examples of com.alibaba.druid.hdriver.impl.execute.InsertExecutePlan


            SQLEvalVisitor evalVisitor = SQLEvalVisitorUtils.createEvalVisitor(dbType);
            insertStmt.accept(evalVisitor);

            String tableName = ((SQLIdentifierExpr) insertStmt.getTableSource().getExpr()).getName();

            InsertExecutePlan insertExecutePlan = new InsertExecutePlan();
            insertExecutePlan.setTableName(tableName);

            for (int i = 0; i < insertStmt.getColumns().size(); ++i) {
                SQLExpr columnExpr = insertStmt.getColumns().get(i);
                SQLExpr valueExpr = insertStmt.getValues().getValues().get(i);

                String columnName = ((SQLIdentifierExpr) columnExpr).getName();
                insertExecutePlan.getColumns().put(columnName, valueExpr);
            }

            this.executePlan = insertExecutePlan;
        } else if (sqlStmt instanceof HBQLShowStatement) {
            ShowTablesPlan showTablePlan = new ShowTablesPlan();
View Full Code Here

TOP

Related Classes of com.alibaba.druid.hdriver.impl.execute.InsertExecutePlan

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.