public abstract class AbstractNonDelegatingJdbcCacheStoreConfig extends AbstractJdbcCacheStoreConfig
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONCURRENCY_LEVEL |
static int |
DEFAULT_LOCK_ACQUISITION_TIMEOUT |
protected boolean |
manageConnectionFactory |
protected TableManipulation |
tableManipulation |
connectionFactoryConfig
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
cacheLoaderClassName, properties
cr
overriddenConfigurationElements
Modifier | Constructor and Description |
---|---|
protected |
AbstractNonDelegatingJdbcCacheStoreConfig() |
protected |
AbstractNonDelegatingJdbcCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig,
TableManipulation tableManipulation) |
Modifier and Type | Method and Description |
---|---|
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() |
getConnectionFactoryConfig, setConnectionFactoryClass, setConnectionUrl, setDatasourceJndiLocation, setDriverClass, setPassword, setProperty, setUserName
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel
accept, asyncStore, equals, equalsExcludingProperties, fetchPersistentState, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, getTypedProperties, hashCode, hashCodeExcludingProperties, ignoreModifications, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, purgeOnStartup, purgerThreads, purgeSynchronously, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, setTypedProperties, singletonStore
getCacheLoaderClassName, getClassLoader, getProperties, setCacheLoaderClassName, setProperties, setProperties
hasComponentStarted, inject
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
finalize, getClass, notify, notifyAll, wait, wait, wait
getCacheLoaderClassName, getClassLoader, setCacheLoaderClassName
public static final int DEFAULT_CONCURRENCY_LEVEL
public static final int DEFAULT_LOCK_ACQUISITION_TIMEOUT
protected TableManipulation tableManipulation
protected boolean manageConnectionFactory
protected AbstractNonDelegatingJdbcCacheStoreConfig()
protected AbstractNonDelegatingJdbcCacheStoreConfig(ConnectionFactoryConfig connectionFactoryConfig, TableManipulation tableManipulation)
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
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.