mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-21 16:45:02 -05:00
Add missing overrided toResultSet methods to List and Null QueryMappers
This commit is contained in:
parent
7524893ed7
commit
d63e719ce0
@ -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);
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user