Package com.founder.fix.fixflow.core.impl.db

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


    List<Object> paramList = new ArrayList<Object>();
    paramList.add(bizkey);
    String bizObjName = StringUtil.getString(ExpressionMgmt.execute("Fix_BizName", executionContext));
    String bizField = StringUtil.getString(ExpressionMgmt.execute("Fix_BizKeyFile", executionContext));
    SqlCommand sqlCommand = new SqlCommand(Context.getDbConnection(dataBaseId));
    List<Map<String, Object>> dataObjList = sqlCommand.queryForList("SELECT " + field + " FROM " + bizObjName + " WHERE " + bizField + "=?", paramList);
    if (dataObjList.size() == 0) {
      return null;
    } else {
      return dataObjList.get(0).get(field);
    }
View Full Code Here


  {
    SqlCommand sqlCommand=new SqlCommand(processEngineConfiguration.createConnection());
    Pagination pagination=processEngineConfiguration.getDbConfig().getPagination();
    String runSqlString="SELECT * FROM AU_USERINFO ORDER BY SSOID";
    String paginationSqlString= pagination.getPaginationSql(runSqlString, 3, 5, "*", null);
    List<Map<String, Object>> dataList=sqlCommand.queryForList(paginationSqlString);
    assertNotNull(dataList);
    return;
   
   
  }
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.