Class LocalDirectoryMetaDao
java.lang.Object
org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
org.palladiosimulator.edp2.dao.impl.MetaDaoImpl
org.palladiosimulator.edp2.repository.local.dao.LocalDirectoryMetaDao
- All Implemented Interfaces:
Edp2Dao
,MetaDao
,MetaDaoDelegate
DAO to access the meta data stored in a local directory. Warning: It is not allowed to reassign a
managed repository to another instance of Repositories.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canOpen()
Checks if the data store which is accessed by this DAO is available and can be opened usingEdp2Dao.open()
.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.Returns the factory for measurement DAOs in order to get access to the measurements.void
open()
Opens the connection to the data store and makes it's data accessible.void
Methods inherited from class org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
canClose, canDelete, isDeleted, isOpen, setClosed, setDeleted, setOpen
-
Constructor Details
-
LocalDirectoryMetaDao
public LocalDirectoryMetaDao()
-
-
Method Details
-
setParent
- Specified by:
setParent
in interfaceMetaDaoDelegate
-
getMeasurementsDaoFactory
Description copied from interface:MetaDao
Returns the factory for measurement DAOs in order to get access to the measurements.- Specified by:
getMeasurementsDaoFactory
in interfaceMetaDao
- Overrides:
getMeasurementsDaoFactory
in classMetaDaoImpl
- Returns:
- The measurements DAO factory.
-
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 usingEdp2Dao.open()
.- Specified by:
canOpen
in interfaceEdp2Dao
- Overrides:
canOpen
in classEdp2DaoImpl
- Returns:
true
if the data store is available, false otherwise.
-
close
Description copied from interface:Edp2Dao
Closes the connection to the data store. If necessary, data is persisted before closing.- Specified by:
close
in interfaceEdp2Dao
- Overrides:
close
in classEdp2DaoImpl
- Throws:
DataNotAccessibleException
- Errors when accessing data.
-
delete
Description copied from interface:Edp2Dao
Deletes all of the stored data.- Specified by:
delete
in interfaceEdp2Dao
- Overrides:
delete
in classEdp2DaoImpl
- Throws:
DataNotAccessibleException
- Errors when accessing data.
-
open
Description copied from interface:Edp2Dao
Opens the connection to the data store and makes it's data accessible.- Specified by:
open
in interfaceEdp2Dao
- Overrides:
open
in classEdp2DaoImpl
- Throws:
DataNotAccessibleException
- Errors when initializing the data access.
-
flush
public void flush()Description copied from interface:Edp2Dao
Write all non-persisted data to disk.
-