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
Fields Modifier and Type Field Description Map<BaseDocument<T>,List<BaseDocument.BlobWriteInfo<T>>>
blobWriteInfos
Set<String>
xpaths
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlobWriteContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush(Document baseDoc)
Flushes recorded write operations.Set<String>
getChanges()
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 Detail
-
blobWriteInfos
public final Map<BaseDocument<T extends StateAccessor>,List<BaseDocument.BlobWriteInfo<T extends StateAccessor>>> blobWriteInfos
-
-
Method Detail
-
recordChange
public void recordChange(String xpath)
Records a change to a given xpath.
-
recordBlob
public void recordBlob(BaseDocument<T> doc, T state, Blob blob, String xpath)
Records a blob update.
-
getChanges
public Set<String> getChanges()
Description copied from interface:Document.WriteContext
Gets the recorded changed xpaths.- Specified by:
getChanges
in interfaceDocument.WriteContext
-
flush
public void flush(Document baseDoc)
Description copied from interface:Document.WriteContext
Flushes recorded write operations.- Specified by:
flush
in interfaceDocument.WriteContext
- Parameters:
baseDoc
- the base document being written
-
-