|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.data.persistence.AbstractPersistenceProvider
public abstract class AbstractPersistenceProvider
Abstract implementation of IPersistenceProvider interface. Provides common implementations of utility
methods.
| Constructor Summary | |
|---|---|
AbstractPersistenceProvider()
|
|
| Method Summary | ||
|---|---|---|
String |
getConfig()
|
|
|
getDataSet(DataSetDescriptor descriptor)
Returns the data set described by given descriptor. |
|
List<DataSetDescriptor> |
getDataSetDescriptors(Type dsType)
Returns descriptors of all available data sets of given type (and sub-types). |
|
|
getDataSets(Collection<DataSetDescriptor> descs)
Returns the data sets described by given descriptors. |
|
|
getDataSetsById(Collection<UUID> ids)
Returns the data sets with given IDs. |
|
List<DomainDataSetDescriptor> |
getDomainDataSetDescriptors()
Returns descriptors of all available domain data sets. |
|
List<PresentationDataSetDescriptor> |
getPresentationDataSetDescriptors()
Returns descriptors of all available presentation data sets. |
|
List<VisualDataSetDescriptor> |
getVisualDataSetDescriptors()
Returns descriptors of all available visual data sets. |
|
UUID |
renameDataSet(UUID id,
String newName)
Changes the name of the data set with given ID. |
|
UUID |
saveDataSet(IDataSet<? extends IElement> dataSet,
org.eclipse.core.runtime.IProgressMonitor monitor)
Saves the given data set. |
|
Map<UUID,UUID> |
saveDataSets(Collection<IDataSet<? extends IElement>> dataSets)
Saves the given collection of data sets. |
|
Map<UUID,UUID> |
saveDataSets(Collection<IDataSet<? extends IElement>> dataSets,
org.eclipse.core.runtime.IProgressMonitor monitor)
Saves the given collection of data sets. |
|
|
saveDiagram(T presentationDataSet)
Saves the given presentation data set with associated visual data set and returns their new version. |
|
|
saveDiagram(T presentationDataSet,
org.eclipse.core.runtime.IProgressMonitor monitor)
Saves the given presentation data set with associated visual data set and returns their new version. |
|
void |
setConfig(String filePath)
Sets the path to configuration/storage file. |
|
| 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 |
|---|
destroy, getDataSet, getDataSetDescriptor, getDataSetDescriptors, initialize, saveDataSet |
| Constructor Detail |
|---|
public AbstractPersistenceProvider()
| Method Detail |
|---|
public List<DataSetDescriptor> getDataSetDescriptors(Type dsType)
getDataSetDescriptors in interface IPersistenceProviderdsType - the type (super-type) of the data sets whose descriptors should be returned
IPersistenceProvider.getDataSetDescriptors(pl.edu.agh.cast.data.model.Type)public List<DomainDataSetDescriptor> getDomainDataSetDescriptors()
getDomainDataSetDescriptors in interface IPersistenceProviderIPersistenceProvider.getDomainDataSetDescriptors()public List<PresentationDataSetDescriptor> getPresentationDataSetDescriptors()
getPresentationDataSetDescriptors in interface IPersistenceProviderIPersistenceProvider.getPresentationDataSetDescriptors()public List<VisualDataSetDescriptor> getVisualDataSetDescriptors()
getVisualDataSetDescriptors in interface IPersistenceProviderIPersistenceProvider.getVisualDataSetDescriptors()public <T extends IDataSet<? extends IElement>> T getDataSet(DataSetDescriptor descriptor)
getDataSet in interface IPersistenceProviderT - the type of data set to be returneddescriptor - the descriptor of the data set
#getDataSet(pl.edu.agh.cast.data.model.DataSetDescriptor)public <T extends IDataSet<? extends IElement>> Map<UUID,T> getDataSets(Collection<DataSetDescriptor> descs)
getDataSets in interface IPersistenceProviderT - the type of data sets to be returneddescs - collection of descriptor of the data sets
IPersistenceProvider.getDataSets(java.util.Collection)public <T extends IDataSet<? extends IElement>> Map<UUID,T> getDataSetsById(Collection<UUID> ids)
getDataSetsById in interface IPersistenceProviderT - the type of data sets to be returnedids - collection of data set IDs
IPersistenceProvider.getDataSetsById(java.util.Collection)
public UUID saveDataSet(IDataSet<? extends IElement> dataSet,
org.eclipse.core.runtime.IProgressMonitor monitor)
saveDataSet in interface IPersistenceProviderdataSet - the data set to savemonitor - operation progress monitor
IPersistenceProvider.saveDataSet(pl.edu.agh.cast.data.model.IDataSet,
org.eclipse.core.runtime.IProgressMonitor)public Map<UUID,UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets)
saveDataSets in interface IPersistenceProviderdataSets - collection of data sets to save
IPersistenceProvider.saveDataSets(java.util.Collection)
public Map<UUID,UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets,
org.eclipse.core.runtime.IProgressMonitor monitor)
saveDataSets in interface IPersistenceProviderdataSets - collection of data sets to savemonitor - operation progress monitor
IPersistenceProvider.saveDataSets(java.util.Collection,
org.eclipse.core.runtime.IProgressMonitor)public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(T presentationDataSet)
saveDiagram in interface IPersistenceProviderT - the type of presentation data setpresentationDataSet - the presentation data set to save
#saveDiagram(pl.edu.agh.cast.data.model.presentation.IPresentationDataSet)
public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(T presentationDataSet,
org.eclipse.core.runtime.IProgressMonitor monitor)
saveDiagram in interface IPersistenceProviderT - the type of presentation data setpresentationDataSet - the presentation data set to savemonitor - operation progress monitor
#saveDiagram(pl.edu.agh.cast.data.model.presentation.IPresentationDataSet,
org.eclipse.core.runtime.IProgressMonitor)public void setConfig(String filePath)
setConfig in interface IPersistenceProviderfilePath - path to configuration/storage fileIPersistenceProvider.setConfig(java.lang.String)public String getConfig()
public UUID renameDataSet(UUID id,
String newName)
renameDataSet in interface IPersistenceProviderid - the data set IDnewName - the new name to set
IPersistenceProvider.renameDataSet(java.util.UUID, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||