public interface SerializedEntry extends DataObjectEntry, DataObjectContextAware, Serializable
A SerializedEntry implements the Serializable interface and can therefore
be serialized using Java serialization methods. Since SerializedEntry's are associated
with a DataObjectContext, serialization of the SerializedEntry will remove
the context from the object, and it will become detached. When detached, methods that require the context will
throw an IllegalStateException. Use the DataObjectContextAware.applyContext(DataObjectContext) method to
reassociate the context with the SerializedEntry.
The data represented by this SerializedEntry is created using a DataSerializer.
| Modifier and Type | Method and Description |
|---|---|
XsDataInputStream |
getInputStream()
Return a data input stream for the serialized form of the entry.
|
<T> T |
getObject()
Return the Object form of the data object.
|
String |
toString()
Return a user readable representation of the entry.
|
applyContext, getContextString toString()
DataSerializer.UserReadable
to retrieve the string.
If DataObjectContextAware.getContext() answers null, the result is undefined.
XsDataInputStream getInputStream()
Do not store or use the data stream beyond the confines of the method call that receives the SerializedEntry object. The data underlying the stream is owned by the WebSphere eXtreme Scale framework and my be pooled or reused as required.
<T> T getObject()
getObject in interface DataObjectEntryIllegalStateException - if DataObjectContextAware.getContext() answers null.