Examples of fastGetValue()


Examples of com.lingbobu.flashdb.common.QueryResultSet.fastGetValue()

    if (qrs.getRowCount() > 1)
      throw new RuntimeException("Result of queryForObject(...) must be only one row.");
    if (qrs.getRowCount() == 0)
      return null;
    else
      return qrs.fastGetValue(0, 0);
  }
 
  public Set<Object> queryForSet(String sql) {
    QueryResultSet qrs = flashDatabase.executeQuery(sql, new Object[0]);
    if (qrs.getColumnCount() != 1)
View Full Code Here

Examples of com.lingbobu.flashdb.common.QueryResultSet.fastGetValue()

    QueryResultSet qrs = flashDatabase.executeQuery(sql, new Object[0]);
    if (qrs.getColumnCount() != 1)
      throw new RuntimeException("Result of queryForSet(...) must be only one column.");
    Set<Object> result = new HashSet<Object>();
    for (int i=0; i < qrs.getRowCount(); i++) {
      Object value = qrs.fastGetValue(i, 0);
      if (value == null) continue;
      result.add(value);
    }
    return result;
  }
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.