Package org.nuxeo.ecm.core.storage
Class BaseDocument.StateBlobAccessor
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.BaseDocument.StateBlobAccessor
-
- All Implemented Interfaces:
Document.BlobAccessor
- Enclosing class:
- BaseDocument<T extends StateAccessor>
protected class BaseDocument.StateBlobAccessor extends Object implements Document.BlobAccessor
-
-
Constructor Summary
Constructors Constructor Description StateBlobAccessor(Collection<String> path, T state, Runnable markDirty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobgetBlob()Gets the blob.StringgetXPath()Gets the blob's xpath.voidsetBlob(Blob blob, boolean gcOldBlob)Sets the blob.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.model.Document.BlobAccessor
setBlob
-
-
-
-
Field Detail
-
path
protected final Collection<String> path
-
state
protected final T extends StateAccessor state
-
markDirty
protected final Runnable markDirty
-
-
Constructor Detail
-
StateBlobAccessor
public StateBlobAccessor(Collection<String> path, T state, Runnable markDirty)
-
-
Method Detail
-
getXPath
public String getXPath()
Description copied from interface:Document.BlobAccessorGets the blob's xpath.- Specified by:
getXPathin interfaceDocument.BlobAccessor
-
getBlob
public Blob getBlob() throws PropertyException
Description copied from interface:Document.BlobAccessorGets the blob.- Specified by:
getBlobin interfaceDocument.BlobAccessor- Throws:
PropertyException
-
setBlob
public void setBlob(Blob blob, boolean gcOldBlob) throws PropertyException
Description copied from interface:Document.BlobAccessorSets the blob.- Specified by:
setBlobin interfaceDocument.BlobAccessor- Parameters:
blob- the blobgcOldBlob- do we want to garbage collect the old value if any- Throws:
PropertyException
-
-