pl.edu.agh.cast.data.persistence.serialize
Class SerializationPersistenceProvider

java.lang.Object
  extended by pl.edu.agh.cast.data.persistence.AbstractPersistenceProvider
      extended by pl.edu.agh.cast.data.persistence.runtime.RuntimePersistenceProvider
          extended by pl.edu.agh.cast.data.persistence.serialize.SerializationPersistenceProvider
All Implemented Interfaces:
IPersistenceProvider

public class SerializationPersistenceProvider
extends RuntimePersistenceProvider

A persistence provider which uses Java serialization for data persistence.

Author:
AGH CAST Team

Constructor Summary
SerializationPersistenceProvider()
           
 
Method Summary
 void destroy()
          Destroys the instance of IPersistenceProvider.
 void initialize()
          Initializes the instance of IPersistenceProvider.
 UUID saveDataSet(IDataSet<? extends IElement> dataSet)
          Saves the given data set.
 
Methods inherited from class pl.edu.agh.cast.data.persistence.runtime.RuntimePersistenceProvider
addDataSet, clearDataSets, copy, getAllDataSets, getDataSet, getDataSetDescriptor, getDataSetDescriptors
 
Methods inherited from class pl.edu.agh.cast.data.persistence.AbstractPersistenceProvider
getConfig, getDataSet, getDataSetDescriptors, getDataSets, getDataSetsById, getDomainDataSetDescriptors, getPresentationDataSetDescriptors, getVisualDataSetDescriptors, renameDataSet, saveDataSet, saveDataSets, saveDataSets, saveDiagram, saveDiagram, setConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pl.edu.agh.cast.data.persistence.IPersistenceProvider
getDataSet, getDataSetDescriptors, getDataSets, getDataSetsById, getDomainDataSetDescriptors, getPresentationDataSetDescriptors, getVisualDataSetDescriptors, renameDataSet, saveDataSet, saveDataSets, saveDataSets, saveDiagram, saveDiagram, setConfig
 

Constructor Detail

SerializationPersistenceProvider

public SerializationPersistenceProvider()
Method Detail

destroy

public void destroy()
Destroys the instance of IPersistenceProvider.

Specified by:
destroy in interface IPersistenceProvider
Overrides:
destroy in class RuntimePersistenceProvider
See Also:
RuntimePersistenceProvider.destroy()

initialize

public void initialize()
Initializes the instance of IPersistenceProvider.

Specified by:
initialize in interface IPersistenceProvider
Overrides:
initialize in class RuntimePersistenceProvider
See Also:
RuntimePersistenceProvider.initialize()

saveDataSet

public UUID saveDataSet(IDataSet<? extends IElement> dataSet)
Saves the given data set.

Specified by:
saveDataSet in interface IPersistenceProvider
Overrides:
saveDataSet in class RuntimePersistenceProvider
Parameters:
dataSet - the data set to save
Returns:
the ID of the data set (as saved)
See Also:
#saveDataSet(pl.edu.agh.cast.data.model.IDataSet)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.