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 Type
    Method
    Description
    void
    Removes all stored diagram data from the storage.
    byte[]
    get(UUID id)
    Retrieves the diagram data associated with the specified unique identifier.
    void
    put(UUID id, byte[] diagramData)
    Stores the specified diagram data associated with the provided unique identifier.
    boolean
    Removes the diagram data associated with the specified unique identifier.
  • Method Details

    • get

      @Nullable byte[] get(UUID id)
      Retrieves the diagram data associated with the specified unique identifier.
      Parameters:
      id - the unique UUID identifying 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

      void put(UUID id, byte[] diagramData)
      Stores the specified diagram data associated with the provided unique identifier.
      Parameters:
      id - the unique UUID used to identify the diagram data
      diagramData - a byte array representing the diagram data to be stored
    • remove

      boolean remove(UUID id)
      Removes the diagram data associated with the specified unique identifier.
      Parameters:
      id - the unique UUID identifying 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.