Ejemplo n.º 1
0
 /**
  * @see #findFirst(String, Object...)
  * @param sql an SQL statement
  */
 public static Record findFirst(String sql) {
   return dbPro.findFirst(sql);
 }
Ejemplo n.º 2
0
 /**
  * Find first record. I recommend add "limit 1" in your sql.
  *
  * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders
  * @param paras the parameters of sql
  * @return the Record object
  */
 public static Record findFirst(String sql, Object... paras) {
   return dbPro.findFirst(sql, paras);
 }