org.jboss.cache.loader
Class JDBCCacheLoaderConfig

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
          extended by org.jboss.cache.loader.AdjListJDBCCacheLoaderConfig
              extended by org.jboss.cache.loader.JDBCCacheLoaderConfig
All Implemented Interfaces:
Serializable, Cloneable

public class JDBCCacheLoaderConfig
extends AdjListJDBCCacheLoaderConfig

Builds the different SQLs needed by JDBCCacheLoader.

Version:
1.0
Author:
Mircea.Markus@iquestint.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
 
Field Summary
 
Fields inherited from class org.jboss.cache.loader.AdjListJDBCCacheLoaderConfig
fqnColumn, nodeColumn, table
 
Constructor Summary
JDBCCacheLoaderConfig()
           
JDBCCacheLoaderConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
           
 
Method Summary
 String getDeleteNodeSql()
          Returns the sql string for removing a node and all its children.
 String getNodeCountSql()
          Returns an sql that will count all the persisted node.
 String getRecursiveChildrenSql()
          Returns an sql that will return a node and all its children.
 void setProperties(Properties props)
           
 
Methods inherited from class org.jboss.cache.loader.AdjListJDBCCacheLoaderConfig
clone, equals, getConnectionFactoryClass, getCreateTable, getCreateTableDDL, getDatasourceName, getDeleteAllSql, getDriverClass, getDropTable, getDropTableDDL, getInsertNodeSql, getJdbcPassword, getJdbcURL, getJdbcUser, getSelectChildFqnsSql, getSelectChildNamesSql, getSelectNodeSql, getTable, getUpdateNodeSql, getUpdateTableSql, hashCode, setConnectionFactoryClass, setCreateTable, setCreateTableDDL, setDatasourceName, setDeleteAllSql, setDeleteNodeSql, setDriverClass, setDropTable, setDropTableDDL, setInsertNodeSql, setJdbcPassword, setJdbcURL, setJdbcUser, setSelectChildFqnsSql, setSelectChildNamesSql, setSelectNodeSql, setTable, setUpdateNodeSql, setUpdateTableSql
 
Methods inherited from class org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
equalsExcludingProperties, getCacheLoader, getClassName, getProperties, getSingletonStoreConfig, hashCodeExcludingProperties, isAsync, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, populateFromBaseConfig, setAsync, setCacheLoader, setClassName, setFetchPersistentState, setIgnoreModifications, setProperties, setPurgeOnStartup, setSingletonStoreConfig, toString
 
Methods inherited from class org.jboss.cache.config.ConfigurationComponent
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCCacheLoaderConfig

public JDBCCacheLoaderConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)

JDBCCacheLoaderConfig

public JDBCCacheLoaderConfig()
Method Detail

setProperties

public void setProperties(Properties props)
Overrides:
setProperties in class AdjListJDBCCacheLoaderConfig

getDeleteNodeSql

public String getDeleteNodeSql()
Returns the sql string for removing a node and all its children.

Overrides:
getDeleteNodeSql in class AdjListJDBCCacheLoaderConfig

getRecursiveChildrenSql

public String getRecursiveChildrenSql()
Returns an sql that will return a node and all its children.


getNodeCountSql

public String getNodeCountSql()
Returns an sql that will count all the persisted node.



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