## Uses of Interface
org.modeshape.jcr.cache.SessionCache

- Packages that use SessionCache
  Package | Description
  --- | ---
  org.modeshape.jcr |
  org.modeshape.jcr.cache |
  org.modeshape.jcr.cache.document |

- - ### Uses of SessionCache in org.modeshape.jcr

    Classes in org.modeshape.jcr that implement SessionCache
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `JcrSession.SystemSessionCache`

    Methods in org.modeshape.jcr that return SessionCache
    Modifier and Type | Method and Description
    --- | ---
    `SessionCache` | SystemContent.`cache()`

    Methods in org.modeshape.jcr with parameters of type SessionCache
    Modifier and Type | Method and Description
    --- | ---
    `MutableCachedNode` | SystemContent.`recordNewVersion(CachedNode versionableNode, SessionCache cacheForVersionableNode, Path versionHistoryPath, NodeKey originalVersionKey, Collection<Property> versionableProperties, DateTime now, AtomicReference<MutableCachedNode> frozenNodeOutput)` The method efficiently updates the JCR version history and storage with a new version of a node being checked in.
    `void` | JcrSession.SystemSessionCache.`save(SessionCache otherSession, SessionCache.PreSave preSaveOperation)`
    `void` | JcrSession.SystemSessionCache.`save(Set<NodeKey> toBeSaved, SessionCache otherSession, SessionCache.PreSave preSaveOperation)`

    Constructors in org.modeshape.jcr with parameters of type SessionCache
    Constructor and Description
    `JcrSession.SystemSessionCache(SessionCache delegate)`

  - ### Uses of SessionCache in org.modeshape.jcr.cache

    Classes in org.modeshape.jcr.cache that implement SessionCache
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SessionCacheWrapper` A `SessionCache` implementation that wraps another and is suitable to extend and overwrite only those methods that are required.

    Methods in org.modeshape.jcr.cache that return SessionCache
    Modifier and Type | Method and Description
    --- | ---
    `SessionCache` | RepositoryCache.`createSession(ExecutionContext context, String workspaceName, boolean readOnly)` Create a session for the workspace with the given name, using the supplied ExecutionContext for the session.
    `SessionCache` | SessionCacheWrapper.`unwrap()`
    `SessionCache` | SessionCache.`unwrap()`

    Methods in org.modeshape.jcr.cache with parameters of type SessionCache
    Modifier and Type | Method and Description
    --- | ---
    `void` | MutableCachedNode.`addMixin(SessionCache cache, Name mixinName)` Add the supplied mixin type if not already an explicitly referenced.
    `void` | MutableCachedNode.`addReferrer(SessionCache cache, Property property, NodeKey referrerKey, CachedNode.ReferenceType type)` Adds to this node a reference with the given type from the node with the supplied key to this node.
    `MutableCachedNode` | MutableCachedNode.`createChild(SessionCache cache, NodeKey key, Name name, Iterable<Property> properties)` Create a new node as a child of this node with the supplied name and properties.
    `MutableCachedNode` | MutableCachedNode.`createChild(SessionCache cache, NodeKey key, Name name, Property firstProperty, Property... additionalProperties)` Create a new node as a child of this node with the supplied name and properties.
    `void` | MutableCachedNode.`deepClone(SessionCache cache, CachedNode sourceNode, SessionCache sourceCache, String systemWorkspaceKey, Connectors connectors)` Clones into this node all the properties and children (deep clone) from the given source node.
    `Map<NodeKey,NodeKey>` | MutableCachedNode.`deepCopy(SessionCache cache, CachedNode sourceNode, SessionCache sourceCache, String systemWorkspaceKey, Connectors connectors)` Copies into this node all the properties and children (deep copy) from the given source node.
    `Set<Name>` | MutableCachedNode.`getAddedMixins(SessionCache cache)` Get the set of mixin names that were added to this node but not yet saved.
    `String` | MutableCachedNode.`getEtag(SessionCache cache)` Compute an ETag value for this node.
    `void` | RepositoryCache.ContentInitializer.`initialize(SessionCache session, MutableCachedNode parent)`
    `boolean` | MutableCachedNode.`isPropertyModified(SessionCache cache, Name propertyName)` Return whether the property with the supplied name was modified since the session was last saved.
    `boolean` | MutableCachedNode.`isPropertyNew(SessionCache cache, Name propertyName)` Return whether the property with the supplied name was created since the session was last saved.
    `boolean` | MutableCachedNode.`linkChild(SessionCache cache, NodeKey childKey, Name name)` Link the existing node with the supplied key to be appended as a child of this node.
    `void` | MutableCachedNode.`moveChild(SessionCache cache, NodeKey key, MutableCachedNode newParent, Name newName)` Remove the node from being a child of this node and append it as a child of the supplied node.
    `void` | MutableCachedNode.`removeAllProperties(SessionCache cache)` Remove all of the properties from this node.
    `void` | MutableCachedNode.`removeChild(SessionCache cache, NodeKey key)` Remove the node from being a child of this node.
    `void` | MutableCachedNode.`removeMixin(SessionCache cache, Name mixinName)` Remove the supplied mixin type if already an explicitly referenced.
    `void` | MutableCachedNode.`removeProperty(SessionCache cache, Name name)` Remove the property with the given name.
    `void` | MutableCachedNode.`removeReferrer(SessionCache cache, Property property, NodeKey referrerKey, CachedNode.ReferenceType type)` Remove from this node a reference with the given type from the node with the supplied key to this node.
    `void` | MutableCachedNode.`renameChild(SessionCache cache, NodeKey key, Name newName)` Renames the child node.
    `void` | MutableCachedNode.`reorderChild(SessionCache cache, NodeKey key, NodeKey nextNode)` Remove the node from being a child of this node and append it as a child before the supplied node.
    `void` | SessionCacheWrapper.`save(SessionCache otherSession, SessionCache.PreSave preSaveOperation)`
    `void` | SessionCache.`save(SessionCache otherSession, SessionCache.PreSave preSaveOperation)` Saves all changes made within this session and the supplied session, using a single transaction for both.
    `void` | SessionCacheWrapper.`save(Set<NodeKey> toBeSaved, SessionCache otherSession, SessionCache.PreSave preSaveOperation)`
    `void` | SessionCache.`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.
    `void` | MutableCachedNode.`setProperties(SessionCache cache, Iterable<Property> properties)` Set the properties on this node.
    `void` | MutableCachedNode.`setProperties(SessionCache cache, Iterator<Property> properties)` Set the properties on this node.
    `void` | MutableCachedNode.`setProperty(SessionCache cache, Property property)` Set the property with the given name.
    `void` | MutableCachedNode.`setPropertyIfUnchanged(SessionCache cache, Property property)` Set the given property only if it has not been set previously and therefore appear as changed.
    `void` | MutableCachedNode.`setReference(SessionCache cache, Property property, SessionCache systemCache)` Sets a property of type reference in the case when there's an active system cache and the property is a reference towards a transient node from the system cache.

    Constructors in org.modeshape.jcr.cache with parameters of type SessionCache
    Constructor and Description
    `SessionCacheWrapper(SessionCache delegate)`

  - ### Uses of SessionCache in org.modeshape.jcr.cache.document

    Classes in org.modeshape.jcr.cache.document that implement SessionCache
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractSessionCache`
    `class` | `ReadOnlySessionCache` A read-only `SessionCache` implementation.
    `class` | `WritableSessionCache` A writable `SessionCache` implementation capable of making transient changes and saving them.

    Fields in org.modeshape.jcr.cache.document declared as SessionCache
    Modifier and Type | Field and Description
    --- | ---
    `protected SessionCache` | SessionNode.DeepCopy.`sourceCache`

    Methods in org.modeshape.jcr.cache.document that return SessionCache
    Modifier and Type | Method and Description
    --- | ---
    `SessionCache` | AbstractSessionCache.`unwrap()`

    Methods in org.modeshape.jcr.cache.document with parameters of type SessionCache
    Modifier and Type | Method and Description
    --- | ---
    `void` | SessionNode.`addMixin(SessionCache cache, Name mixinName)`
    `protected void` | SessionNode.`addOrRemoveReferrers(SessionCache cache, SessionCache systemCache, Property property, Iterator<?> referenceValuesIterator, boolean add)`
    `void` | SessionNode.`addReferrer(SessionCache cache, Property property, NodeKey referrerKey, CachedNode.ReferenceType type)`
    `MutableCachedNode` | SessionNode.`createChild(SessionCache cache, NodeKey key, Name name, Iterable<Property> properties)`
    `MutableCachedNode` | SessionNode.`createChild(SessionCache cache, NodeKey key, Name name, Property firstProperty, Property... additionalProperties)`
    `void` | SessionNode.`deepClone(SessionCache cache, CachedNode sourceNode, SessionCache sourceCache, String systemWorkspaceKey, Connectors connectors)`
    `Map<NodeKey,NodeKey>` | SessionNode.`deepCopy(SessionCache cache, CachedNode sourceNode, SessionCache sourceCache, String systemWorkspaceKey, Connectors connectors)`
    `Set<Name>` | SessionNode.`getAddedMixins(SessionCache cache)`
    `String` | SessionNode.`getEtag(SessionCache cache)`
    `boolean` | SessionNode.`isPropertyModified(SessionCache cache, Name propertyName)`
    `boolean` | SessionNode.`isPropertyNew(SessionCache cache, Name propertyName)`
    `boolean` | SessionNode.`linkChild(SessionCache cache, NodeKey childKey, Name name)`
    `void` | SessionNode.`moveChild(SessionCache cache, NodeKey key, MutableCachedNode newParent, Name newName)`
    `void` | SessionNode.`removeAllProperties(SessionCache cache)`
    `protected void` | SessionNode.`removeAllReferences(SessionCache cache)`
    `void` | SessionNode.`removeChild(SessionCache cache, NodeKey key)`
    `void` | SessionNode.`removeMixin(SessionCache cache, Name mixinName)`
    `void` | SessionNode.`removeProperty(SessionCache cache, Name name)`
    `void` | SessionNode.`removeReferrer(SessionCache cache, Property property, NodeKey referrerKey, CachedNode.ReferenceType type)`
    `void` | SessionNode.`renameChild(SessionCache cache, NodeKey key, Name newName)`
    `void` | SessionNode.`reorderChild(SessionCache cache, NodeKey key, NodeKey nextNode)`
    `void` | WritableSessionCache.`save(SessionCache other, SessionCache.PreSave preSaveOperation)`
    `void` | ReadOnlySessionCache.`save(SessionCache otherSession, SessionCache.PreSave preSaveOperation)`
    `void` | WritableSessionCache.`save(Set<NodeKey> toBeSaved, SessionCache other, SessionCache.PreSave preSaveOperation)` This method saves the changes made by both sessions within a single transaction.
    `void` | ReadOnlySessionCache.`save(Set<NodeKey> toBeSaved, SessionCache otherSession, SessionCache.PreSave preSaveOperation)`
    `void` | SessionNode.`setProperties(SessionCache cache, Iterable<Property> properties)`
    `void` | SessionNode.`setProperties(SessionCache cache, Iterator<Property> properties)`
    `void` | SessionNode.`setProperty(SessionCache cache, Property property)`
    `void` | SessionNode.`setPropertyIfUnchanged(SessionCache cache, Property property)`
    `void` | SessionNode.`setReference(SessionCache cache, Property property, SessionCache systemCache)`

    Constructors in org.modeshape.jcr.cache.document with parameters of type SessionCache
    Constructor and Description
    `SessionNode.DeepClone(SessionNode targetNode, WritableSessionCache cache, CachedNode sourceNode, SessionCache sourceCache, String systemWorkspaceKey, Connectors connectors)`
    `SessionNode.DeepCopy(SessionNode targetNode, WritableSessionCache cache, CachedNode sourceNode, SessionCache sourceCache, String systemWorkspaceKey, Connectors connectors)`

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