org.infinispan.loaders.jdbc.stringbased
Class JdbcStringBasedCacheStoreConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.loaders.AbstractCacheLoaderConfig
              extended by org.infinispan.loaders.AbstractCacheStoreConfig
                  extended by org.infinispan.loaders.LockSupportCacheStoreConfig
                      extended by org.infinispan.loaders.jdbc.AbstractJdbcCacheStoreConfig
                          extended by org.infinispan.loaders.jdbc.AbstractNonDelegatingJdbcCacheStoreConfig
                              extended by org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStoreConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable, CacheLoaderConfig, CacheStoreConfig

public class JdbcStringBasedCacheStoreConfig
extends AbstractNonDelegatingJdbcCacheStoreConfig

Configuration for JdbcStringBasedCacheStore cache store.

Author:
Mircea.Markus@jboss.com
See Also:
Key2StringMapper, Serialized Form

Field Summary
 
Fields inherited from class org.infinispan.loaders.jdbc.AbstractNonDelegatingJdbcCacheStoreConfig
DEFAULT_CONCURRENCY_LEVEL, DEFAULT_LOCK_ACQUISITION_TIMEOUT, manageConnectionFactory, tableManipulation
 
Fields inherited from class org.infinispan.loaders.jdbc.AbstractJdbcCacheStoreConfig
connectionFactoryConfig
 
Fields inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Fields inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
cacheLoaderClassName, properties
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
JdbcStringBasedCacheStoreConfig()
           
JdbcStringBasedCacheStoreConfig(boolean manageConnectionFactory)
           
JdbcStringBasedCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig, TableManipulation tableManipulation)
           
 
Method Summary
 JdbcStringBasedCacheStoreConfig clone()
           
 Key2StringMapper getKey2StringMapper()
           
 void setKey2StringMapperClass(String className)
          Name of the class implementing Key2StringMapper.
 void setStringsTableNamePrefix(String stringsTableNamePrefix)
          Sets the prefix for the name of the table where the data will be stored.
 String toString()
           
 
Methods inherited from class org.infinispan.loaders.jdbc.AbstractNonDelegatingJdbcCacheStoreConfig
getBatchSize, getDatabaseType, getFetchSize, getTableManipulation, isManageConnectionFactory, setBatchSize, setCacheName, setCreateTableOnStart, setDatabaseType, setDataColumnName, setDataColumnType, setDropTableOnExit, setFetchSize, setIdColumnName, setIdColumnType, setTableManipulation, setTimestampColumnName, setTimestampColumnType
 
Methods inherited from class org.infinispan.loaders.jdbc.AbstractJdbcCacheStoreConfig
getConnectionFactoryConfig, setConnectionFactoryClass, setConnectionUrl, setDatasourceJndiLocation, setDriverClass, setPassword, setUserName
 
Methods inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel
 
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
accept, asyncStore, equals, equalsExcludingProperties, fetchPersistentState, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, getTypedProperties, hashCode, hashCodeExcludingProperties, ignoreModifications, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, purgeOnStartup, purgerThreads, purgeSynchronously, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, setTypedProperties, singletonStore
 
Methods inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
getCacheLoaderClassName, getClassLoader, getProperties, setCacheLoaderClassName, setProperties, setProperties
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.loaders.CacheLoaderConfig
getCacheLoaderClassName, getClassLoader, setCacheLoaderClassName
 

Constructor Detail

JdbcStringBasedCacheStoreConfig

public JdbcStringBasedCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig,
                                       TableManipulation tableManipulation)

JdbcStringBasedCacheStoreConfig

public JdbcStringBasedCacheStoreConfig()

JdbcStringBasedCacheStoreConfig

public JdbcStringBasedCacheStoreConfig(boolean manageConnectionFactory)
Method Detail

getKey2StringMapper

public Key2StringMapper getKey2StringMapper()

setKey2StringMapperClass

public void setKey2StringMapperClass(String className)
Name of the class implementing Key2StringMapper. The default value is DefaultTwoWayKey2StringMapper

See Also:
Key2StringMapper

setStringsTableNamePrefix

public void setStringsTableNamePrefix(String stringsTableNamePrefix)
Sets the prefix for the name of the table where the data will be stored. "_" will be appended to this prefix in order to enforce unique table names for each cache.


clone

public JdbcStringBasedCacheStoreConfig clone()
Specified by:
clone in interface CloneableConfigurationComponent
Specified by:
clone in interface CacheLoaderConfig
Overrides:
clone in class AbstractNonDelegatingJdbcCacheStoreConfig

toString

public String toString()
Overrides:
toString in class AbstractNonDelegatingJdbcCacheStoreConfig

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.