|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.config.ConfigurationComponent org.jboss.cache.config.PluggableConfigurationComponent org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig org.jboss.cache.loader.AdjListJDBCCacheLoaderConfig org.jboss.cache.loader.JDBCCacheLoaderConfig
public class JDBCCacheLoaderConfig
Builds the different SQLs needed by JDBCCacheLoader.
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 |
---|
connectionFactoryClass, createTable, createTableDDL, datasourceName, deleteAllSql, deleteNodeSql, driverClass, dropTable, dropTableDDL, existsSql, fqnColumn, fqnType, insertNodeSql, jdbcPassword, jdbcURL, jdbcUser, nodeColumn, nodeType, parentColumn, primaryKey, selectChildFqnsSql, selectChildNamesSql, selectNodeSql, table, updateNodeSql, updateTableSql |
Fields inherited from class org.jboss.cache.config.PluggableConfigurationComponent |
---|
className, properties |
Fields inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
log |
Constructor Summary | |
---|---|
JDBCCacheLoaderConfig()
|
|
JDBCCacheLoaderConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
|
Method Summary | |
---|---|
long |
getBatchSize()
The statement will be flushed after batching batchSize operations. |
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. |
String |
getSqlConcat()
Deprecated. |
boolean |
isBatchEnabled()
If batch is enabled certain operations (e.g. |
void |
setNodeCountSql(String nodeCountSql)
|
void |
setProperties(Properties props)
|
void |
setRecursiveChildrenSql(String recursiveChildrenSql)
|
void |
setSqlConcat(String sqlConcat)
Deprecated. |
Methods inherited from class org.jboss.cache.config.PluggableConfigurationComponent |
---|
getClassName, getProperties, setClassName, setProperties |
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 |
---|
public JDBCCacheLoaderConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
public JDBCCacheLoaderConfig()
Method Detail |
---|
public void setProperties(Properties props)
setProperties
in class AdjListJDBCCacheLoaderConfig
public String getDeleteNodeSql()
getDeleteNodeSql
in class AdjListJDBCCacheLoaderConfig
public String getRecursiveChildrenSql()
public void setRecursiveChildrenSql(String recursiveChildrenSql)
public String getNodeCountSql()
public void setNodeCountSql(String nodeCountSql)
@Deprecated public String getSqlConcat()
@Deprecated public void setSqlConcat(String sqlConcat)
public boolean isBatchEnabled()
Statement.addBatch(String)
approach for insertig data into the database. This normally brings significant performance improvements.
public long getBatchSize()
isBatchEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |