public class VMObjectReference extends AbstractExternalReference implements ExternalReferenceSPI, Serializable
Constructor and Description |
---|
VMObjectReference() |
Modifier and Type | Method and Description |
---|---|
VMObjectReference |
clone() |
Long |
getApproximateSizeInBytes()
Approximate size of the stored data or -1 if we do not know.
|
Object |
getObject() |
String |
getUuid()
Getter used by hibernate to retrieve the object uuid property.
|
InputStream |
openStream(ReferenceContext context)
Open and return an InputStream to the data referenced using, if required,
any facilities within the supplied context.
|
void |
setObject(Object object) |
void |
setUuid(String id)
Setter used by hibernate to set the object uuid property.
|
getCharset, getDataNature, getPrimaryKey, getResolutionCost, setPrimaryKey
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCharset, getDataNature, getResolutionCost
public InputStream openStream(ReferenceContext context)
ExternalReferenceSPI
openStream
in interface ExternalReferenceSPI
context
- the ReferenceContext object used to obtain e.g. security
agents or other facilities required when de-referencing this
reference.public String getUuid()
public void setUuid(String id)
public void setObject(Object object)
public Object getObject()
public Long getApproximateSizeInBytes()
ExternalReferenceSPI
getApproximateSizeInBytes
in interface ExternalReferenceSPI
public VMObjectReference clone()
clone
in interface ExternalReferenceSPI
clone
in class AbstractExternalReference
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.