Package org.infinispan.persistence.sql
Class AbstractSchemaJdbcStore<K,V,C extends AbstractSchemaJdbcConfiguration>
java.lang.Object
org.infinispan.persistence.jdbc.common.impl.BaseJdbcStore<K,V,C>
org.infinispan.persistence.sql.AbstractSchemaJdbcStore<K,V,C>
- All Implemented Interfaces:
org.infinispan.persistence.spi.NonBlockingStore<K,V>
- Direct Known Subclasses:
QueriesJdbcStore,TableJdbcStore
public abstract class AbstractSchemaJdbcStore<K,V,C extends AbstractSchemaJdbcConfiguration>
extends org.infinispan.persistence.jdbc.common.impl.BaseJdbcStore<K,V,C>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static enumprotected static classNested classes/interfaces inherited from interface org.infinispan.persistence.spi.NonBlockingStore
org.infinispan.persistence.spi.NonBlockingStore.Characteristic, org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<Type> -
Field Summary
Fields inherited from class org.infinispan.persistence.jdbc.common.impl.BaseJdbcStore
blockingManager, config, connectionFactory, log, tableOperations, transactionConnectionMapFields inherited from interface org.infinispan.persistence.spi.NonBlockingStore
SIZE_UNAVAILABLE_FUTURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactualCreateTableOperations(AbstractSchemaJdbcStore.ProtoSchemaOptions<K, V, C> schemaOptions) Implementation specific method to return a table operations which will then be used appropriately for store operations.createTableOperations(org.infinispan.persistence.spi.InitializationContext ctx, C config) protected AbstractSchemaJdbcStore.Parameter[]determinePrimaryParameters(C config, AbstractSchemaJdbcStore.Parameter[] allParameters) Methods inherited from class org.infinispan.persistence.jdbc.common.impl.BaseJdbcStore
approximateSize, batch, characteristics, clear, commit, delete, destroyTxConnection, extraStopSteps, getTxConnection, isAvailable, load, prepareWithModifications, publishEntries, publishKeys, rollback, size, start, stop, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.persistence.spi.NonBlockingStore
addSegments, containsKey, destroy, ignoreCommandWithFlags, purgeExpired, removeSegments
-
Constructor Details
-
AbstractSchemaJdbcStore
public AbstractSchemaJdbcStore()
-
-
Method Details
-
createTableOperations
protected org.infinispan.persistence.jdbc.common.TableOperations<K,V> createTableOperations(org.infinispan.persistence.spi.InitializationContext ctx, C config) throws SQLException - Specified by:
createTableOperationsin classorg.infinispan.persistence.jdbc.common.impl.BaseJdbcStore<K,V, C extends AbstractSchemaJdbcConfiguration> - Throws:
SQLException
-
determinePrimaryParameters
protected AbstractSchemaJdbcStore.Parameter[] determinePrimaryParameters(C config, AbstractSchemaJdbcStore.Parameter[] allParameters) -
actualCreateTableOperations
protected abstract org.infinispan.persistence.jdbc.common.TableOperations<K,V> actualCreateTableOperations(AbstractSchemaJdbcStore.ProtoSchemaOptions<K, V, C> schemaOptions) Implementation specific method to return a table operations which will then be used appropriately for store operations. It is recommended to extendAbstractSchemaJdbcStore.SchemaTableOperationsproviding ways to retrieve the statements needed.- Parameters:
schemaOptions- the operations for the schema for this store- Returns:
- the operations object to use
-