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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canClose()
Checks if the connection of this DAO to the data store can be closed.boolean
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
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
protected void
setDeleted
(boolean newValue) protected void
setOpen()
-
Constructor Details
-
Edp2DaoImpl
public Edp2DaoImpl()
-
-
Method Details
-
open
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
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
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)
-