JdbcMapper/beehive-jdbc-mapper/src/main/java/com/moparisthebest/jdbc/StaticCompilingResultSetMap...

29 lines
926 B
Java
Raw Normal View History

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 {
private static final Map<CachingRowToObjectMapper.ResultSetKey, CompilingRowToObjectMapper.ResultSetToObject<?>> cache = new ConcurrentHashMap<CachingRowToObjectMapper.ResultSetKey, CompilingRowToObjectMapper.ResultSetToObject<?>>();
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);
}
}