CacheJdbcPojoStore<K, V> store = new CacheJdbcPojoStore<>(); store.setBatchSize(batchSize); store.setDialect(dialect); store.setMaximumPoolSize(maxPoolSize); store.setMaximumWriteAttempts(maxWrtAttempts); store.setParallelLoadCacheMinimumThreshold(parallelLoadCacheMinThreshold); store.setTypes(types); store.setHasher(hasher); store.setTransformer(transformer); store.setSqlEscapeAll(sqlEscapeAll); store.setDataSource(dataSrc); else if (dataSrcBean != null) { if (appCtx == null) store.setDataSource(data); store.setDataSource(dataSrcFactory.create());
/** {@inheritDoc} */ @Override protected CacheJdbcPojoStore store() throws Exception { CacheJdbcPojoStore store = new CacheJdbcPojoStore(); store.setDataSource(JdbcConnectionPool.create(DFLT_CONN_URL, "sa", "")); return store; } }
Connection conn = store.openConnection(false); store.setParallelLoadCacheMinimumThreshold(2); store.loadCache(c);
store.setDialect(new H2Dialect() { Connection conn = store.openConnection(false); store.write(new CacheEntryImpl<>(wrap(k1), wrap(v1)));
store.setDataSource(JdbcConnectionPool.create(DFLT_CONN_URL, "sa", ""));
/** {@inheritDoc} */ @Override public CacheJdbcPojoStore<K, V> create() { CacheJdbcPojoStore<K, V> store = new TestJdbcPojoStoreWithHangWriteAll<>(); store.setBatchSize(getBatchSize()); store.setDialect(getDialect()); store.setMaximumPoolSize(getMaximumPoolSize()); store.setMaximumWriteAttempts(getMaximumWriteAttempts()); store.setParallelLoadCacheMinimumThreshold(getParallelLoadCacheMinimumThreshold()); store.setTypes(getTypes()); store.setHasher(getHasher()); store.setTransformer(getTransformer()); store.setSqlEscapeAll(isSqlEscapeAll()); store.setDataSource(getDataSourceFactory().create()); return store; }
CacheJdbcPojoStore<K, V> store = new CacheJdbcPojoStore<>(); store.setBatchSize(batchSize); store.setDialect(dialect); store.setMaximumPoolSize(maxPoolSize); store.setMaximumWriteAttempts(maxWrtAttempts); store.setParallelLoadCacheMinimumThreshold(parallelLoadCacheMinThreshold); store.setTypes(types); store.setHasher(hasher); store.setTransformer(transformer); store.setSqlEscapeAll(sqlEscapeAll); store.setDataSource(dataSrc); else if (dataSrcBean != null) { if (appCtx == null) store.setDataSource(data); store.setDataSource(dataSrcFactory.create());