Interface DataModelDiagramStorage
- All Known Implementing Classes:
InMemoryDataModelDiagramStorage
public interface DataModelDiagramStorage
Interface for managing the storage of data model diagrams.
This provides methods to store, retrieve, remove, and clear diagram data,
which is identified by a unique
UUID.-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all stored diagram data from the storage.byte[]Retrieves the diagram data associated with the specified unique identifier.voidStores the specified diagram data associated with the provided unique identifier.booleanRemoves the diagram data associated with the specified unique identifier.
-
Method Details
-
get
Retrieves the diagram data associated with the specified unique identifier.- Parameters:
id- the uniqueUUIDidentifying the diagram data to retrieve- Returns:
- a byte array representing the diagram data if found, or null if no data is associated with the given ID
-
put
Stores the specified diagram data associated with the provided unique identifier.- Parameters:
id- the uniqueUUIDused to identify the diagram datadiagramData- a byte array representing the diagram data to be stored
-
remove
Removes the diagram data associated with the specified unique identifier.- Parameters:
id- the uniqueUUIDidentifying the diagram data to be removed- Returns:
- true if the diagram data was found and removed, false otherwise
-
clear
void clear()Removes all stored diagram data from the storage.
-