org.infinispan.loaders.jdbc.binary
Class JdbcBinaryCacheStoreConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.config.PluggableConfigurationComponent
org.infinispan.loaders.AbstractCacheLoaderConfig
org.infinispan.loaders.AbstractCacheStoreConfig
org.infinispan.loaders.LockSupportCacheStoreConfig
org.infinispan.loaders.jdbc.binary.JdbcBinaryCacheStoreConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, CacheLoaderConfig, CacheStoreConfig
public class JdbcBinaryCacheStoreConfig
- extends LockSupportCacheStoreConfig
Defines available configuration elements for JdbcBinaryCacheStore
.
- Author:
- Mircea.Markus@jboss.com
- See Also:
- Serialized Form
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig |
accept, equals, equalsExcludingProperties, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, hashCode, hashCodeExcludingProperties, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, toString |
JdbcBinaryCacheStoreConfig
public JdbcBinaryCacheStoreConfig(boolean createConnectionFatory)
JdbcBinaryCacheStoreConfig
public JdbcBinaryCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig,
TableManipulation tm)
JdbcBinaryCacheStoreConfig
public JdbcBinaryCacheStoreConfig()
setCreateTableOnStart
public void setCreateTableOnStart(boolean createTableOnStart)
- If true, and the table is missing it will be created when starting the cache store. Default to true.
setDropTableOnExit
public void setDropTableOnExit(boolean dropTableOnExit)
- If true, the table will be created when cache store is stopped. Default to false.
setBucketTableNamePrefix
public void setBucketTableNamePrefix(String bucketTableName)
- 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.
setIdColumnName
public void setIdColumnName(String idColumnName)
setIdColumnType
public void setIdColumnType(String idColumnType)
setDataColumnName
public void setDataColumnName(String dataColumnName)
setDataColumnType
public void setDataColumnType(String dataColumnType)
setTimestampColumnName
public void setTimestampColumnName(String timestampColumnName)
setTimestampColumnType
public void setTimestampColumnType(String timestampColumnType)
setConnectionUrl
public void setConnectionUrl(String connectionUrl)
- Url connection to the database.
setUserName
public void setUserName(String userName)
- Database user name.
setPassword
public void setPassword(String password)
- Database username's password.
setDatasourceJndiLocation
public void setDatasourceJndiLocation(String location)
setDriverClass
public void setDriverClass(String driverClass)
- Driver class, will be loaded before initializing the
ConnectionFactory
setConnectionFactoryClass
public void setConnectionFactoryClass(String connectionFactoryClass)
- Name of the connection factory class.
- See Also:
ConnectionFactory
clone
public JdbcBinaryCacheStoreConfig clone()
- Specified by:
clone
in interface CloneableConfigurationComponent
- Specified by:
clone
in interface CacheLoaderConfig
- Overrides:
clone
in class AbstractCacheStoreConfig
getConnectionFactoryConfig
public ConnectionFactoryConfig getConnectionFactoryConfig()
getTableManipulation
public TableManipulation getTableManipulation()
setTableManipulation
public void setTableManipulation(TableManipulation tableManipulation)
setFetchSize
public void setFetchSize(int fetchSize)
- See Also:
TableManipulation.getFetchSize()
setBatchSize
public void setBatchSize(int batchSize)
- See Also:
TableManipulation.getBatchSize()
getFetchSize
public int getFetchSize()
- See Also:
TableManipulation.getFetchSize()
getBatchSize
public int getBatchSize()
- See Also:
TableManipulation.getBatchSize()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.