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.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
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 setBucketTableName(String bucketTableName)
           
 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 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)
          Databse user name.
 
Methods inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel
 
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
equals, equalsExcludingProperties, getAsyncStoreConfig, getCacheLoaderClassName, getSingletonStoreConfig, hashCode, hashCodeExcludingProperties, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, setAsyncStoreConfig, setCacheLoaderClassName, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgeSynchronously, setSingletonStoreConfig, toString
 
Methods inherited from class org.infinispan.config.PluggableConfigurationComponent
getProperties, setProperties, setProperties
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted
 
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
 

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.


setBucketTableName

public void setBucketTableName(String bucketTableName)

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)
Databse user name.


setPassword

public void setPassword(String password)
Database username's password.


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 © 2009 JBoss, a division of Red Hat. All Rights Reserved.