org.gcube.common.core.persistence
Class GCUBEWSFields2FilePersistenceDelegate<RESOURCE extends GCUBEWSFieldsSerializableResource>
java.lang.Object
org.gcube.common.core.persistence.GCUBEPersistenceDelegate<RESOURCEID,RESOURCE>
org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate<GCUBEWSResourceKey,RESOURCE>
org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<RESOURCE>
org.gcube.common.core.persistence.GCUBEWSFields2FilePersistenceDelegate<RESOURCE>
- Type Parameters:
RESOURCE - the type of the associated resource
public class GCUBEWSFields2FilePersistenceDelegate<RESOURCE extends GCUBEWSFieldsSerializableResource>
- extends GCUBEWSFilePersistenceDelegate<RESOURCE>
Delegate to persist an arbitrary list of Serializable objects, plus the standard RPs
- Author:
- Manuele Simi (ISTI-CNR)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GCUBEWSFields2FilePersistenceDelegate
public GCUBEWSFields2FilePersistenceDelegate()
onLoad
protected void onLoad(RESOURCE resource,
ObjectInputStream stream)
throws Exception
- Deserialises the state of resource from a
ObjectInputStream.
Extends in accordance with resource semantics.
- Overrides:
onLoad in class GCUBEWSFilePersistenceDelegate<RESOURCE extends GCUBEWSFieldsSerializableResource>
stream - the stream.
- Throws:
Exception - if the stream could not be processed.
onStore
protected void onStore(RESOURCE resource,
ObjectOutputStream stream)
throws Exception
- Serialises the state of a resource into a
ObjectOutputStream.
Extend in accordance with resource semantics.
- Overrides:
onStore in class GCUBEWSFilePersistenceDelegate<RESOURCE extends GCUBEWSFieldsSerializableResource>
stream - the stream.
- Throws:
Exception - if the stream could not be processed.
Copyright © 2013. All Rights Reserved.