Package org.nutz.dao.sql

Examples of org.nutz.dao.sql.VarSet


   * @return 语句模板
   */
  private String[] _createSqlElements() {
    String[] ss = literal.stack.cloneChain();
    VarIndex vIndex = literal.getVarIndexes();
    VarSet vs = vars;
    for (String name : vIndex.names()) {
      int[] is = vIndex.indexesOf(name);
      Object obj = vs.get(name);
      for (int i : is)
        ss[i] = null == obj ? "" : obj.toString();
    }
    return ss;
  }
View Full Code Here


    }

    public Object[][] getParamMatrix() {
        // 仅仅去掉队尾没有参数设定的VarSet,尽可能的不遍历
        if (rows.size() > 0) {
            VarSet vs = rows.get(rows.size() - 1);
            while (null != vs) {
                if (vs.keys().size() == 0) {
                    rows.remove(vs);
                    vs = null;
                    if (rows.size() > 0)
                        vs = rows.get(rows.size() - 1);
                } else {
View Full Code Here

     * @return 语句模板
     */
    private String[] _createSqlElements() {
        String[] ss = literal.stack.cloneChain();
        VarIndex vIndex = literal.getVarIndexes();
        VarSet vs = vars;
        for (String name : vIndex.names()) {
            int[] is = vIndex.indexesOf(name);
            Object obj = vs.get(name);
            for (int i : is)
                ss[i] = null == obj ? "" : obj.toString();
        }
        return ss;
    }
View Full Code Here

TOP

Related Classes of org.nutz.dao.sql.VarSet

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.