Change default arrayMaxLength to unlimited when using ResultSetMapper/QueryMapper directly

This commit is contained in:
moparisthebest 2014-08-28 13:06:29 -04:00
parent bf48b9a40e
commit 01a6f53d59
3 changed files with 12 additions and 1 deletions

View File

@ -12,6 +12,10 @@ import java.util.*;
* 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 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.
*

View File

@ -7,6 +7,13 @@ import java.util.Calendar;
* Created by mopar on 5/15/14.
*/
public class CaseInsensitiveMapResultSetMapper extends ResultSetMapper {
public CaseInsensitiveMapResultSetMapper() {
}
public CaseInsensitiveMapResultSetMapper(int arrayMaxLength) {
super(arrayMaxLength);
}
@Override
protected <T> RowToObjectMapper<T> getRowMapper(ResultSet resultSet, Class<T> returnTypeClass, Calendar cal, Class<?> mapValType) {
return new CaseInsensitiveMapRowToObjectMapper<T>(resultSet, returnTypeClass, cal, mapValType);

View File

@ -109,7 +109,7 @@ public class ResultSetMapper {
}
public ResultSetMapper() {
this(1024);
this(-1);
}
public ResultSetMapper(int arrayMaxLength) {