Class AbstractJdbcStoreConfigurationBuilder<T extends AbstractJdbcStoreConfiguration,S extends AbstractJdbcStoreConfigurationBuilder<T,S>>
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<T,S>
org.infinispan.persistence.jdbc.common.configuration.AbstractJdbcStoreConfigurationBuilder<T,S>
- All Implemented Interfaces:
Builder<T>
,Self<S>
,ConfigurationChildBuilder
,LoaderConfigurationChildBuilder<S>
,PersistenceConfigurationChildBuilder
,StoreConfigurationBuilder<T,
,S> StoreConfigurationChildBuilder<S>
,JdbcStoreConfigurationChildBuilder<S>
- Direct Known Subclasses:
AbstractSchemaJdbcConfigurationBuilder
,JdbcStringBasedStoreConfigurationBuilder
public abstract class AbstractJdbcStoreConfigurationBuilder<T extends AbstractJdbcStoreConfiguration,S extends AbstractJdbcStoreConfigurationBuilder<T,S>>
extends AbstractStoreConfigurationBuilder<T,S>
implements JdbcStoreConfigurationChildBuilder<S>
-
Field Summary
Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
async, attributes
-
Constructor Summary
ConstructorDescriptionAbstractJdbcStoreConfigurationBuilder
(PersistenceConfigurationBuilder builder, AttributeSet attributes) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
<C extends ConnectionFactoryConfigurationBuilder<?>>
CconnectionFactory
(C builder) Use the specifiedConnectionFactoryConfigurationBuilder
to configure connections to the database<C extends ConnectionFactoryConfigurationBuilder<?>>
CconnectionFactory
(Class<C> klass) Use the specified ConnectionFactory to handle connection to the databaseConfigures a connection pool to be used by this JDBC Cache Store to handle connections to the databaseDeprecated, 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 a DataSource to be used by this JDBC Cache Store to handle connections to the databasedbMajorVersion
(Integer majorVersion) Deprecated, for removal: This API element is subject to removal in a future version.since 14.0 is ignoreddbMinorVersion
(Integer minorVersion) Deprecated, for removal: This API element is subject to removal in a future version.since 14.0 is ignoreddialect
(DatabaseType databaseType) encoding()
protected ConfigurationBuilder
indexing()
locking()
manageConnectionFactory
(boolean manageConnectionFactory) Deprecated.Deprecated since 13.0 with no replacementmemory()
query()
Builder
<?> Reads the configuration from an already created configuration bean into this builder.readQueryTimeout
(Integer queryTimeout) security()
boolean
simpleCache
(boolean simpleCache) Configures this JDBC Cache Store to use a single connection to the databasesites()
template
(boolean template) unsafe()
void
validate()
Validate the data in this builder before building the configuration beanvoid
validate
(GlobalConfiguration globalConfig) writeQueryTimeout
(Integer queryTimeout) Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
addProperty, async, attributes, fetchPersistentState, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, toString, transactional, validate, 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
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Field Details
-
connectionFactory
-
builder
-
-
Constructor Details
-
AbstractJdbcStoreConfigurationBuilder
public AbstractJdbcStoreConfigurationBuilder(PersistenceConfigurationBuilder builder, AttributeSet attributes)
-
-
Method Details
-
connectionPool
Description copied from interface:JdbcStoreConfigurationChildBuilder
Configures a connection pool to be used by this JDBC Cache Store to handle connections to the database- Specified by:
connectionPool
in interfaceJdbcStoreConfigurationChildBuilder<T extends AbstractJdbcStoreConfiguration>
-
dataSource
Description copied from interface:JdbcStoreConfigurationChildBuilder
Configures a DataSource to be used by this JDBC Cache Store to handle connections to the database- Specified by:
dataSource
in interfaceJdbcStoreConfigurationChildBuilder<T extends AbstractJdbcStoreConfiguration>
-
simpleConnection
Description copied from interface:JdbcStoreConfigurationChildBuilder
Configures this JDBC Cache Store to use a single connection to the database- Specified by:
simpleConnection
in interfaceJdbcStoreConfigurationChildBuilder<T extends AbstractJdbcStoreConfiguration>
-
connectionFactory
Use the specified ConnectionFactory to handle connection to the database- Specified by:
connectionFactory
in interfaceJdbcStoreConfigurationChildBuilder<T extends AbstractJdbcStoreConfiguration>
-
connectionFactory
Use the specifiedConnectionFactoryConfigurationBuilder
to configure connections to the database- Specified by:
connectionFactory
in interfaceJdbcStoreConfigurationChildBuilder<T extends AbstractJdbcStoreConfiguration>
-
getConnectionFactory
-
manageConnectionFactory
Deprecated.Deprecated since 13.0 with no replacement- Parameters:
manageConnectionFactory
- ignored- Returns:
- this
-
dialect
-
dbMajorVersion
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0 is ignored -
dbMinorVersion
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0 is ignored -
readQueryTimeout
-
writeQueryTimeout
-
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<T extends AbstractJdbcStoreConfiguration>
- Overrides:
validate
in classAbstractStoreConfigurationBuilder<T extends AbstractJdbcStoreConfiguration,
S extends AbstractJdbcStoreConfigurationBuilder<T, S>>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
- Overrides:
validate
in classAbstractStoreConfigurationBuilder<T extends AbstractJdbcStoreConfiguration,
S extends AbstractJdbcStoreConfigurationBuilder<T, S>>
-
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<T extends AbstractJdbcStoreConfiguration>
- Overrides:
read
in classAbstractStoreConfigurationBuilder<T extends AbstractJdbcStoreConfiguration,
S extends AbstractJdbcStoreConfigurationBuilder<T, 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
-