2017-05-17 14:01:08 -04:00
|
|
|
package com.moparisthebest.jdbc;
|
|
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global for entire application, hopefully you know what you are doing.
|
|
|
|
*/
|
|
|
|
public class StaticCompilingResultSetMapper extends CompilingResultSetMapper {
|
|
|
|
|
2017-06-07 20:30:58 -04:00
|
|
|
private static final Map<CompilingRowToObjectMapper.ResultSetKey, CompilingRowToObjectMapper.ResultSetToObject<?,?>> cache = new ConcurrentHashMap<CompilingRowToObjectMapper.ResultSetKey, CompilingRowToObjectMapper.ResultSetToObject<?,?>>();
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|