org.infinispan.loaders.jdbc.configuration
public class JdbcMixedCacheStoreConfigurationBuilder extends AbstractJdbcCacheStoreConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder> implements JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
Modifier and Type | Class and Description |
---|---|
class |
JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder |
connectionFactory
lockAcquistionTimeout, lockConcurrencyLevel
Constructor and Description |
---|
JdbcMixedCacheStoreConfigurationBuilder(org.infinispan.configuration.cache.LoadersConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
JdbcMixedCacheStoreConfigurationBuilder |
batchSize(int batchSize)
When doing repetitive DB inserts (e.g.
|
JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder |
binaryTable()
Allows configuration of table-specific parameters such as column names and types for the table
used to store entries with binary keys
|
JdbcMixedCacheStoreConfiguration |
create() |
JdbcMixedCacheStoreConfigurationBuilder |
databaseType(DatabaseType databaseType)
Specifies the type of the underlying database.
|
JdbcMixedCacheStoreConfigurationBuilder |
fetchSize(int fetchSize)
For DB queries (e.g.
|
protected org.infinispan.configuration.cache.ConfigurationBuilder |
getBuilder() |
JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder> |
key2StringMapper(Class<? extends org.infinispan.loaders.keymappers.Key2StringMapper> klass)
The class of a
Key2StringMapper to use for mapping keys to strings suitable for
storage in a database table. |
JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder> |
key2StringMapper(String key2StringMapper)
The class name of a
Key2StringMapper to use for mapping keys to strings suitable for
storage in a database table. |
JdbcMixedCacheStoreConfigurationBuilder |
read(JdbcMixedCacheStoreConfiguration template) |
JdbcMixedCacheStoreConfigurationBuilder |
self() |
JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder |
stringTable()
Allows configuration of table-specific parameters such as column names and types for the table
used to store entries with string keys
|
void |
validate() |
connectionFactory, connectionPool, dataSource, readInternal, simpleConnection
lockAcquistionTimeout, lockAcquistionTimeout, lockConcurrencyLevel
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
addProperty, withProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectionPool, dataSource, simpleConnection
lockAcquistionTimeout, lockAcquistionTimeout, lockConcurrencyLevel
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
addProperty, withProperties
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, sites, storeAsBinary, transaction, unsafe, versioning
public JdbcMixedCacheStoreConfigurationBuilder(org.infinispan.configuration.cache.LoadersConfigurationBuilder builder)
public JdbcMixedCacheStoreConfigurationBuilder self()
self
in interface org.infinispan.configuration.Self<JdbcMixedCacheStoreConfigurationBuilder>
public JdbcMixedCacheStoreConfigurationBuilder batchSize(int batchSize)
CacheStore.fromStream(java.io.ObjectInput)
this will be batched
according to this parameter. This is an optional parameter, and if it is not specified it will
be defaulted to #DEFAULT_BATCH_SIZE
.public JdbcMixedCacheStoreConfigurationBuilder fetchSize(int fetchSize)
CacheStore.toStream(java.io.ObjectOutput)
) the fetch size will be set on ResultSet.setFetchSize(int)
. This is optional
parameter, if not specified will be defaulted to #DEFAULT_FETCH_SIZE
.public JdbcMixedCacheStoreConfigurationBuilder databaseType(DatabaseType databaseType)
public JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder binaryTable()
binaryTable
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
public JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder stringTable()
stringTable
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
public JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder> key2StringMapper(String key2StringMapper)
Key2StringMapper
to use for mapping keys to strings suitable for
storage in a database table. Defaults to DefaultTwoWayKey2StringMapper
key2StringMapper
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
public JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder> key2StringMapper(Class<? extends org.infinispan.loaders.keymappers.Key2StringMapper> klass)
Key2StringMapper
to use for mapping keys to strings suitable for
storage in a database table. Defaults to DefaultTwoWayKey2StringMapper
key2StringMapper
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
public void validate()
validate
in interface org.infinispan.configuration.Builder<JdbcMixedCacheStoreConfiguration>
validate
in class AbstractJdbcCacheStoreConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder>
public JdbcMixedCacheStoreConfiguration create()
create
in interface org.infinispan.configuration.Builder<JdbcMixedCacheStoreConfiguration>
public JdbcMixedCacheStoreConfigurationBuilder read(JdbcMixedCacheStoreConfiguration template)
read
in interface org.infinispan.configuration.Builder<JdbcMixedCacheStoreConfiguration>
protected org.infinispan.configuration.cache.ConfigurationBuilder getBuilder()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.