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
Modifier and TypeMethodDescriptionbatchSize(int batchSize) Deprecated, for removal: This API element is subject to removal in a future version.build()create()Create the configuration beancreateOnStart(boolean createOnStart) Determines whether database tables should be created by the store on startupDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsdataColumnName(String dataColumnName) The name of the database column used to store the entriesdataColumnType(String dataColumnType) The type of the database column used to store the entriesdropOnExit(boolean dropOnExit) Determines whether database tables should be dropped by the store on shutdownencoding()fetchSize(int fetchSize) For DB queries the fetch size is onResultSet.setFetchSize(int).protected ConfigurationBuilderidColumnName(String idColumnName) The name of the database column used to store the keysidColumnType(String idColumnType) The type of the database column used to store the keysindexing()locking()memory()query()Builder<?>read(TableManipulationConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()segmentColumnName(String segmentColumnName) The name of the database column used to store the segmentssegmentColumnType(String segmentColumnType) The type of the database column used to store the segmentsbooleansimpleCache(boolean simpleCache) sites()tableNamePrefix(String tableNamePrefix) Sets the prefix for the name of the table where the data will be stored.template(boolean template) timestampColumnName(String timestampColumnName) The name of the database column used to store the timestampstimestampColumnType(String timestampColumnType) The type of the database column used to store the timestampstoString()unsafe()voidvalidate()Validate the data in this builder before building the configuration beanvoidvalidate(GlobalConfiguration globalConfig) Methods inherited from class org.infinispan.persistence.jdbc.common.configuration.AbstractJdbcStoreConfigurationChildBuilder
connectionFactory, connectionFactory, connectionPool, dataSource, simpleConnectionMethods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafeMethods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>>
-
batchSize
Deprecated, for removal: This API element is subject to removal in a future version.Please useAbstractStoreConfigurationBuilder.maxBatchSize(int)instead. -
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
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
Determines whether database tables should be created by the store on startup -
dropOnExit
Determines whether database tables should be dropped by the store on shutdown -
idColumnName
The name of the database column used to store the keys -
idColumnType
The type of the database column used to store the keys -
dataColumnName
The name of the database column used to store the entries -
dataColumnType
The type of the database column used to store the entries -
timestampColumnName
The name of the database column used to store the timestamps -
timestampColumnType
The type of the database column used to store the timestamps -
segmentColumnName
The name of the database column used to store the segments -
segmentColumnType
The type of the database column used to store the segments -
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>> - Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>> - Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
toString
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-
AbstractStoreConfigurationBuilder.maxBatchSize(int)instead.