org.infinispan.loaders.jdbc.binary
Class JdbcBinaryCacheStoreConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.PluggableConfigurationComponent
              extended by org.infinispan.loaders.AbstractCacheLoaderConfig
                  extended by org.infinispan.loaders.AbstractCacheStoreConfig
                      extended by org.infinispan.loaders.LockSupportCacheStoreConfig
                          extended by 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

Field Summary
 
Fields inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
DEFAULT_CONCURRENCY_LEVEL, DEFAULT_LOCK_ACQUISITION_TIMEOUT
 
Fields inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Fields inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
cacheLoaderClassName
 
Fields inherited from class org.infinispan.config.PluggableConfigurationComponent
properties
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
JdbcBinaryCacheStoreConfig()
           
JdbcBinaryCacheStoreConfig(boolean createConnectionFatory)
           
JdbcBinaryCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig, TableManipulation tm)
           
 
Method Summary
 JdbcBinaryCacheStoreConfig clone()
           
 int getBatchSize()
           
 ConnectionFactoryConfig getConnectionFactoryConfig()
           
 int getFetchSize()
           
 TableManipulation getTableManipulation()
           
 void setBatchSize(int batchSize)
           
 void setBucketTableNamePrefix(String bucketTableName)
          Sets the prefix for the name of the table where the data will be stored.
 void setConnectionFactoryClass(String connectionFactoryClass)
          Name of the connection factory class.
 void setConnectionUrl(String connectionUrl)
          Url connection to the database.
 void setCreateTableOnStart(boolean createTableOnStart)
          If true, and the table is missing it will be created when starting the cache store.
 void setDataColumnName(String dataColumnName)
           
 void setDataColumnType(String dataColumnType)
           
 void setDatasourceJndiLocation(String location)
           
 void setDriverClass(String driverClass)
          Driver class, will be loaded before initializing the ConnectionFactory
 void setDropTableOnExit(boolean dropTableOnExit)
          If true, the table will be created when cache store is stopped.
 void setFetchSize(int fetchSize)
           
 void setIdColumnName(String idColumnName)
           
 void setIdColumnType(String idColumnType)
           
 void setPassword(String password)
          Database username's password.
 void setTableManipulation(TableManipulation tableManipulation)
           
 void setTimestampColumnName(String timestampColumnName)
           
 void setTimestampColumnType(String timestampColumnType)
           
 void setUserName(String userName)
          Database user name.
 
Methods inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel
 
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
 
Methods inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
getCacheLoaderClassName, setCacheLoaderClassName
 
Methods inherited from class org.infinispan.config.PluggableConfigurationComponent
getProperties, setProperties, setProperties
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.loaders.CacheLoaderConfig
getCacheLoaderClassName, setCacheLoaderClassName
 

Constructor Detail

JdbcBinaryCacheStoreConfig

public JdbcBinaryCacheStoreConfig(boolean createConnectionFatory)

JdbcBinaryCacheStoreConfig

public JdbcBinaryCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig,
                                  TableManipulation tm)

JdbcBinaryCacheStoreConfig

public JdbcBinaryCacheStoreConfig()
Method Detail

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()

Google Analytics

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