Class QueriesJdbcConfigurationBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,S>>
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
org.infinispan.persistence.jdbc.common.configuration.AbstractJdbcStoreConfigurationChildBuilder<S>
org.infinispan.persistence.sql.configuration.QueriesJdbcConfigurationBuilder<S>
- All Implemented Interfaces:
Builder<QueriesJdbcConfiguration>,ConfigurationChildBuilder,LoaderConfigurationChildBuilder<S>,PersistenceConfigurationChildBuilder,StoreConfigurationChildBuilder<S>,JdbcStoreConfigurationChildBuilder<S>
public class QueriesJdbcConfigurationBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,S>>
extends AbstractJdbcStoreConfigurationChildBuilder<S>
implements Builder<QueriesJdbcConfiguration>
QueriesJdbcConfigurationBuilder.
- Since:
- 13.0
- Author:
- William Burns
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuild()create()Create the configuration beanDeprecated, 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 interceptorsConfigures the delete statement to be used when removing entries from the database.Configures the delete all statement to be used when clearing the store.encoding()protected ConfigurationBuilderindexing()locking()memory()query()Builder<?>read(QueriesJdbcConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()Configures the select statement to be used when reading entries from the database.Configures the select all statement to be used when reading all entries from the database.booleansimpleCache(boolean simpleCache) sites()Configures the size statement to be used when determining the size of the store.template(boolean template) unsafe()Configures the upsert statement to be used when writing entries to the database.voidvalidate()Validate the data in this builder before building the configuration beanvoidvalidate(boolean isLoader) 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, toString, 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, unsafe, validateMethods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Constructor Details
-
QueriesJdbcConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,S>>
-
select
Configures the select statement to be used when reading entries from the database. Note all parameters must be named (i.e. :myname) and the parameters must be the same name and order as the one provided todelete(String).- Parameters:
select- the select statement to use- Returns:
- this
-
selectAll
Configures the select all statement to be used when reading all entries from the database. No parameters may be used.- Parameters:
selectAll- the select all statement to use- Returns:
- this
-
delete
Configures the delete statement to be used when removing entries from the database. Note all parameters must be named (i.e. :myname) and the parameters must be the same name and order as the one provided toselect(String).- Parameters:
delete- the delete statement to use- Returns:
- this
-
deleteAll
Configures the delete all statement to be used when clearing the store. No parameters may be used.- Parameters:
deleteAll- the delete all statement to use- Returns:
- this
-
upsert
Configures the upsert statement to be used when writing entries to the database. Note all parameters must be named (i.e. :myname).- Parameters:
upsert- the upsert statement to use- Returns:
- this
-
size
Configures the size statement to be used when determining the size of the store. No parameters may be used.- Parameters:
size- the size statement to use- Returns:
- this
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,S>>
-
validate
public void validate(boolean isLoader) -
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,S>> - 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<S extends AbstractJdbcStoreConfigurationBuilder<?,S>> - 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.
-
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
-