org.infinispan.loaders.jdbc
Class AbstractNonDelegatingJdbcCacheStoreConfig
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.AbstractJdbcCacheStoreConfig
org.infinispan.loaders.jdbc.AbstractNonDelegatingJdbcCacheStoreConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, CacheLoaderConfig, CacheStoreConfig
- Direct Known Subclasses:
- JdbcBinaryCacheStoreConfig, JdbcStringBasedCacheStoreConfig
public abstract class AbstractNonDelegatingJdbcCacheStoreConfig
- extends AbstractJdbcCacheStoreConfig
An abstract configuration for JDBC cache stores which have support for locking.
- Version:
- 4.1
- Author:
- Manik Surtani
- 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 |
DEFAULT_CONCURRENCY_LEVEL
public static final int DEFAULT_CONCURRENCY_LEVEL
- See Also:
- Constant Field Values
DEFAULT_LOCK_ACQUISITION_TIMEOUT
public static final int DEFAULT_LOCK_ACQUISITION_TIMEOUT
- See Also:
- Constant Field Values
tableManipulation
protected TableManipulation tableManipulation
manageConnectionFactory
protected boolean manageConnectionFactory
AbstractNonDelegatingJdbcCacheStoreConfig
public AbstractNonDelegatingJdbcCacheStoreConfig()
setCacheName
public void setCacheName(String cacheName)
- Sets the name of the table where data will be stored.
setIdColumnName
public void setIdColumnName(String idColumnName)
- Sets the name of the column where the id will be stored. The id is obtained through:
key2StringMapper.getStringMapping(storedEntry.getKey());
Mandatory.
setDataColumnName
public void setDataColumnName(String dataColumnName)
- Sets the name of the column where the StoredEntry will be binary stored. Mandatory.
setTimestampColumnName
public void setTimestampColumnName(String timestampColumnName)
- Sets the name of the column where the timestamp (Long in java) will be stored. Mandatory.
setTimestampColumnType
public void setTimestampColumnType(String timestampColumnType)
- 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.
getTableManipulation
public TableManipulation getTableManipulation()
setIdColumnType
public void setIdColumnType(String idColumnType)
- sql equivalent for java's String. Mandatory.
setDataColumnType
public void setDataColumnType(String dataColumnType)
- Sets the type of the column where data will be binary stored. BLOB-like type, DBMS dependent. Mandatory.
setDropTableOnExit
public void setDropTableOnExit(boolean dropTableOnExit)
setCreateTableOnStart
public void setCreateTableOnStart(boolean createTableOnStart)
isManageConnectionFactory
public boolean isManageConnectionFactory()
- If this method returns false, then the connection factory should not be created by the
JdbcStringBasedCacheStore
, but will be injected through JdbcStringBasedCacheStore.doConnectionFactoryInitialization(org.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory)
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()
getDatabaseType
public String getDatabaseType()
setDatabaseType
public void setDatabaseType(String dbType)
- Sets the database dialect. Valid types are reflected in the DatabaseType enum. If unspecified, will attempt to
"guess" appropriate dialect from the JDBC driver specified.
- Parameters:
dbType
-
clone
public AbstractNonDelegatingJdbcCacheStoreConfig clone()
- Specified by:
clone
in interface CloneableConfigurationComponent
- Specified by:
clone
in interface CacheLoaderConfig
- Overrides:
clone
in class AbstractJdbcCacheStoreConfig
toString
public String toString()
- Overrides:
toString
in class AbstractJdbcCacheStoreConfig
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.