org.jboss.portal.cms.hibernate.state
Class PortalCMSCacheLoader
java.lang.Object
org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader
public class PortalCMSCacheLoader
- extends java.lang.Object
Method Summary |
void |
commit(java.lang.Object tx)
|
void |
create()
|
void |
destroy()
|
boolean |
exists(Fqn fqn)
|
java.util.Map |
get(Fqn fqn)
|
java.util.Set |
getChildrenNames(Fqn fqn)
|
byte[] |
loadEntireState()
|
static java.lang.String |
parseNodeName(java.lang.String id)
|
void |
prepare(java.lang.Object tx,
java.util.List modifications,
boolean one_phase)
|
void |
put(Fqn fqn,
java.util.Map attributes)
|
java.lang.Object |
put(Fqn fqn,
java.lang.Object key,
java.lang.Object value)
semantically, if the fqn node does not exist, the entire node needs to be created.. |
void |
put(java.util.List modifications)
|
void |
remove(Fqn fqn)
|
java.lang.Object |
remove(Fqn fqn,
java.lang.Object key)
|
void |
removeData(Fqn fqn)
|
void |
rollback(java.lang.Object tx)
|
void |
setCache(TreeCache cache)
|
void |
setConfig(java.util.Properties properties)
|
void |
start()
|
void |
stop()
|
void |
storeEntireState(byte[] arg0)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSP_PROP_NODE
public static final java.lang.String WSP_PROP_NODE
- See Also:
- Constant Field Values
VERSION_PROP_NODE
public static final java.lang.String VERSION_PROP_NODE
- See Also:
- Constant Field Values
WSP_NODE_NODE
public static final java.lang.String WSP_NODE_NODE
- See Also:
- Constant Field Values
VERSION_NODE_NODE
public static final java.lang.String VERSION_NODE_NODE
- See Also:
- Constant Field Values
WSP_REF_NODE
public static final java.lang.String WSP_REF_NODE
- See Also:
- Constant Field Values
VERSION_REF_NODE
public static final java.lang.String VERSION_REF_NODE
- See Also:
- Constant Field Values
PortalCMSCacheLoader
public PortalCMSCacheLoader()
setConfig
public void setConfig(java.util.Properties properties)
setCache
public void setCache(TreeCache cache)
getChildrenNames
public java.util.Set getChildrenNames(Fqn fqn)
throws java.lang.Exception
- Throws:
java.lang.Exception
exists
public boolean exists(Fqn fqn)
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public java.util.Map get(Fqn fqn)
throws java.lang.Exception
- Throws:
java.lang.Exception
put
public java.lang.Object put(Fqn fqn,
java.lang.Object key,
java.lang.Object value)
throws java.lang.Exception
- semantically, if the fqn node does not exist, the entire node needs to be created.. In this cacheLoader's case,
the node not existing in the database is not an option. that scenario never happens
returns the oldValue if its found or a new value is created
- Throws:
java.lang.Exception
put
public void put(Fqn fqn,
java.util.Map attributes)
throws java.lang.Exception
- Throws:
java.lang.Exception
put
public void put(java.util.List modifications)
throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public java.lang.Object remove(Fqn fqn,
java.lang.Object key)
throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public void remove(Fqn fqn)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeData
public void removeData(Fqn fqn)
throws java.lang.Exception
- Throws:
java.lang.Exception
prepare
public void prepare(java.lang.Object tx,
java.util.List modifications,
boolean one_phase)
throws java.lang.Exception
- Throws:
java.lang.Exception
commit
public void commit(java.lang.Object tx)
throws java.lang.Exception
- Throws:
java.lang.Exception
rollback
public void rollback(java.lang.Object tx)
loadEntireState
public byte[] loadEntireState()
throws java.lang.Exception
- Throws:
java.lang.Exception
storeEntireState
public void storeEntireState(byte[] arg0)
throws java.lang.Exception
- Throws:
java.lang.Exception
create
public void create()
throws java.lang.Exception
- Throws:
java.lang.Exception
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
destroy
public void destroy()
parseNodeName
public static java.lang.String parseNodeName(java.lang.String id)