All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.persistence.sql.configuration.AbstractSchemaJdbcConfiguration Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev05
Show newest version
package org.infinispan.persistence.sql.configuration;

import org.infinispan.commons.configuration.attributes.AttributeSet;
import org.infinispan.configuration.cache.AsyncStoreConfiguration;
import org.infinispan.configuration.parsing.Parser;
import org.infinispan.persistence.jdbc.common.configuration.AbstractJdbcStoreConfiguration;
import org.infinispan.persistence.jdbc.common.configuration.ConnectionFactoryConfiguration;

public class AbstractSchemaJdbcConfiguration extends AbstractJdbcStoreConfiguration {
   static final String NAMESPACE = Parser.NAMESPACE + "store:sql:";

   private final SchemaJdbcConfiguration schemaJdbcConfiguration;

   protected AbstractSchemaJdbcConfiguration(AttributeSet attributes, AsyncStoreConfiguration async,
         ConnectionFactoryConfiguration connectionFactory, SchemaJdbcConfiguration schemaJdbcConfiguration) {
      super(attributes, async, connectionFactory);

      this.schemaJdbcConfiguration = schemaJdbcConfiguration;
   }

   public SchemaJdbcConfiguration schema() {
      return schemaJdbcConfiguration;
   }

   /**
    * @deprecated use {@link #schema()} instead.
    */
   @Deprecated(forRemoval = true)
   public SchemaJdbcConfiguration getSchemaJdbcConfiguration() {
      return schemaJdbcConfiguration;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy