org.infinispan.loaders.jdbc.configuration
public abstract class TableManipulationConfigurationBuilder<B extends AbstractJdbcCacheStoreConfigurationBuilder<?,B>,S extends TableManipulationConfigurationBuilder<B,S>> extends AbstractJdbcCacheStoreConfigurationChildBuilder<B> implements org.infinispan.configuration.Builder<TableManipulationConfiguration>, org.infinispan.configuration.Self<S>
Modifier and Type | Method and Description |
---|---|
S |
batchSize(int batchSize)
When doing repetitive DB inserts (e.g.
|
TableManipulationConfiguration |
create() |
S |
createOnStart(boolean createOnStart)
Determines whether database tables should be created by the store on startup
|
S |
databaseType(DatabaseType databaseType)
Specifies the type of the underlying database.
|
S |
dataColumnName(String dataColumnName)
The name of the database column used to store the entries
|
S |
dataColumnType(String dataColumnType)
The type of the database column used to store the entries
|
S |
dropOnExit(boolean dropOnExit)
Determines whether database tables should be dropped by the store on shutdown
|
S |
fetchSize(int fetchSize)
For DB queries (e.g.
|
protected org.infinispan.configuration.cache.ConfigurationBuilder |
getBuilder() |
S |
idColumnName(String idColumnName)
The name of the database column used to store the keys
|
S |
idColumnType(String idColumnType)
The type of the database column used to store the keys
|
org.infinispan.configuration.Builder<?> |
read(TableManipulationConfiguration template) |
S |
tableNamePrefix(String tableNamePrefix)
Sets the prefix for the name of the table where the data will be stored.
|
S |
timestampColumnName(String timestampColumnName)
The name of the database column used to store the timestamps
|
S |
timestampColumnType(String timestampColumnType)
The type of the database column used to store the timestamps
|
void |
validate() |
connectionPool, dataSource, simpleConnection
lockAcquistionTimeout, lockAcquistionTimeout, lockConcurrencyLevel
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
addProperty, withProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 S 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 S 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 S tableNamePrefix(String tableNamePrefix)
public S databaseType(DatabaseType databaseType)
public S createOnStart(boolean createOnStart)
public S dropOnExit(boolean dropOnExit)
public S idColumnName(String idColumnName)
public S idColumnType(String idColumnType)
public S dataColumnName(String dataColumnName)
public S dataColumnType(String dataColumnType)
public S timestampColumnName(String timestampColumnName)
public S timestampColumnType(String timestampColumnType)
public void validate()
validate
in interface org.infinispan.configuration.Builder<TableManipulationConfiguration>
public TableManipulationConfiguration create()
create
in interface org.infinispan.configuration.Builder<TableManipulationConfiguration>
public org.infinispan.configuration.Builder<?> read(TableManipulationConfiguration template)
read
in interface org.infinispan.configuration.Builder<TableManipulationConfiguration>
protected org.infinispan.configuration.cache.ConfigurationBuilder getBuilder()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.