Class 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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.infinispan.commons.configuration.attributes.AttributeSet attributeDefinitionSet()
      Returns the attribute definitions for the SQL store configuration.
      boolean createTableIfMissing()
      Returns the configured create table if missing setting.
      boolean createTableIgnoreErrors()
      Returns the configured create table ignore error setting.
      java.lang.String getConnectionPool()
      Returns the configured connection pool reference.
      int getExpiredQueryPageLimit()
      Returns the configured page limit in SQL queries to select expired records.
      java.lang.Class getQueryExecutorClass()
      Returns the optional class for executing direct SQL queries against the database.
      java.lang.Class getRecordTransformerClass()
      Returns the class for transforming between Infinispan entries (key / value pairs and optional metadata) and a corresponding SQL record.
      org.jooq.SQLDialect getSQLDialect()
      Returns the configured SQL dialect.
      void log()  
      java.util.Properties properties()  
      • 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 Detail

      • 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 Detail

      • attributeDefinitionSet

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

        public java.lang.Class 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

        public java.lang.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

        public java.lang.String getConnectionPool()
        Returns the configured connection pool reference.
        Returns:
        The connection pool reference, null if none.
      • getExpiredQueryPageLimit

        public int 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

        public java.util.Properties 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