Class SchemaJdbcConfigurationBuilder<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.SchemaJdbcConfigurationBuilder<S>
- All Implemented Interfaces:
Builder<SchemaJdbcConfiguration>,ConfigurationChildBuilder,LoaderConfigurationChildBuilder<S>,PersistenceConfigurationChildBuilder,StoreConfigurationChildBuilder<S>,JdbcStoreConfigurationChildBuilder<S>
public class SchemaJdbcConfigurationBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,S>>
extends AbstractJdbcStoreConfigurationChildBuilder<S>
implements Builder<SchemaJdbcConfiguration>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
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 interceptorsembeddedKey(boolean embeddedKey) Whether the key column(s) should be also written into the value object.encoding()protected ConfigurationBuilderindexing()keyMessageName(String keyMessageName) The protobuf message name to use to marshall the cache key to the database.locking()memory()messageName(String messageName) The protobuf message name to use to marshall the cache entry to the database.packageName(String packageName) Sets the package name to be used when determining which schemas are used withmessageName(String)andkeyMessageName(String).query()Builder<?>read(SchemaJdbcConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) unsafe()voidvalidate()Validate the data in this builder before building the configuration beanMethods 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
-
SchemaJdbcConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<S extends AbstractJdbcStoreConfigurationBuilder<?,S>>
-
messageName
The protobuf message name to use to marshall the cache entry to the database. If the value is a single column, this is not required.- Parameters:
messageName- the protobuf message name for the value- Returns:
- this
-
keyMessageName
The protobuf message name to use to marshall the cache key to the database. If the key is a single column, this is not required.- Parameters:
keyMessageName- the protobuf message name for the key- Returns:
- this
-
packageName
Sets the package name to be used when determining which schemas are used withmessageName(String)andkeyMessageName(String).- Parameters:
packageName- the package for the message or key message- Returns:
- this
-
embeddedKey
Whether the key column(s) should be also written into the value object. When this is enabled,<b>must</b> also be configured.- Parameters:
embeddedKey- whether the key is embedded in the value- 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>>
-
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
-