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 boolean
canClose()
Checks if the connection of this DAO to the data store can be closed.boolean
canDelete()
Checks if the data managed by this DAO can be permanently deleted.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.boolean
isDeleted()
Returns if the referenced data has been deleted.boolean
isOpen()
Returns if data is accessible or not.void
open()
Opens the connection to the data store and makes it's data accessible.protected void
setClosed()
protected void
setDeleted(boolean newValue)
protected void
setOpen()
-
-
-
Method Detail
-
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
- Throws:
DataNotAccessibleException
- Errors when initializing the data access.
-
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
- 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
- Throws:
DataNotAccessibleException
- Errors when accessing data.
-
isDeleted
public boolean isDeleted()
Description copied from interface:Edp2Dao
Returns if the referenced data has been deleted.
-
isOpen
public boolean isOpen()
Description copied from interface:Edp2Dao
Returns if data is accessible or not.
-
canClose
public boolean canClose()
Description copied from interface:Edp2Dao
Checks if the connection of this DAO to the data store can be closed.
-
canDelete
public boolean canDelete()
Description copied from interface:Edp2Dao
Checks if the data managed by this DAO can be permanently deleted.- Specified by:
canDelete
in interfaceEdp2Dao
- Returns:
true
ifEdp2Dao.delete()
can be called, false otherwise.
-
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()
.
-
setOpen
protected void setOpen()
-
setClosed
protected void setClosed()
-
setDeleted
protected void setDeleted(boolean newValue)
-
-