mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-22 09:02:17 -05:00
Change default arrayMaxLength to unlimited when using ResultSetMapper/QueryMapper directly
This commit is contained in:
parent
bf48b9a40e
commit
01a6f53d59
@ -12,6 +12,10 @@ import java.util.*;
|
|||||||
* Refer to org.apache.beehive.controls.system.jdbc.ResultSetMapper for how this class operates
|
* Refer to org.apache.beehive.controls.system.jdbc.ResultSetMapper for how this class operates
|
||||||
*/
|
*/
|
||||||
public class NewDefaultObjectResultSetMapper extends com.moparisthebest.jdbc.CaseInsensitiveMapResultSetMapper implements org.apache.beehive.controls.system.jdbc.ResultSetMapper {
|
public class NewDefaultObjectResultSetMapper extends com.moparisthebest.jdbc.CaseInsensitiveMapResultSetMapper implements org.apache.beehive.controls.system.jdbc.ResultSetMapper {
|
||||||
|
public NewDefaultObjectResultSetMapper() {
|
||||||
|
super(1024);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map the ResultSet to the method's return type. The object type returned is defined by the return type of the method.
|
* Map the ResultSet to the method's return type. The object type returned is defined by the return type of the method.
|
||||||
*
|
*
|
||||||
|
@ -7,6 +7,13 @@ import java.util.Calendar;
|
|||||||
* Created by mopar on 5/15/14.
|
* Created by mopar on 5/15/14.
|
||||||
*/
|
*/
|
||||||
public class CaseInsensitiveMapResultSetMapper extends ResultSetMapper {
|
public class CaseInsensitiveMapResultSetMapper extends ResultSetMapper {
|
||||||
|
public CaseInsensitiveMapResultSetMapper() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public CaseInsensitiveMapResultSetMapper(int arrayMaxLength) {
|
||||||
|
super(arrayMaxLength);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected <T> RowToObjectMapper<T> getRowMapper(ResultSet resultSet, Class<T> returnTypeClass, Calendar cal, Class<?> mapValType) {
|
protected <T> RowToObjectMapper<T> getRowMapper(ResultSet resultSet, Class<T> returnTypeClass, Calendar cal, Class<?> mapValType) {
|
||||||
return new CaseInsensitiveMapRowToObjectMapper<T>(resultSet, returnTypeClass, cal, mapValType);
|
return new CaseInsensitiveMapRowToObjectMapper<T>(resultSet, returnTypeClass, cal, mapValType);
|
||||||
|
@ -109,7 +109,7 @@ public class ResultSetMapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ResultSetMapper() {
|
public ResultSetMapper() {
|
||||||
this(1024);
|
this(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResultSetMapper(int arrayMaxLength) {
|
public ResultSetMapper(int arrayMaxLength) {
|
||||||
|
Loading…
Reference in New Issue
Block a user