Package org.palladiosimulator.edp2.dao
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 TypeMethodDescriptionbooleancanClose()Checks if the connection of this DAO to the data store can be closed.booleanChecks if the data managed by this DAO can be permanently deleted.booleancanOpen()Checks if the data store which is accessed by this DAO is available and can be opened usingopen().voidclose()Closes the connection to the data store.voiddelete()Deletes all of the stored data.voidflush()Write all non-persisted data to disk.booleanReturns if the referenced data has been deleted.booleanisOpen()Returns if data is accessible or not.voidopen()Opens the connection to the data store and makes it's data accessible.
-
Method Details
-
open
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 usingopen().- Returns:
trueif the data store is available, false otherwise.
-
close
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:
trueif it can be closed, false otherwise.
-
canDelete
boolean canDelete()Checks if the data managed by this DAO can be permanently deleted.- Returns:
trueifdelete()can be called, false otherwise.
-
delete
Deletes all of the stored data.- Throws:
DataNotAccessibleException- Errors when accessing data.
-
isOpen
boolean isOpen()Returns if data is accessible or not.- Returns:
trueif the connection is open and data is accessible.
-
isDeleted
boolean isDeleted()Returns if the referenced data has been deleted.- Returns:
trueif the data has been delete.
-
flush
void flush()Write all non-persisted data to disk.
-