Object getObject(String sqlKey, Object[] params, RowMapper rowMapper) {
return getObjectFromQuery(_handler.getRequest(sqlKey), params, rowMapper);
}
Object getObjectFromQuery(String sqlRequest, Object[] params, RowMapper rowMapper) {
List l = getJdbcTemplate().query(sqlRequest, params, new RowMapperResultReader(rowMapper, 1));
if (l.size() == 1) {
return l.get(0);
} else {
return null;
}