protected static class BaseDocument.BlobWriteContext<T extends StateAccessor> extends Object implements Document.WriteContext
Modifier and Type | Field and Description |
---|---|
Map<BaseDocument<T>,List<org.apache.commons.lang3.tuple.Pair<T,Blob>>> |
blobWriteInfosPerDoc |
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(T state,
Blob blob,
BaseDocument<T> doc)
Records a blob update.
|
void |
recordChange(String xpath)
Records a change to a given xpath.
|
public final Map<BaseDocument<T extends StateAccessor>,List<org.apache.commons.lang3.tuple.Pair<T extends StateAccessor,Blob>>> blobWriteInfosPerDoc
protected BlobWriteContext()
public void recordChange(String xpath)
public void recordBlob(T state, Blob blob, BaseDocument<T> doc)
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 © 2015 Nuxeo SA. All rights reserved.