Interface Edp2Dao

All Known Subinterfaces:
BinaryMeasurementsDao<V,Q>, JScienceXmlMeasurementsDao<V,Q>, LocalDirectoryRepository, LocalMemoryRepository, MeasurementsDao<V,Q>, MetaDao, MetaDaoDelegate, Repository
All Known Implementing Classes:
AbstractMeasurementsDaoImpl, Edp2DaoImpl, FileBinaryMeasurementsDaoImpl, LocalDirectoryMetaDao, LocalDirectoryRepositoryImpl, LocalMemoryRepositoryImpl, LocalMemoryRepositoryImplGen, MemoryBinaryMeasurementsDaoImpl, MetaDaoImpl, RepositoryImpl, RepositoryImplGen

public interface Edp2Dao
Generic interface for accessing any DAO in EDP2. See sub-interfaces for more specific information on meta (MetaDao) or measurement data (MeasurementsDao).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the connection of this DAO to the data store can be closed.
    boolean
    Checks if the data managed by this DAO can be permanently deleted.
    boolean
    Checks if the data store which is accessed by this DAO is available and can be opened using open().
    void
    Closes the connection to the data store.
    void
    Deletes all of the stored data.
    void
    Write all non-persisted data to disk.
    boolean
    Returns if the referenced data has been deleted.
    boolean
    Returns if data is accessible or not.
    void
    Opens the connection to the data store and makes it's data accessible.
  • Method Details

    • open

      void open() throws DataNotAccessibleException
      Opens the connection to the data store and makes it's data accessible.
      Throws:
      DataNotAccessibleException - Errors when initializing the data access.
    • canOpen

      boolean canOpen()
      Checks if the data store which is accessed by this DAO is available and can be opened using open().
      Returns:
      true if the data store is available, false otherwise.
    • close

      void close() throws DataNotAccessibleException
      Closes the connection to the data store. If necessary, data is persisted before closing.
      Throws:
      DataNotAccessibleException - Errors when accessing data.
    • canClose

      boolean canClose()
      Checks if the connection of this DAO to the data store can be closed.
      Returns:
      true if it can be closed, false otherwise.
    • canDelete

      boolean canDelete()
      Checks if the data managed by this DAO can be permanently deleted.
      Returns:
      true if delete() can be called, false otherwise.
    • delete

      void delete() throws DataNotAccessibleException
      Deletes all of the stored data.
      Throws:
      DataNotAccessibleException - Errors when accessing data.
    • isOpen

      boolean isOpen()
      Returns if data is accessible or not.
      Returns:
      true if the connection is open and data is accessible.
    • isDeleted

      boolean isDeleted()
      Returns if the referenced data has been deleted.
      Returns:
      true if the data has been delete.
    • flush

      void flush()
      Write all non-persisted data to disk.