public JdbcCompiledQuery(JdbcDataContext dc, Query query) {
super(query);
_query = query;
_sql = dc.getQueryRewriter().rewriteQuery(query);
final Config config = new Config();
config.maxActive = getSystemPropertyValue(JdbcDataContext.SYSTEM_PROPERTY_COMPILED_QUERY_POOL_MAX_SIZE, -1);
config.minEvictableIdleTimeMillis = getSystemPropertyValue(
JdbcDataContext.SYSTEM_PROPERTY_COMPILED_QUERY_POOL_MIN_EVICTABLE_IDLE_TIME_MILLIS, 500);
config.timeBetweenEvictionRunsMillis = getSystemPropertyValue(
JdbcDataContext.SYSTEM_PROPERTY_COMPILED_QUERY_POOL_TIME_BETWEEN_EVICTION_RUNS_MILLIS, 1000);