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 Blob
getBlob()
Gets the blob.String
getXPath()
Gets the blob's xpath.void
setBlob(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.BlobAccessor
Gets the blob's xpath.- Specified by:
getXPath
in interfaceDocument.BlobAccessor
-
getBlob
public Blob getBlob() throws PropertyException
Description copied from interface:Document.BlobAccessor
Gets the blob.- Specified by:
getBlob
in interfaceDocument.BlobAccessor
- Throws:
PropertyException
-
setBlob
public void setBlob(Blob blob, boolean gcOldBlob) throws PropertyException
Description copied from interface:Document.BlobAccessor
Sets the blob.- Specified by:
setBlob
in interfaceDocument.BlobAccessor
- Parameters:
blob
- the blobgcOldBlob
- do we want to garbage collect the old value if any- Throws:
PropertyException
-
-