Ejemplo n.º 1
0
 private void enableTestJdbcStorage(Configuration configuration) {
   TableManipulation tm = UnitTestDatabaseManager.buildDefaultTableManipulation();
   JdbcStringBasedCacheStoreConfig jdbcStoreConfiguration =
       new JdbcStringBasedCacheStoreConfig(connectionFactoryConfig, tm);
   jdbcStoreConfiguration.setKey2StringMapperClass(LuceneKey2StringMapper.class.getName());
   CacheLoaderManagerConfig loaderManagerConfig = configuration.getCacheLoaderManagerConfig();
   loaderManagerConfig.setPreload(false);
   loaderManagerConfig.addCacheLoaderConfig(jdbcStoreConfiguration);
 }
 @Override
 public JdbcStringBasedCacheStoreConfig clone() {
   JdbcStringBasedCacheStoreConfig result = (JdbcStringBasedCacheStoreConfig) super.clone();
   result.key2StringMapper = key2StringMapper;
   return result;
 }