Class SQLStoreConfiguration

java.lang.Object
org.infinispan.configuration.cache.AbstractStoreConfiguration
com.nimbusds.infinispan.persistence.sql.config.SQLStoreConfiguration
All Implemented Interfaces:
com.nimbusds.common.config.LoggableConfiguration, org.infinispan.configuration.cache.StoreConfiguration

@Immutable public class SQLStoreConfiguration extends org.infinispan.configuration.cache.AbstractStoreConfiguration implements com.nimbusds.common.config.LoggableConfiguration
SQL store configuration.
  • Field Summary

    Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration

    attributes, MAX_BATCH_SIZE, PRELOAD, PROPERTIES, PURGE_ON_STARTUP, READ_ONLY, SEGMENTED, SHARED, TRANSACTIONAL, WRITE_ONLY

    Fields inherited from interface com.nimbusds.common.config.LoggableConfiguration

    LOG_CATEGORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    SQLStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, org.infinispan.configuration.cache.AsyncStoreConfiguration asyncConfig)
    Creates a new SQL store configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.infinispan.commons.configuration.attributes.AttributeSet
    Returns the attribute definitions for the SQL store configuration.
    boolean
    Returns the configured create table if missing setting.
    boolean
    Returns the configured create table ignore error setting.
    Returns the configured connection pool reference.
    int
    Returns the configured page limit in SQL queries to select expired records.
    Returns the optional class for executing direct SQL queries against the database.
    Returns the class for transforming between Infinispan entries (key / value pairs and optional metadata) and a corresponding SQL record.
    org.jooq.SQLDialect
    Returns the configured SQL dialect.
    void
    log()
     
     

    Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration

    async, attributes, equals, fetchPersistentState, hashCode, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, toString, transactional, writeOnly

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SQLStoreConfiguration

      public SQLStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, org.infinispan.configuration.cache.AsyncStoreConfiguration asyncConfig)
      Creates a new SQL store configuration.
      Parameters:
      attributes - The configuration attributes. Must not be null.
      asyncConfig - Configuration for the async cache loader.
  • Method Details

    • attributeDefinitionSet

      public static org.infinispan.commons.configuration.attributes.AttributeSet attributeDefinitionSet()
      Returns the attribute definitions for the SQL store configuration.
      Returns:
      The attribute definitions.
    • getRecordTransformerClass

      Returns the class for transforming between Infinispan entries (key / value pairs and optional metadata) and a corresponding SQL record.

      See SQLRecordTransformer.

      Returns:
      The record transformer class.
    • getQueryExecutorClass

      Returns the optional class for executing direct SQL queries against the database.

      See QueryExecutor

      Returns:
      The query executor class, null if not specified.
    • getSQLDialect

      public org.jooq.SQLDialect getSQLDialect()
      Returns the configured SQL dialect.
      Returns:
      The SQL dialect.
    • createTableIfMissing

      public boolean createTableIfMissing()
      Returns the configured create table if missing setting.
      Returns:
      true to create the underlying table(s) if missing, false to skip this check.
    • createTableIgnoreErrors

      public boolean createTableIgnoreErrors()
      Returns the configured create table ignore error setting.
      Returns:
      true to ignore create table errors, false to treat them as fatal.
    • getConnectionPool

      Returns the configured connection pool reference.
      Returns:
      The connection pool reference, null if none.
    • getExpiredQueryPageLimit

      Returns the configured page limit in SQL queries to select expired records.
      Returns:
      The page limit in SQL queries to select expired records.
    • properties

      Specified by:
      properties in interface org.infinispan.configuration.cache.StoreConfiguration
      Overrides:
      properties in class org.infinispan.configuration.cache.AbstractStoreConfiguration
    • log

      public void log()
      Specified by:
      log in interface com.nimbusds.common.config.LoggableConfiguration