2014-05-15 15:56:06 -04:00
|
|
|
package com.moparisthebest.jdbc;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by mopar on 5/15/14.
|
|
|
|
*/
|
|
|
|
public class CaseInsensitiveMapResultSetMapper extends ResultSetMapper {
|
2014-08-28 13:06:29 -04:00
|
|
|
public CaseInsensitiveMapResultSetMapper() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public CaseInsensitiveMapResultSetMapper(int arrayMaxLength) {
|
|
|
|
super(arrayMaxLength);
|
|
|
|
}
|
|
|
|
|
2014-05-15 15:56:06 -04:00
|
|
|
@Override
|
2017-05-18 14:26:23 -04:00
|
|
|
public <K, T> RowMapper<K, T> getRowMapper(ResultSet resultSet, Class<T> returnTypeClass, Calendar cal, Class<?> mapValType, Class<K> mapKeyType) {
|
|
|
|
return new RowToObjectMapper<K, T>(resultSet, returnTypeClass, cal, mapValType, mapKeyType, true);
|
2014-05-15 15:56:06 -04:00
|
|
|
}
|
|
|
|
}
|