protected class JcrSession.SystemSessionCache extends SessionCacheWrapper
SessionCache.PreSave, SessionCache.SaveContext
Modifier | Constructor and Description |
---|---|
protected |
SystemSessionCache(SessionCache delegate) |
Modifier and Type | Method and Description |
---|---|
void |
save()
Saves all changes made within this session.
|
void |
save(SessionCache otherSession,
SessionCache.PreSave preSaveOperation)
Saves all changes made within this session and the supplied session, using a single transaction for both.
|
void |
save(Set<NodeKey> toBeSaved,
SessionCache otherSession,
SessionCache.PreSave preSaveOperation)
Saves all of this session's changes that were made at or below the specified path.
|
String |
toString() |
addContextData, checkForTransaction, clear, clear, createNodeKey, createNodeKey, createNodeKeyWithIdentifier, createNodeKeyWithSource, destroy, getAllNodeKeys, getAllNodeKeysAtAndBelow, getChangedNodeKeys, getChangedNodeKeysAtOrBelow, getContext, getNode, getNode, getNodeKeysAtAndBelow, getRootKey, getWorkspace, hasChanges, isDestroyed, isReadOnly, mutable, unwrap
protected SystemSessionCache(SessionCache delegate)
public void save()
SessionCache
save
in interface SessionCache
save
in class SessionCacheWrapper
public void save(SessionCache otherSession, SessionCache.PreSave preSaveOperation)
SessionCache
save
in interface SessionCache
save
in class SessionCacheWrapper
otherSession
- another session whose changes should be saved with this session's changes; may not be nullpreSaveOperation
- the set of operations to run against the new and changed nodes prior to saving; may be nullpublic void save(Set<NodeKey> toBeSaved, SessionCache otherSession, SessionCache.PreSave preSaveOperation)
SessionCache
Item.save()
.save
in interface SessionCache
save
in class SessionCacheWrapper
toBeSaved
- the set of keys identifying the nodes whose changes should be saved; may not be nullotherSession
- another session whose changes should be saved with this session's changes; may not be nullpreSaveOperation
- the set of operations to run against the new and changed nodes prior to saving; may be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.