protected static class BaseDocument.BlobWriteContext<T extends StateAccessor> extends Object implements Document.WriteContext
Modifier and Type | Field and Description |
---|---|
Map<BaseDocument<T>,List<BaseDocument.BlobWriteInfo<T>>> |
blobWriteInfos |
Set<String> |
xpaths |
Modifier | Constructor and Description |
---|---|
protected |
BlobWriteContext() |
Modifier and Type | Method and 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.
|
public final Map<BaseDocument<T extends StateAccessor>,List<BaseDocument.BlobWriteInfo<T extends StateAccessor>>> blobWriteInfos
protected BlobWriteContext()
public void recordChange(String xpath)
public void recordBlob(BaseDocument<T> doc, T state, Blob blob, String xpath)
public Set<String> getChanges()
Document.WriteContext
getChanges
in interface Document.WriteContext
public void flush(Document baseDoc)
Document.WriteContext
flush
in interface Document.WriteContext
baseDoc
- the base document being writtenCopyright © 2018 Nuxeo. All rights reserved.