org.gcube.data.tm.state
Class SourcePersistenceDelegate

java.lang.Object
  extended by org.gcube.common.core.persistence.GCUBEPersistenceDelegate<RESOURCEID,RESOURCE>
      extended by org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate<String,RESOURCE>
          extended by org.gcube.common.core.persistence.GCUBELRFilePersistenceDelegate<SourceResource>
              extended by org.gcube.data.tm.state.SourcePersistenceDelegate

public class SourcePersistenceDelegate
extends org.gcube.common.core.persistence.GCUBELRFilePersistenceDelegate<SourceResource>

Persistence delegate for SourceResources.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from class org.gcube.common.core.persistence.GCUBELRFilePersistenceDelegate
LOCAL_FILE_SUFFIX
 
Fields inherited from class org.gcube.common.core.persistence.GCUBEPersistenceDelegate
logger
 
Constructor Summary
SourcePersistenceDelegate()
           
 
Method Summary
protected  void onLoad(SourceResource resource, boolean firstLoad)
          
protected  void onLoad(SourceResource resource, ObjectInputStream stream)
          
protected  void onStore(SourceResource resource, ObjectOutputStream stream)
          
 
Methods inherited from class org.gcube.common.core.persistence.GCUBELRFilePersistenceDelegate
getFileFromResource, getIDFromFileName, getSuffix, initialise
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate
getResourceIdentifiers, getStorageRoot, onRemove, onStore
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEPersistenceDelegate
load, remove, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourcePersistenceDelegate

public SourcePersistenceDelegate()
Method Detail

onLoad

protected void onLoad(SourceResource resource,
                      ObjectInputStream stream)
               throws Exception

Overrides:
onLoad in class org.gcube.common.core.persistence.GCUBELRFilePersistenceDelegate<SourceResource>
Throws:
Exception

onStore

protected void onStore(SourceResource resource,
                       ObjectOutputStream stream)
                throws Exception

Overrides:
onStore in class org.gcube.common.core.persistence.GCUBELRFilePersistenceDelegate<SourceResource>
Throws:
Exception

onLoad

protected void onLoad(SourceResource resource,
                      boolean firstLoad)
               throws Exception

Overrides:
onLoad in class org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate<String,SourceResource>
Throws:
Exception


Copyright © 2012. All Rights Reserved.