|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.loaders.AbstractCacheLoaderConfig
org.infinispan.loaders.AbstractCacheStoreConfig
org.infinispan.loaders.LockSupportCacheStoreConfig
org.infinispan.loaders.jdbc.AbstractJdbcCacheStoreConfig
org.infinispan.loaders.jdbc.AbstractNonDelegatingJdbcCacheStoreConfig
public abstract class AbstractNonDelegatingJdbcCacheStoreConfig
An abstract configuration for JDBC cache stores which have support for locking.
Field Summary | |
---|---|
static int |
DEFAULT_CONCURRENCY_LEVEL
|
static int |
DEFAULT_LOCK_ACQUISITION_TIMEOUT
|
protected boolean |
manageConnectionFactory
|
protected TableManipulation |
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 | |
---|---|
protected |
AbstractNonDelegatingJdbcCacheStoreConfig()
|
protected |
AbstractNonDelegatingJdbcCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig,
TableManipulation tableManipulation)
|
Method Summary | |
---|---|
AbstractNonDelegatingJdbcCacheStoreConfig |
clone()
|
int |
getBatchSize()
|
String |
getDatabaseType()
|
int |
getFetchSize()
|
TableManipulation |
getTableManipulation()
|
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) |
void |
setBatchSize(int batchSize)
|
void |
setCacheName(String cacheName)
Sets the name of the table where data will be stored. |
void |
setCreateTableOnStart(boolean createTableOnStart)
|
void |
setDatabaseType(DatabaseType dbType)
Sets the database dialect. |
void |
setDatabaseType(String dbType)
Sets the database dialect. |
void |
setDataColumnName(String dataColumnName)
Sets the name of the column where the StoredEntry will be binary stored. |
void |
setDataColumnType(String dataColumnType)
Sets the type of the column where data will be binary stored. |
void |
setDropTableOnExit(boolean dropTableOnExit)
|
void |
setFetchSize(int fetchSize)
|
void |
setIdColumnName(String idColumnName)
Sets the name of the column where the id will be stored. |
void |
setIdColumnType(String idColumnType)
sql equivalent for java's String. |
void |
setTableManipulation(TableManipulation tableManipulation)
|
void |
setTimestampColumnName(String timestampColumnName)
Sets the name of the column where the timestamp (Long in java) will be stored. |
void |
setTimestampColumnType(String timestampColumnType)
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.AbstractJdbcCacheStoreConfig |
---|
getConnectionFactoryConfig, setConnectionFactoryClass, setConnectionUrl, setDatasourceJndiLocation, setDriverClass, setPassword, setProperty, setUserName |
Methods inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig |
---|
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel |
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 |
Field Detail |
---|
public static final int DEFAULT_CONCURRENCY_LEVEL
public static final int DEFAULT_LOCK_ACQUISITION_TIMEOUT
protected TableManipulation tableManipulation
protected boolean manageConnectionFactory
Constructor Detail |
---|
protected AbstractNonDelegatingJdbcCacheStoreConfig()
protected AbstractNonDelegatingJdbcCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig, TableManipulation tableManipulation)
Method Detail |
---|
public void setCacheName(String cacheName)
public void setIdColumnName(String idColumnName)
key2StringMapper.getStringMapping(storedEntry.getKey());Mandatory.
public void setDataColumnName(String dataColumnName)
public void setTimestampColumnName(String timestampColumnName)
public void setTimestampColumnType(String timestampColumnType)
public TableManipulation getTableManipulation()
public void setIdColumnType(String idColumnType)
public void setDataColumnType(String dataColumnType)
public void setDropTableOnExit(boolean dropTableOnExit)
public void setCreateTableOnStart(boolean createTableOnStart)
public boolean isManageConnectionFactory()
JdbcStringBasedCacheStore
, but will be injected through JdbcStringBasedCacheStore.doConnectionFactoryInitialization(org.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory)
public void setTableManipulation(TableManipulation tableManipulation)
public void setFetchSize(int fetchSize)
TableManipulation.getFetchSize()
public void setBatchSize(int batchSize)
TableManipulation.getBatchSize()
public int getFetchSize()
TableManipulation.getFetchSize()
public int getBatchSize()
TableManipulation.getBatchSize()
public String getDatabaseType()
public void setDatabaseType(String dbType)
dbType
- public void setDatabaseType(DatabaseType dbType)
dbType
- public AbstractNonDelegatingJdbcCacheStoreConfig clone()
clone
in interface CloneableConfigurationComponent
clone
in interface CacheLoaderConfig
clone
in class AbstractJdbcCacheStoreConfig
public String toString()
toString
in class AbstractJdbcCacheStoreConfig
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |