Package org.nutz.dao.sql

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


    _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

    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

        _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

                    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

    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

                        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

    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

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

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.