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
ConstructorDescription -
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 ConfigurationBuilder
indexing()
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.boolean
simpleCache
(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.void
validate()
Validate the data in this builder before building the configuration beanvoid
validate
(boolean isLoader) 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, validate
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Constructor Details
-
QueriesJdbcConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in 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:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,
S>>
-
validate
public void validate(boolean isLoader) -
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,
S>> - 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<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:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in 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:
customInterceptors
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
-
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
-