Class TableManipulationConfigurationBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,B>,S extends TableManipulationConfigurationBuilder<B,S>>
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<B>
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 startupdataColumnName
(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 ConfigurationBuilder
idColumnName
(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 segmentsboolean
simpleCache
(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()
tracing()
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
cdiDataSource, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
aliases, build, clustering, encoding, expiration, indexing, invocationBatching, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, tracing, transaction, unsafe
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Method Details
-
attributes
- Specified by:
attributes
in 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:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,
B>>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<B extends AbstractJdbcStoreConfigurationBuilder<?,
B>> - Returns:
-
read
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.combine
- the way attributes and children of this instance and the template should be combined.
-
toString
-
aliases
- Specified by:
aliases
in interfaceConfigurationChildBuilder
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
tracing
- Specified by:
tracing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-
AbstractStoreConfigurationBuilder.maxBatchSize(int)
instead.