org.infinispan.loaders.jdbc
Class AbstractJdbcCacheStoreConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.loaders.AbstractCacheLoaderConfig
              extended by org.infinispan.loaders.AbstractCacheStoreConfig
                  extended by org.infinispan.loaders.LockSupportCacheStoreConfig
                      extended by org.infinispan.loaders.jdbc.AbstractJdbcCacheStoreConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable, CacheLoaderConfig, CacheStoreConfig
Direct Known Subclasses:
AbstractNonDelegatingJdbcCacheStoreConfig, JdbcMixedCacheStoreConfig

public abstract class AbstractJdbcCacheStoreConfig
extends LockSupportCacheStoreConfig

This is an abstract configuration class containing common elements for all JDBC cache store types.

Version:
4.1
Author:
Manik Surtani
See Also:
Serialized Form

Field Summary
protected  ConnectionFactoryConfig connectionFactoryConfig
           
 
Fields inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
DEFAULT_CONCURRENCY_LEVEL, DEFAULT_LOCK_ACQUISITION_TIMEOUT
 
Fields inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Fields inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
cacheLoaderClassName, properties
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
AbstractJdbcCacheStoreConfig()
           
 
Method Summary
 AbstractJdbcCacheStoreConfig clone()
           
 ConnectionFactoryConfig getConnectionFactoryConfig()
           
 void setConnectionFactoryClass(String connectionFactoryClass)
           
 void setConnectionUrl(String connectionUrl)
          Jdbc connection string for connecting to the database.
 void setDatasourceJndiLocation(String location)
           
 void setDriverClass(String driverClassName)
          The name of the driver used for connecting to the database.
 void setPassword(String password)
          Database username's password.
 void setUserName(String userName)
          Database username.
 String toString()
           
 
Methods inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel
 
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
accept, asyncStore, equals, equalsExcludingProperties, fetchPersistentState, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, getTypedProperties, hashCode, hashCodeExcludingProperties, ignoreModifications, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, purgeOnStartup, purgerThreads, purgeSynchronously, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, setTypedProperties, singletonStore
 
Methods inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
getCacheLoaderClassName, getClassLoader, getProperties, setCacheLoaderClassName, setProperties, setProperties
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.loaders.CacheLoaderConfig
getCacheLoaderClassName, getClassLoader, setCacheLoaderClassName
 

Field Detail

connectionFactoryConfig

protected ConnectionFactoryConfig connectionFactoryConfig
Constructor Detail

AbstractJdbcCacheStoreConfig

public AbstractJdbcCacheStoreConfig()
Method Detail

setConnectionFactoryClass

public void setConnectionFactoryClass(String connectionFactoryClass)

getConnectionFactoryConfig

public ConnectionFactoryConfig getConnectionFactoryConfig()

setConnectionUrl

public void setConnectionUrl(String connectionUrl)
Jdbc connection string for connecting to the database. Mandatory.


setUserName

public void setUserName(String userName)
Database username.


setDatasourceJndiLocation

public void setDatasourceJndiLocation(String location)

setPassword

public void setPassword(String password)
Database username's password.


setDriverClass

public void setDriverClass(String driverClassName)
The name of the driver used for connecting to the database. Mandatory, will be loaded before initiating the first connection.


clone

public AbstractJdbcCacheStoreConfig clone()
Specified by:
clone in interface CloneableConfigurationComponent
Specified by:
clone in interface CacheLoaderConfig
Overrides:
clone in class AbstractCacheStoreConfig

toString

public String toString()
Overrides:
toString in class LockSupportCacheStoreConfig

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.