2017-05-17 14:01:08 -04:00
|
|
|
package com.moparisthebest.jdbc;
|
|
|
|
|
2017-06-18 21:58:55 -04:00
|
|
|
import com.moparisthebest.jdbc.util.CacheUtil;
|
|
|
|
|
2017-05-17 14:01:08 -04:00
|
|
|
import java.util.Calendar;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global for entire application, hopefully you know what you are doing.
|
|
|
|
*/
|
|
|
|
public class StaticCompilingResultSetMapper extends CompilingResultSetMapper {
|
|
|
|
|
2017-06-18 21:58:55 -04:00
|
|
|
private static final CompilingRowToObjectMapper.Cache cache = new CompilingRowToObjectMapper.Cache(CacheUtil.<CompilingRowToObjectMapper.ResultSetKey, CompilingRowToObjectMapper.ResultSetToObject<?,?>>getCache(true), true);
|
2017-05-17 14:01:08 -04:00
|
|
|
|
|
|
|
public static final StaticCompilingResultSetMapper instance = new StaticCompilingResultSetMapper();
|
|
|
|
|
|
|
|
public StaticCompilingResultSetMapper(final Calendar cal, final int arrayMaxLength) {
|
|
|
|
super(cal, arrayMaxLength, cache);
|
|
|
|
}
|
|
|
|
|
|
|
|
public StaticCompilingResultSetMapper(final int arrayMaxLength) {
|
|
|
|
super(arrayMaxLength, cache);
|
|
|
|
}
|
|
|
|
|
|
|
|
public StaticCompilingResultSetMapper() {
|
|
|
|
super(cache);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|