public transient Object queryFirst(String sql, Object paras[])
{
List result = query(sql, paras);
return result.size() <= 0 ? null : result.get(0);
}
public Object queryFirst(String sql)
{
List result = query(sql, DbKit.NULL_PARA_ARRAY);
return result.size() <= 0 ? null : result.get(0);
}
项目:JFinal