Class TableManipulationConfigurationBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>,S extends TableManipulationConfigurationBuilder<B,S>>
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
-
- org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
-
- org.infinispan.persistence.jdbc.common.configuration.AbstractJdbcStoreConfigurationChildBuilder<B>
-
- org.infinispan.persistence.jdbc.configuration.TableManipulationConfigurationBuilder<B,S>
-
- All Implemented Interfaces:
Builder<TableManipulationConfiguration>
,Self<S>
,ConfigurationChildBuilder
,LoaderConfigurationChildBuilder<B>
,PersistenceConfigurationChildBuilder
,StoreConfigurationChildBuilder<B>
,JdbcStoreConfigurationChildBuilder<B>
- Direct Known Subclasses:
JdbcStringBasedStoreConfigurationBuilder.StringTableManipulationConfigurationBuilder
public abstract class TableManipulationConfigurationBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>,S extends TableManipulationConfigurationBuilder<B,S>> extends AbstractJdbcStoreConfigurationChildBuilder<B> implements Builder<TableManipulationConfiguration>, Self<S>
TableManipulationConfigurationBuilder.- Since:
- 5.2
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description S
batchSize(int batchSize)
Deprecated.Please useAbstractStoreConfigurationBuilder.maxBatchSize(int)
instead.Configuration
build()
ClusteringConfigurationBuilder
clustering()
TableManipulationConfiguration
create()
Create the configuration beanS
createOnStart(boolean createOnStart)
Determines whether database tables should be created by the store on startupCustomInterceptorsConfigurationBuilder
customInterceptors()
Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsS
dataColumnName(String dataColumnName)
The name of the database column used to store the entriesS
dataColumnType(String dataColumnType)
The type of the database column used to store the entriesS
dropOnExit(boolean dropOnExit)
Determines whether database tables should be dropped by the store on shutdownEncodingConfigurationBuilder
encoding()
ExpirationConfigurationBuilder
expiration()
S
fetchSize(int fetchSize)
For DB queries the fetch size is onResultSet.setFetchSize(int)
.protected ConfigurationBuilder
getBuilder()
S
idColumnName(String idColumnName)
The name of the database column used to store the keysS
idColumnType(String idColumnType)
The type of the database column used to store the keysIndexingConfigurationBuilder
indexing()
InvocationBatchingConfigurationBuilder
invocationBatching()
LockingConfigurationBuilder
locking()
MemoryConfigurationBuilder
memory()
PersistenceConfigurationBuilder
persistence()
Builder<?>
read(TableManipulationConfiguration template)
Reads the configuration from an already created configuration bean into this builder.SecurityConfigurationBuilder
security()
S
segmentColumnName(String segmentColumnName)
The name of the database column used to store the segmentsS
segmentColumnType(String segmentColumnType)
The type of the database column used to store the segmentsboolean
simpleCache()
ConfigurationChildBuilder
simpleCache(boolean simpleCache)
SitesConfigurationBuilder
sites()
StatisticsConfigurationBuilder
statistics()
S
tableNamePrefix(String tableNamePrefix)
Sets the prefix for the name of the table where the data will be stored.ConfigurationChildBuilder
template(boolean template)
S
timestampColumnName(String timestampColumnName)
The name of the database column used to store the timestampsS
timestampColumnType(String timestampColumnType)
The type of the database column used to store the timestampsString
toString()
TransactionConfigurationBuilder
transaction()
UnsafeConfigurationBuilder
unsafe()
void
validate()
Validate the data in this builder before building the configuration beanvoid
validate(GlobalConfiguration globalConfig)
-
Methods inherited from class org.infinispan.persistence.jdbc.common.configuration.AbstractJdbcStoreConfigurationChildBuilder
connectionFactory, connectionFactory, connectionPool, dataSource, simpleConnection
-
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnly
-
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
-
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
-
-
-
Method Detail
-
batchSize
@Deprecated public S batchSize(int batchSize)
Deprecated.Please useAbstractStoreConfigurationBuilder.maxBatchSize(int)
instead.
-
fetchSize
public S fetchSize(int fetchSize)
For DB queries the fetch size is onResultSet.setFetchSize(int)
. This is optional parameter, if not specified will be defaulted toTableManager.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.
-
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
-
segmentColumnName
public S segmentColumnName(String segmentColumnName)
The name of the database column used to store the segments
-
segmentColumnType
public S segmentColumnType(String segmentColumnType)
The type of the database column used to store the segments
-
validate
public void validate()
Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>>
-
validate
public void validate(GlobalConfiguration globalConfig)
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
public TableManipulationConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>>
- 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 interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
toString
public String toString()
-
template
public ConfigurationChildBuilder template(boolean template)
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
customInterceptors
@Deprecated public CustomInterceptorsConfigurationBuilder customInterceptors()
Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
public EncodingConfigurationBuilder encoding()
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
public StatisticsConfigurationBuilder statistics()
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
public PersistenceConfigurationBuilder persistence()
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
public LockingConfigurationBuilder locking()
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
public SecurityConfigurationBuilder security()
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
public SitesConfigurationBuilder sites()
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
public MemoryConfigurationBuilder memory()
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
protected ConfigurationBuilder getBuilder()
-
build
public Configuration build()
- Specified by:
build
in interfaceConfigurationChildBuilder
-
-