Examples of IbatisSqlMapConfigParser


Examples of cn.org.rapid_framework.generator.ext.tableconfig.IbatisSqlMapConfigParser

            return processOperation(operation, table);
        }
       
        private Sql processOperation(OperationConfig op,TableConfig table) {
          try {
                IbatisSqlMapConfigParser ibatisSqlMapConfigParser = new IbatisSqlMapConfigParser();
        String sqlString = ibatisSqlMapConfigParser.parse(op.getSql(),toMap(table.includeSqls));
                String namedSql = SqlParseHelper.convert2NamedParametersSql(sqlString,":",""); // TODO 确认要删除本行?,因为与SqlFactory里面的代码重复
               
                Sql sql = new SqlFactory().parseSql(namedSql);
                sql.setSqlSegments(ibatisSqlMapConfigParser.getSqlSegments());
               
                LinkedHashSet<SqlParameter> finalParameters = addExtraParams2SqlParams(op.getExtraparams(), sql);
                sql.setParams(finalParameters);
                sql.setColumns(processWithCustomColumns(getCustomColumns(table),sql.getColumns()));
               
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.