Examples of DaoStatement


Examples of org.nutz.dao.sql.DaoStatement

  public int func(Class<?> classOfT, String funcName, String colName, Condition cnd) {
    Entity<?> en = holder.getEntity(classOfT);
    if (null != en.getField(colName))
      colName = en.getField(colName).getColumnName();
    DaoStatement pojo = pojoMaker.makeFunc(en.getViewName(), funcName, colName)
                    .append(Pojos.Items.cnd(cnd))
                    .setAfter(_pojo_fetchInt)
                    .setEntity(en);
    _exec(pojo);
    return pojo.getInt();
  }
View Full Code Here

Examples of org.nutz.dao.sql.DaoStatement

    _exec(pojo);
    return pojo.getInt();
  }

  public int func(String tableName, String funcName, String colName, Condition cnd) {
    DaoStatement pojo = pojoMaker.makeFunc(tableName, funcName, colName)
                    .append(Pojos.Items.cnd(cnd))
                    .setAfter(_pojo_fetchInt);
    _exec(pojo);
    return pojo.getInt();
  }
View Full Code Here

Examples of org.nutz.dao.sql.DaoStatement

    public int func(Class<?> classOfT, String funcName, String colName, Condition cnd) {
        Entity<?> en = holder.getEntity(classOfT);
        if (null != en.getField(colName))
            colName = en.getField(colName).getColumnName();
        DaoStatement pojo = pojoMaker.makeFunc(en.getViewName(), funcName, colName)
                                        .append(Pojos.Items.cnd(cnd))
                                        .setAfter(_pojo_fetchInt)
                                        .setEntity(en);
        _exec(pojo);
        return pojo.getInt();
    }
View Full Code Here

Examples of org.nutz.dao.sql.DaoStatement

        _exec(pojo);
        return pojo.getInt();
    }

    public int func(String tableName, String funcName, String colName, Condition cnd) {
        DaoStatement pojo = pojoMaker.makeFunc(tableName, funcName, colName)
                                        .append(Pojos.Items.cnd(cnd))
                                        .setAfter(_pojo_fetchInt);
        _exec(pojo);
        return pojo.getInt();
    }
View Full Code Here

Examples of org.nutz.dao.sql.DaoStatement

                    String colName,
                    Condition cnd) {
        Entity<?> en = holder.getEntity(classOfT);
        if (null != en.getField(colName))
            colName = en.getField(colName).getColumnName();
        DaoStatement pojo = pojoMaker.makeFunc(en.getViewName(),
                                               funcName,
                                               colName)
                                     .append(Pojos.Items.cnd(cnd))
                                     .setAfter(_pojo_fetchInt)
                                     .setEntity(en);
        _exec(pojo);
        return pojo.getInt();
    }
View Full Code Here

Examples of org.nutz.dao.sql.DaoStatement

    public int func(String tableName,
                    String funcName,
                    String colName,
                    Condition cnd) {
        DaoStatement pojo = pojoMaker.makeFunc(tableName, funcName, colName)
                                     .append(Pojos.Items.cnd(cnd))
                                     .setAfter(_pojo_fetchInt);
        _exec(pojo);
        return pojo.getInt();
    }
View Full Code Here

Examples of org.nutz.dao.sql.DaoStatement

                        String colName,
                        Condition cnd) {
        Entity<?> en = holder.getEntity(classOfT);
        if (null != en.getField(colName))
            colName = en.getField(colName).getColumnName();
        DaoStatement pojo = pojoMaker.makeFunc(en.getViewName(),
                                               func2Name,
                                               colName)
                                     .append(Pojos.Items.cnd(cnd))
                                     .setAfter(_pojo_fetchObject)
                                     .setEntity(en);
        _exec(pojo);
        return pojo.getResult();
    }
View Full Code Here

Examples of org.nutz.dao.sql.DaoStatement

    public Object func2(String tableName,
                        String func2Name,
                        String colName,
                        Condition cnd) {
        DaoStatement pojo = pojoMaker.makeFunc(tableName, func2Name, colName)
                                     .append(Pojos.Items.cnd(cnd))
                                     .setAfter(_pojo_fetchObject);
        _exec(pojo);
        return pojo.getResult();
    }
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.