code: public static <T> T queryForObject(String sql, Class<T> clz, Object... args) {
  		T result = null;
  		List<T> list = queryForList(sql, clz, args);
  		if (list.size() > 0) {
  			result = list.get(0);
  		}
  		return result;
  	}
docs: Query a single record
  
  @param sql
  @param args
  @return <T>