All Implemented Interfaces:
de.uka.ipd.sdq.identifier.Identifier, org.eclipse.emf.cdo.CDOObject, org.eclipse.emf.cdo.common.id.CDOWithID, org.eclipse.emf.cdo.common.model.CDOPackageTypeRegistry.CDOObjectMarker, Notifier, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, org.eclipse.emf.spi.cdo.InternalCDOLoadable, org.eclipse.emf.spi.cdo.InternalCDOObject, Edp2Dao, MetaDao, Repository
Direct Known Subclasses:
LocalDirectoryRepositoryImpl, LocalMemoryRepositoryImplGen

public abstract class RepositoryImpl extends RepositoryImplGen
An implementation of the model object 'Repository'.
  • Field Details

    • metaDao

      protected MetaDao metaDao
      The DAO to load/access/store the data handled by this repository.
  • Constructor Details

    • RepositoryImpl

      protected RepositoryImpl()
  • Method Details

    • resetExperimentGroups

      public void resetExperimentGroups()
      Resets the experiment groups attribute.
      Specified by:
      resetExperimentGroups in interface Repository
      Overrides:
      resetExperimentGroups in class RepositoryImplGen
    • getMeasurementsDaoFactory

      public MeasurementsDaoFactory getMeasurementsDaoFactory()
      Description copied from interface: MetaDao
      Returns the factory for measurement DAOs in order to get access to the measurements.
      Returns:
      The measurements DAO factory.
    • canClose

      public boolean canClose()
      Description copied from interface: Edp2Dao
      Checks if the connection of this DAO to the data store can be closed.
      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.
      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().
      Returns:
      true if the data store is available, false otherwise.
    • 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.
      Throws:
      DataNotAccessibleException - Errors when accessing data.
    • delete

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

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

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

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

      public void flush()
      Description copied from interface: Edp2Dao
      Write all non-persisted data to disk.