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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanOpen()Checks if the data store which is accessed by this DAO is available and can be opened usingEdp2Dao.open().voidclose()Closes the connection to the data store.voiddelete()Deletes all of the stored data.voidflush()Write all non-persisted data to disk.Returns the factory for measurement DAOs in order to get access to the measurements.voidopen()Opens the connection to the data store and makes it's data accessible.voidMethods 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:
setParentin interfaceMetaDaoDelegate
-
getMeasurementsDaoFactory
Description copied from interface:MetaDaoReturns the factory for measurement DAOs in order to get access to the measurements.- Specified by:
getMeasurementsDaoFactoryin interfaceMetaDao- Overrides:
getMeasurementsDaoFactoryin classMetaDaoImpl- Returns:
- The measurements DAO factory.
-
canOpen
public boolean canOpen()Description copied from interface:Edp2DaoChecks if the data store which is accessed by this DAO is available and can be opened usingEdp2Dao.open().- Specified by:
canOpenin interfaceEdp2Dao- Overrides:
canOpenin classEdp2DaoImpl- Returns:
trueif the data store is available, false otherwise.
-
close
Description copied from interface:Edp2DaoCloses the connection to the data store. If necessary, data is persisted before closing.- Specified by:
closein interfaceEdp2Dao- Overrides:
closein classEdp2DaoImpl- Throws:
DataNotAccessibleException- Errors when accessing data.
-
delete
Description copied from interface:Edp2DaoDeletes all of the stored data.- Specified by:
deletein interfaceEdp2Dao- Overrides:
deletein classEdp2DaoImpl- Throws:
DataNotAccessibleException- Errors when accessing data.
-
open
Description copied from interface:Edp2DaoOpens the connection to the data store and makes it's data accessible.- Specified by:
openin interfaceEdp2Dao- Overrides:
openin classEdp2DaoImpl- Throws:
DataNotAccessibleException- Errors when initializing the data access.
-
flush
public void flush()Description copied from interface:Edp2DaoWrite all non-persisted data to disk.
-