Class Edp2DaoImpl
java.lang.Object
org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
- All Implemented Interfaces:
Edp2Dao
- Direct Known Subclasses:
AbstractMeasurementsDaoImpl,MetaDaoImpl
Abstract base class of all EDP2 DAOs. Implements the basic DAO protocol all DAOs can rely on.
-
Constructor Summary
Constructors -
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 usingEdp2Dao.open().voidclose()Closes the connection to the data store.voiddelete()Deletes all of the stored data.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.protected voidprotected voidsetDeleted(boolean newValue) protected voidsetOpen()
-
Constructor Details
-
Edp2DaoImpl
public Edp2DaoImpl()
-
-
Method Details
-
open
Description copied from interface:Edp2DaoOpens the connection to the data store and makes it's data accessible.- Specified by:
openin interfaceEdp2Dao- Throws:
DataNotAccessibleException- Errors when initializing the data access.
-
close
Description copied from interface:Edp2DaoCloses the connection to the data store. If necessary, data is persisted before closing.- Specified by:
closein interfaceEdp2Dao- Throws:
DataNotAccessibleException- Errors when accessing data.
-
delete
Description copied from interface:Edp2DaoDeletes all of the stored data.- Specified by:
deletein interfaceEdp2Dao- Throws:
DataNotAccessibleException- Errors when accessing data.
-
isDeleted
public boolean isDeleted()Description copied from interface:Edp2DaoReturns if the referenced data has been deleted. -
isOpen
public boolean isOpen()Description copied from interface:Edp2DaoReturns if data is accessible or not. -
canClose
public boolean canClose()Description copied from interface:Edp2DaoChecks if the connection of this DAO to the data store can be closed. -
canDelete
public boolean canDelete()Description copied from interface:Edp2DaoChecks if the data managed by this DAO can be permanently deleted.- Specified by:
canDeletein interfaceEdp2Dao- Returns:
trueifEdp2Dao.delete()can be called, false otherwise.
-
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(). -
setOpen
protected void setOpen() -
setClosed
protected void setClosed() -
setDeleted
protected void setDeleted(boolean newValue)
-