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
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
create()
Create the configuration beanembeddedKey
(boolean embeddedKey) Whether the key column(s) should be also written into the value object.encoding()
protected ConfigurationBuilder
indexing()
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()
boolean
simpleCache
(boolean simpleCache) sites()
template
(boolean template) tracing()
unsafe()
void
validate()
Validate the data in this builder before building the configuration beanMethods 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, toString, 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, validate
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Constructor Details
-
SchemaJdbcConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in 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,invalid input: '<b>must</b> also be configured. @param embeddedKey whether the key is embedded in the value @return 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>>
-
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.
-
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
-