Examples of queryForValue()


Examples of com.founder.fix.fixflow.core.impl.db.SqlCommand.queryForValue()

      if (page != null) {
        Pagination pagination = Context.getProcessEngineConfiguration().getDbConfig().getPagination();
        sql = pagination.getPaginationSql(sql, page.getFirstResult(), page.getMaxResults(), "*",null);
      }
      List<Map<String, Object>> dataObj = sqlCommand.queryForList(sql, null);
      int count = Integer.parseInt(sqlCommand.queryForValue(countSql).toString());
      for(int i = 0;i<dataObj.size();i++){
        if (dataObj.get(0).get(groupIdField) != null) {
          GroupTo groupTo = new GroupTo(StringUtil.getString(dataObj.get(i).get(groupIdField)), StringUtil.getString(dataObj.get(i).get(groupNameField)), getId(), dataObj.get(i));
          resultList.add(groupTo);
        }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.db.SqlCommand.queryForValue()

      whereSql += " AND "+userNameField+" LIKE '%"+queryMap.get("USERNAME")+"%' ";
    }
    sql += whereSql;
    countSql += whereSql;
   
    int count = Integer.parseInt(sqlCommand.queryForValue(countSql).toString());
    if (page != null) {
      Pagination pagination = Context.getProcessEngineConfiguration().getDbConfig().getPagination();
      sql = pagination.getPaginationSql(sql, page.getFirstResult(), page.getMaxResults(), "*",null);
    }
    List<Map<String, Object>> dataObj = sqlCommand.queryForList(sql, null);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.db.SqlCommand.queryForValue()

 
  public static Object getSequenceValue(String sequenceName){
   
   
    SqlCommand sqlCommand=new SqlCommand(Context.getDbConnection());
    Object returnValueObject=sqlCommand.queryForValue("SELECT "+sequenceName+".nextval FROM DUAL");
   
   
    return returnValueObject;
   
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.db.SqlCommand.queryForValue()

  public Object selectOneObject(String sqlText) {
    // TODO Auto-generated method stub

    SqlCommand sqlCommand = new SqlCommand(Context.getDbConnection());
    return sqlCommand.queryForValue(ExpressionMgmt.execute(sqlText, this).toString());

  }

  public String getRollBackAssignee() {
    // TODO Auto-generated method stub
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.