Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.loaders.jdbc.configuration
Class TableManipulationConfigurationBuilder<B extends AbstractJdbcCacheStoreConfigurationBuilder<?,B>,S extends TableManipulationConfigurationBuilder<B,S>>

java.lang.Object
  extended by org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder
      extended by org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder<S>
          extended by org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
              extended by org.infinispan.configuration.cache.AbstractLockSupportStoreConfigurationChildBuilder<S>
                  extended by org.infinispan.loaders.jdbc.configuration.AbstractJdbcCacheStoreConfigurationChildBuilder<B>
                      extended by org.infinispan.loaders.jdbc.configuration.TableManipulationConfigurationBuilder<B,S>
All Implemented Interfaces:
Builder<TableManipulationConfiguration>, ConfigurationChildBuilder, LoaderConfigurationChildBuilder<B>, LoadersConfigurationChildBuilder, LockSupportStoreConfigurationChildBuilder<B>, StoreConfigurationChildBuilder<B>, Self<S>, JdbcCacheStoreConfigurationChildBuilder<B>
Direct Known Subclasses:
JdbcBinaryCacheStoreConfigurationBuilder.BinaryTableManipulationConfigurationBuilder, JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder, JdbcStringBasedCacheStoreConfigurationBuilder.StringTableManipulationConfigurationBuilder

public abstract class TableManipulationConfigurationBuilder<B extends AbstractJdbcCacheStoreConfigurationBuilder<?,B>,S extends TableManipulationConfigurationBuilder<B,S>>
extends AbstractJdbcCacheStoreConfigurationChildBuilder<B>
implements Builder<TableManipulationConfiguration>, Self<S>

TableManipulationConfigurationBuilder.

Since:
5.2
Author:
Tristan Tarrant

Method Summary
 S batchSize(int batchSize)
          When doing repetitive DB inserts (e.g.
 Configuration build()
           
 ClusteringConfigurationBuilder clustering()
           
 TableManipulationConfiguration create()
          Create the configuration bean
 S createOnStart(boolean createOnStart)
          Determines whether database tables should be created by the store on startup
 CustomInterceptorsConfigurationBuilder customInterceptors()
           
 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
 DataContainerConfigurationBuilder dataContainer()
           
 DeadlockDetectionConfigurationBuilder deadlockDetection()
           
 S dropOnExit(boolean dropOnExit)
          Determines whether database tables should be dropped by the store on shutdown
 EvictionConfigurationBuilder eviction()
           
 ExpirationConfigurationBuilder expiration()
           
 S fetchSize(int fetchSize)
          For DB queries (e.g.
protected  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
 IndexingConfigurationBuilder indexing()
           
 InvocationBatchingConfigurationBuilder invocationBatching()
           
 JMXStatisticsConfigurationBuilder jmxStatistics()
           
 LoadersConfigurationBuilder loaders()
           
 LockingConfigurationBuilder locking()
           
 Builder<?> read(TableManipulationConfiguration template)
          Reads the configuration from an already created configuration bean into this builder.
 SitesConfigurationBuilder sites()
           
 StoreAsBinaryConfigurationBuilder storeAsBinary()
           
 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
 TransactionConfigurationBuilder transaction()
           
 UnsafeConfigurationBuilder unsafe()
           
 void validate()
          Validate the data in this builder before building the configuration bean
 VersioningConfigurationBuilder versioning()
           
 
Methods inherited from class org.infinispan.loaders.jdbc.configuration.AbstractJdbcCacheStoreConfigurationChildBuilder
connectionPool, dataSource, simpleConnection
 
Methods inherited from class org.infinispan.configuration.cache.AbstractLockSupportStoreConfigurationChildBuilder
lockAcquistionTimeout, lockAcquistionTimeout, lockConcurrencyLevel
 
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Methods inherited from class org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder
addProperty, withProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.configuration.Self
self
 
Methods inherited from interface org.infinispan.configuration.cache.LockSupportStoreConfigurationChildBuilder
lockAcquistionTimeout, lockAcquistionTimeout, lockConcurrencyLevel
 
Methods inherited from interface org.infinispan.configuration.cache.StoreConfigurationChildBuilder
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Methods inherited from interface org.infinispan.configuration.cache.LoaderConfigurationChildBuilder
addProperty, withProperties
 
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, sites, storeAsBinary, transaction, unsafe, versioning
 
Methods inherited from interface org.infinispan.configuration.cache.LoadersConfigurationChildBuilder
loaders
 

Method Detail

batchSize

public S batchSize(int batchSize)
When doing repetitive DB inserts (e.g. on 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.


fetchSize

public S fetchSize(int fetchSize)
For DB queries (e.g. 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.


tableNamePrefix

public S tableNamePrefix(String tableNamePrefix)
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.


databaseType

public S databaseType(DatabaseType databaseType)
Specifies the type of the underlying database. If unspecified the database type will be determined automatically


createOnStart

public S createOnStart(boolean createOnStart)
Determines whether database tables should be created by the store on startup


dropOnExit

public S dropOnExit(boolean dropOnExit)
Determines whether database tables should be dropped by the store on shutdown


idColumnName

public S idColumnName(String idColumnName)
The name of the database column used to store the keys


idColumnType

public S idColumnType(String idColumnType)
The type of the database column used to store the keys


dataColumnName

public S dataColumnName(String dataColumnName)
The name of the database column used to store the entries


dataColumnType

public S dataColumnType(String dataColumnType)
The type of the database column used to store the entries


timestampColumnName

public S timestampColumnName(String timestampColumnName)
The name of the database column used to store the timestamps


timestampColumnType

public S timestampColumnType(String timestampColumnType)
The type of the database column used to store the timestamps


validate

public void validate()
Description copied from interface: Builder
Validate the data in this builder before building the configuration bean

Specified by:
validate in interface Builder<TableManipulationConfiguration>

create

public TableManipulationConfiguration create()
Description copied from interface: Builder
Create the configuration bean

Specified by:
create in interface Builder<TableManipulationConfiguration>
Returns:

read

public Builder<?> read(TableManipulationConfiguration template)
Description copied from interface: Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration

Specified by:
read in interface Builder<TableManipulationConfiguration>
Parameters:
template - the configuration from which to "clone" this config if needed.

clustering

public ClusteringConfigurationBuilder clustering()
Specified by:
clustering in interface ConfigurationChildBuilder

customInterceptors

public CustomInterceptorsConfigurationBuilder customInterceptors()
Specified by:
customInterceptors in interface ConfigurationChildBuilder

dataContainer

public DataContainerConfigurationBuilder dataContainer()
Specified by:
dataContainer in interface ConfigurationChildBuilder

deadlockDetection

public DeadlockDetectionConfigurationBuilder deadlockDetection()
Specified by:
deadlockDetection in interface ConfigurationChildBuilder

eviction

public EvictionConfigurationBuilder eviction()
Specified by:
eviction in interface ConfigurationChildBuilder

expiration

public ExpirationConfigurationBuilder expiration()
Specified by:
expiration in interface ConfigurationChildBuilder

indexing

public IndexingConfigurationBuilder indexing()
Specified by:
indexing in interface ConfigurationChildBuilder

invocationBatching

public InvocationBatchingConfigurationBuilder invocationBatching()
Specified by:
invocationBatching in interface ConfigurationChildBuilder

jmxStatistics

public JMXStatisticsConfigurationBuilder jmxStatistics()
Specified by:
jmxStatistics in interface ConfigurationChildBuilder

loaders

public LoadersConfigurationBuilder loaders()
Specified by:
loaders in interface ConfigurationChildBuilder

locking

public LockingConfigurationBuilder locking()
Specified by:
locking in interface ConfigurationChildBuilder

storeAsBinary

public StoreAsBinaryConfigurationBuilder storeAsBinary()
Specified by:
storeAsBinary in interface ConfigurationChildBuilder

transaction

public TransactionConfigurationBuilder transaction()
Specified by:
transaction in interface ConfigurationChildBuilder

versioning

public VersioningConfigurationBuilder versioning()
Specified by:
versioning in interface ConfigurationChildBuilder

unsafe

public UnsafeConfigurationBuilder unsafe()
Specified by:
unsafe in interface ConfigurationChildBuilder

sites

public SitesConfigurationBuilder sites()
Specified by:
sites in interface ConfigurationChildBuilder

getBuilder

protected ConfigurationBuilder getBuilder()

build

public Configuration build()
Specified by:
build in interface ConfigurationChildBuilder

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.