All Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
protected void |
addChildrenToBuckets(EditableDocument parentDoc,
ChildReferences appended) |
protected void |
addFederatedSegment(EditableDocument document,
String externalNodeKey,
String name) |
protected void |
addInternalProperties(EditableDocument doc,
Map<String,Object> properties) |
void |
addPropertyValues(EditableDocument document,
Name propertyName,
boolean isMultiple,
Collection<?> values,
Set<BinaryKey> unusedBinaryKeys,
Set<BinaryKey> usedBinaryKeys) |
protected String |
bucketKey(String parentKey,
String bucketId) |
void |
changeChildren(EditableDocument document,
SessionNode.ChangedChildren changedChildren,
ChildReferences appended) |
void |
changeReferrers(EditableDocument document,
SessionNode.ReferrerChanges changes) |
EditableDocument |
childReferenceDocument(NodeKey key,
Name name) |
protected ChildReference |
childReferenceFrom(Object value) |
int |
countProperties(Document document) |
protected void |
decrementBinaryReferenceCount(Object fieldValue,
Set<BinaryKey> unusedBinaryKeys,
Set<BinaryKey> usedBinaryKeys)
Decrement the reference count for the binary value.
|
EditableDocument |
fromChildReference(ChildReference ref) |
Set<NodeKey> |
getAdditionalParentKeys(Document document) |
ChildReferences |
getChildReferences(WorkspaceCache cache,
Document document) |
protected ChildReferences |
getChildReferencesFromBlock(Document block,
boolean allowsSNS)
Reads the children of the given block and returns a ChildReferences instance.
|
DocumentTranslator.ChildReferencesInfo |
getChildReferencesInfo(Document document) |
String |
getKey(Document document) |
Set<String> |
getMixinTypeNames(Document document) |
Set<Name> |
getMixinTypes(Document document) |
NameFactory |
getNameFactory() |
protected NodeTypes |
getNodeTypes(WorkspaceCache cache) |
NodeKey |
getParentKey(Document document,
String primaryWorkspaceKey,
String secondaryWorkspaceKey)
Obtain the preferred key for the parent of this node.
|
Name |
getPrimaryType(Document document) |
String |
getPrimaryTypeName(Document document) |
void |
getProperties(Document document,
Map<Name,Property> result) |
Property |
getProperty(Document document,
Name propertyName) |
Property |
getProperty(Document document,
String propertyName) |
PropertyFactory |
getPropertyFactory() |
ReferenceFactory |
getReferenceFactory() |
Map<NodeKey,Integer> |
getReferrerCounts(Document document,
CachedNode.ReferenceType type) |
Set<NodeKey> |
getReferrers(Document document,
CachedNode.ReferenceType type) |
ValueFactory<String> |
getStringFactory() |
boolean |
hasProperties(Document document) |
boolean |
hasProperty(Document document,
Name propertyName) |
protected void |
incrementBinaryReferenceCount(BinaryKey binaryKey,
Set<BinaryKey> unusedBinaryKeys,
Set<BinaryKey> usedBinaryKeys)
Increment the reference count for the stored binary value with the supplied SHA-1 hash.
|
protected long |
insertChildren(EditableDocument document,
Map<NodeKey,SessionNode.Insertions> insertionsByBeforeKey,
Set<NodeKey> removals,
Map<NodeKey,Name> newNames) |
protected boolean |
isCacheable(Document document) |
protected boolean |
isFederatedDocument(Document document) |
boolean |
isLocked(EditableDocument doc)
Checks if the given document is already locked
|
protected boolean |
isQueryable(Document document) |
protected String |
keyForBinaryReferenceDocument(String sha1) |
protected BucketedChildReferences.Bucket |
loadBucket(String parentKey,
org.modeshape.jcr.cache.document.BucketId bucketId) |
protected void |
persistBucketRemovalChanges(NodeKey parentKey,
Map<org.modeshape.jcr.cache.document.BucketId,Set<NodeKey>> removalsPerBucket) |
protected Map<org.modeshape.jcr.cache.document.BucketId,Set<NodeKey>> |
preRemoveChildrenFromBuckets(WorkspaceCache wsCache,
EditableDocument parentDoc,
Set<NodeKey> removals) |
protected Property |
propertyFor(Name propertyName,
Object fieldValue) |
protected void |
removeAllBucketsFromUnorderedCollection(NodeKey parentDocKey) |
protected void |
removeFederatedSegments(EditableDocument federatedDocument,
Set<String> externalNodeKeys) |
protected void |
removeInteralProperties(EditableDocument doc,
Set<String> properties) |
Property |
removeProperty(EditableDocument document,
Name propertyName,
Set<BinaryKey> unusedBinaryKeys,
Set<BinaryKey> usedBinaryKeys) |
void |
removePropertyValues(EditableDocument document,
Name propertyName,
Collection<?> values,
Set<BinaryKey> unusedBinaryKeys,
Set<BinaryKey> usedBinaryKeys) |
protected List<Path.Segment> |
segmentsFrom(List<?> segmentValues) |
void |
setCacheable(EditableDocument document,
boolean cacheable)
Marks the given document as cacheable, by setting a flag.
|
void |
setKey(EditableDocument document,
NodeKey key) |
void |
setKey(EditableDocument document,
String key) |
void |
setParents(EditableDocument document,
NodeKey parent,
NodeKey oldParent,
SessionNode.ChangedAdditionalParents additionalParents) |
void |
setProperty(EditableDocument document,
Property property,
Set<BinaryKey> unusedBinaryKeys,
Set<BinaryKey> usedBinaryKeys) |
void |
setQueryable(EditableDocument document,
boolean queryable)
Marks the given document as queryable, by setting a flag.
|
Object |
valueFromDocument(Object value) |
protected Object |
valueToDocument(Object value,
Set<BinaryKey> unusedBinaryKeys,
Set<BinaryKey> usedBinaryKeys) |
DocumentTranslator |
withLargeStringSize(long largeStringSize) |