Add missing overrided toResultSet methods to List and Null QueryMappers

This commit is contained in:
Travis Burtrum 2018-09-25 20:42:53 -04:00
parent 7524893ed7
commit d63e719ce0
2 changed files with 17 additions and 2 deletions

View File

@ -292,7 +292,12 @@ public class ListQueryMapper extends QueryMapper {
return delegate.toResultSet(prepareSql(sql, bindObjects), bindObjects);
}
@Override
@Override
public ResultSet toResultSet(String sql, int rsType, int rsConcurrency, Object... bindObjects) throws SQLException {
return delegate.toResultSet(prepareSql(sql, bindObjects), rsType, rsConcurrency, bindObjects);
}
@Override
public Long insertGetGeneratedKey(String sql, Object... bindObjects) throws SQLException {
return delegate.insertGetGeneratedKey(prepareSql(sql, bindObjects), bindObjects);
}

View File

@ -268,7 +268,17 @@ public class NullQueryMapper extends QueryMapper {
return null;
}
// these are standard getters
@Override
public ResultSet toResultSet(String sql, int rsType, int rsConcurrency, Object... bindObjects) throws SQLException {
try {
return delegate.toResultSet(sql, rsType, rsConcurrency, bindObjects);
} catch (Throwable e) {
if (verbose) e.printStackTrace();
}
return null;
}
// these are standard getters
@Override
public ResultSetMapper getCustomResultSetMapper() {