Class Edp2DaoImpl
- java.lang.Object
-
- org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
-
- All Implemented Interfaces:
Edp2Dao
- Direct Known Subclasses:
AbstractMeasurementsDaoImpl,MetaDaoImpl
public abstract class Edp2DaoImpl extends Object implements Edp2Dao
Abstract base class of all EDP2 DAOs. Implements the basic DAO protocol all DAOs can rely on.
-
-
Constructor Summary
Constructors Constructor Description Edp2DaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanClose()Checks if the connection of this DAO to the data store can be closed.booleancanDelete()Checks 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.booleanisDeleted()Returns 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 voidsetClosed()protected voidsetDeleted(boolean newValue)protected voidsetOpen()
-
-
-
Method Detail
-
open
public void open() throws DataNotAccessibleExceptionDescription 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
public void close() throws DataNotAccessibleExceptionDescription 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
public void delete() throws DataNotAccessibleExceptionDescription 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)
-
-