|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.loader.AbstractCacheLoader
org.jboss.cache.loader.AdjListJDBCCacheLoader
org.jboss.cache.loader.JDBCCacheLoader
@ThreadSafe public class JDBCCacheLoader
JDBC implementation of AdjListJDBCCacheLoader.
Represents a faster alternative than JDBCCacheLoaderOld and relies on the same database structrure.
It is backward compatible with data created by existing JDBCCacheLoaderOld implemetation.
All configuration elements described there JDBCCacheLoaderOld also apply for this
implementation.
| Field Summary |
|---|
| Fields inherited from class org.jboss.cache.loader.AdjListJDBCCacheLoader |
|---|
cf, driverName, lock, NULL_NODE_IN_ROW |
| Fields inherited from class org.jboss.cache.loader.AbstractCacheLoader |
|---|
cache, regionManager, transactions |
| Constructor Summary | |
|---|---|
JDBCCacheLoader()
|
|
| Method Summary | |
|---|---|
CacheLoaderConfig.IndividualCacheLoaderConfig |
getConfig()
Gets the configuration. |
protected org.apache.commons.logging.Log |
getLogger()
|
int |
getNodeCount()
Returns a number representing the count of persisted children. |
protected void |
getNodeDataList(Fqn fqn,
List<NodeData> list)
Subscribes to contract. |
protected AdjListJDBCCacheLoaderConfig |
processConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
Builds a AdjListJDBCCacheLoaderConfig based on the supplied base config. |
void |
put(Fqn name,
Map attributes)
As per interface's contract. |
Object |
put(Fqn name,
Object key,
Object value)
As per interface's contract. |
void |
remove(Fqn fqn)
As per interface's contrect. |
void |
start()
Start is overwritten for the sake of backward compatibility only. |
| Methods inherited from class org.jboss.cache.loader.AdjListJDBCCacheLoader |
|---|
commit, exists, get, getDriverName, getChildrenNames, insertNode, loadNode, marshall, prepare, remove, removeData, reportAndRethrowError, rollback, safeClose, safeClose, safeClose, setConfig, stop, tableExists, unmarshall, updateNode |
| Methods inherited from class org.jboss.cache.loader.AbstractCacheLoader |
|---|
create, destroy, doMarshall, doUnmarshall, getMarshaller, loadEntireState, loadState, loadStateHelper, put, put, regionAwareMarshall, regionAwareUnmarshall, setCache, setRegionManager, storeEntireState, storeState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDBCCacheLoader()
| Method Detail |
|---|
protected AdjListJDBCCacheLoaderConfig processConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
processConfig in class AdjListJDBCCacheLoader
public Object put(Fqn name,
Object key,
Object value)
throws Exception
Exception
public void put(Fqn name,
Map attributes)
throws Exception
name - The fully qualified name of the nodeattributes - A Map of attributes. Can be null
Exception
public void remove(Fqn fqn)
throws Exception
fqn - the Fqn of the node
Exception
protected void getNodeDataList(Fqn fqn,
List<NodeData> list)
throws Exception
getNodeDataList in class AbstractCacheLoaderExceptionprotected org.apache.commons.logging.Log getLogger()
getLogger in class AdjListJDBCCacheLoader
public void start()
throws Exception
start in interface CacheLoaderstart in class AdjListJDBCCacheLoaderException
public int getNodeCount()
throws Exception
Exceptionpublic CacheLoaderConfig.IndividualCacheLoaderConfig getConfig()
CacheLoader
CacheLoaderConfig.IndividualCacheLoaderConfig object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||