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
public class LocalDirectoryMetaDao extends MetaDaoImpl implements 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
Constructors Constructor Description LocalDirectoryMetaDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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.MeasurementsDaoFactory
getMeasurementsDaoFactory()
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
setParent(MetaDao repo)
-
Methods inherited from class org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
canClose, canDelete, isDeleted, isOpen, setClosed, setDeleted, setOpen
-
-
-
-
Method Detail
-
setParent
public void setParent(MetaDao repo)
- Specified by:
setParent
in interfaceMetaDaoDelegate
-
getMeasurementsDaoFactory
public MeasurementsDaoFactory 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
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 interfaceEdp2Dao
- Overrides:
close
in classEdp2DaoImpl
- 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 interfaceEdp2Dao
- Overrides:
delete
in classEdp2DaoImpl
- Throws:
DataNotAccessibleException
- Errors when accessing data.
-
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 interfaceEdp2Dao
- Overrides:
open
in classEdp2DaoImpl
- Throws:
DataNotAccessibleException
- Errors when initializing the data access.
-
-