Package org.nuxeo.ecm.core.storage
Class BaseDocument.BlobWriteContext<T extends StateAccessor>
java.lang.Object
org.nuxeo.ecm.core.storage.BaseDocument.BlobWriteContext<T>
- All Implemented Interfaces:
Document.WriteContext
- Enclosing class:
- BaseDocument<T extends StateAccessor>
protected static class BaseDocument.BlobWriteContext<T extends StateAccessor>
extends Object
implements Document.WriteContext
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Flushes recorded write operations.Gets the recorded changed xpaths.void
recordBlob
(BaseDocument<T> doc, T state, Blob blob, String xpath) Records a blob update.void
recordChange
(String xpath) Records a change to a given xpath.
-
Field Details
-
blobWriteInfos
public final Map<BaseDocument<T extends StateAccessor>,List<BaseDocument.BlobWriteInfo<T extends StateAccessor>>> blobWriteInfos -
xpaths
-
-
Constructor Details
-
BlobWriteContext
protected BlobWriteContext()
-
-
Method Details
-
recordChange
Records a change to a given xpath. -
recordBlob
Records a blob update. -
getChanges
Description copied from interface:Document.WriteContext
Gets the recorded changed xpaths.- Specified by:
getChanges
in interfaceDocument.WriteContext
-
flush
Description copied from interface:Document.WriteContext
Flushes recorded write operations.- Specified by:
flush
in interfaceDocument.WriteContext
- Parameters:
baseDoc
- the base document being written
-