Class Edp2DaoImpl

java.lang.Object
org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
All Implemented Interfaces:
Edp2Dao
Direct Known Subclasses:
AbstractMeasurementsDaoImpl, MetaDaoImpl

public abstract class Edp2DaoImpl extends Object implements Edp2Dao
Abstract base class of all EDP2 DAOs. Implements the basic DAO protocol all DAOs can rely on.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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 Edp2Dao.open().
    void
    Closes the connection to the data store.
    void
    Deletes all of the stored data.
    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.
    protected void
     
    protected void
    setDeleted(boolean newValue)
     
    protected void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.palladiosimulator.edp2.dao.Edp2Dao

    flush
  • Constructor Details

    • Edp2DaoImpl

      public Edp2DaoImpl()
  • Method Details

    • open

      public void open() throws DataNotAccessibleException
      Description copied from interface: Edp2Dao
      Opens the connection to the data store and makes it's data accessible.
      Specified by:
      open in interface Edp2Dao
      Throws:
      DataNotAccessibleException - Errors when initializing the data access.
    • close

      public void close() throws DataNotAccessibleException
      Description copied from interface: Edp2Dao
      Closes the connection to the data store. If necessary, data is persisted before closing.
      Specified by:
      close in interface Edp2Dao
      Throws:
      DataNotAccessibleException - Errors when accessing data.
    • delete

      public void delete() throws DataNotAccessibleException
      Description copied from interface: Edp2Dao
      Deletes all of the stored data.
      Specified by:
      delete in interface Edp2Dao
      Throws:
      DataNotAccessibleException - Errors when accessing data.
    • isDeleted

      public boolean isDeleted()
      Description copied from interface: Edp2Dao
      Returns if the referenced data has been deleted.
      Specified by:
      isDeleted in interface Edp2Dao
      Returns:
      true if the data has been delete.
    • isOpen

      public boolean isOpen()
      Description copied from interface: Edp2Dao
      Returns if data is accessible or not.
      Specified by:
      isOpen in interface Edp2Dao
      Returns:
      true if the connection is open and data is accessible.
    • canClose

      public boolean canClose()
      Description copied from interface: Edp2Dao
      Checks if the connection of this DAO to the data store can be closed.
      Specified by:
      canClose in interface Edp2Dao
      Returns:
      true if it can be closed, false otherwise.
    • canDelete

      public boolean canDelete()
      Description copied from interface: Edp2Dao
      Checks if the data managed by this DAO can be permanently deleted.
      Specified by:
      canDelete in interface Edp2Dao
      Returns:
      true if Edp2Dao.delete() can be called, false otherwise.
    • canOpen

      public boolean canOpen()
      Description copied from interface: Edp2Dao
      Checks if the data store which is accessed by this DAO is available and can be opened using Edp2Dao.open().
      Specified by:
      canOpen in interface Edp2Dao
      Returns:
      true if the data store is available, false otherwise.
    • setOpen

      protected void setOpen()
    • setClosed

      protected void setClosed()
    • setDeleted

      protected void setDeleted(boolean newValue)