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 TypeMethodDescriptionboolean
canClose()
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
canOpen()
Checks if the data store which is accessed by this DAO is available and can be opened usingopen()
.void
close()
Closes the connection to the data store.void
delete()
Deletes all of the stored data.void
flush()
Write all non-persisted data to disk.boolean
Returns if the referenced data has been deleted.boolean
isOpen()
Returns if data is accessible or not.void
open()
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:
true
if 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:
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
ifdelete()
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:
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.
-