Class MeasurementsDaoRegistryImpl
java.lang.Object
org.palladiosimulator.edp2.dao.impl.MeasurementsDaoRegistryImpl
- All Implemented Interfaces:
MeasurementsDaoRegistry
Default implementation of the DaoRegistry. Responsible to hold a list of all registered DAOs and
the access to them. The DAO factories should be used for creation of DAOs. They must register the
DAOs at the central registry.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deregister
(String uuid) Deregisters an registered DAO.MeasurementsDao<?,
?> getMeasurementsDao
(String uuid) Returns a registered DAO.Returns the registered UUIDs.boolean
isRegistered
(String uuid) Checks if a DAO is registered for the UUID.void
register
(MeasurementsDao<?, ?> dao, String uuid) Registers a new DAO.
-
Constructor Details
-
MeasurementsDaoRegistryImpl
public MeasurementsDaoRegistryImpl()Initialize the registry.
-
-
Method Details
-
deregister
Description copied from interface:MeasurementsDaoRegistry
Deregisters an registered DAO.- Specified by:
deregister
in interfaceMeasurementsDaoRegistry
- Parameters:
uuid
- The UUID of the registered DAO.
-
isRegistered
Description copied from interface:MeasurementsDaoRegistry
Checks if a DAO is registered for the UUID.- Specified by:
isRegistered
in interfaceMeasurementsDaoRegistry
- Parameters:
uuid
- The UUID of the DAO.- Returns:
true
if there is a DAO registered.
-
register
Description copied from interface:MeasurementsDaoRegistry
Registers a new DAO.- Specified by:
register
in interfaceMeasurementsDaoRegistry
- Parameters:
dao
- The DAO to register.uuid
- The UUID for which the DAO is responsible.
-
getMeasurementsDao
Description copied from interface:MeasurementsDaoRegistry
Returns a registered DAO.- Specified by:
getMeasurementsDao
in interfaceMeasurementsDaoRegistry
- Parameters:
uuid
- The UUID of the DAO.- Returns:
- The DAO.
-
getRegisteredUuids
Description copied from interface:MeasurementsDaoRegistry
Returns the registered UUIDs.- Specified by:
getRegisteredUuids
in interfaceMeasurementsDaoRegistry
- Returns:
- List with all registered UUIDs.
-