|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPersistenceProvider
Interface of data model persistence provider.
Method Summary | ||
---|---|---|
void |
destroy()
Destroys the instance of IPersistenceProvider . |
|
|
getDataSet(DataSetDescriptor descriptor)
Returns the data set described by given descriptor. |
|
|
getDataSet(UUID id)
Returns the data set with given ID. |
|
DataSetDescriptor |
getDataSetDescriptor(UUID id)
Returns the descriptor of data set with given ID. |
|
List<DataSetDescriptor> |
getDataSetDescriptors()
Returns descriptors of all available data sets. |
|
List<DataSetDescriptor> |
getDataSetDescriptors(Type dsType)
Returns descriptors of all available data sets of given type (and sub-types). |
|
|
getDataSets(Collection<DataSetDescriptor> descriptors)
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. |
|
void |
initialize()
Initializes the instance of IPersistenceProvider . |
|
UUID |
renameDataSet(UUID id,
String newName)
Changes the name of the data set with given ID. |
|
UUID |
saveDataSet(IDataSet<? extends IElement> dataSet)
Saves the given data set. |
|
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. |
Method Detail |
---|
void setConfig(String filePath)
filePath
- path to configuration/storage filevoid initialize()
IPersistenceProvider
.
void destroy()
IPersistenceProvider
.
List<DataSetDescriptor> getDataSetDescriptors()
List<DataSetDescriptor> getDataSetDescriptors(Type dsType)
dsType
- the type (super-type) of the data sets whose descriptors should be returned
List<DomainDataSetDescriptor> getDomainDataSetDescriptors()
List<PresentationDataSetDescriptor> getPresentationDataSetDescriptors()
List<VisualDataSetDescriptor> getVisualDataSetDescriptors()
DataSetDescriptor getDataSetDescriptor(UUID id)
id
- the ID of the data set
<T extends IDataSet<? extends IElement>> T getDataSet(UUID id)
T
- the type of data set to be returnedid
- the ID of the data set
<T extends IDataSet<? extends IElement>> T getDataSet(DataSetDescriptor descriptor)
T
- the type of data set to be returneddescriptor
- the descriptor of the data set
<T extends IDataSet<? extends IElement>> Map<UUID,T> getDataSetsById(Collection<UUID> ids)
T
- the type of data sets to be returnedids
- collection of data set IDs
<T extends IDataSet<? extends IElement>> Map<UUID,T> getDataSets(Collection<DataSetDescriptor> descriptors)
T
- the type of data sets to be returneddescriptors
- collection of descriptor of the data sets
UUID saveDataSet(IDataSet<? extends IElement> dataSet)
dataSet
- the data set to save
UUID saveDataSet(IDataSet<? extends IElement> dataSet, org.eclipse.core.runtime.IProgressMonitor monitor)
dataSet
- the data set to savemonitor
- operation progress monitor
Map<UUID,UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets)
dataSets
- collection of data sets to save
Map<UUID,UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, org.eclipse.core.runtime.IProgressMonitor monitor)
dataSets
- collection of data sets to savemonitor
- operation progress monitor
<T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(T presentationDataSet)
T
- the type of presentation data setpresentationDataSet
- the presentation data set to save
<T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(T presentationDataSet, org.eclipse.core.runtime.IProgressMonitor monitor)
T
- the type of presentation data setpresentationDataSet
- the presentation data set to savemonitor
- operation progress monitor
UUID renameDataSet(UUID id, String newName)
id
- the data set IDnewName
- the new name to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |