throws DataAccessException {
Map<String, Object[]> argsMap = new HashMap<String, Object[]>();
for (String key : args.keySet()) {
argsMap.put(key, new Object[]{args.get(key)});
}
SqlSelGenerator sqlGenerator = new SqlSelGenerator(pojoType, null, argsMap);
String sql;
Object[] objArgs;
try {
sql = sqlGenerator.getSql();
objArgs = sqlGenerator.getArgs();
} catch (IllegalAccessException e) {
logger.error("init query sql error!", e);
throw new DataAccessException("init query sql error!", e);
}
return (T) query(sql, objArgs, new PojoResultSetExtractor<T>(pojoType));