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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(String uuid) Deregisters an registered DAO.MeasurementsDao<?,?> getMeasurementsDao(String uuid) Returns a registered DAO.Returns the registered UUIDs.booleanisRegistered(String uuid) Checks if a DAO is registered for the UUID.voidregister(MeasurementsDao<?, ?> dao, String uuid) Registers a new DAO.
-
Constructor Details
-
MeasurementsDaoRegistryImpl
public MeasurementsDaoRegistryImpl()Initialize the registry.
-
-
Method Details
-
deregister
Description copied from interface:MeasurementsDaoRegistryDeregisters an registered DAO.- Specified by:
deregisterin interfaceMeasurementsDaoRegistry- Parameters:
uuid- The UUID of the registered DAO.
-
isRegistered
Description copied from interface:MeasurementsDaoRegistryChecks if a DAO is registered for the UUID.- Specified by:
isRegisteredin interfaceMeasurementsDaoRegistry- Parameters:
uuid- The UUID of the DAO.- Returns:
trueif there is a DAO registered.
-
register
Description copied from interface:MeasurementsDaoRegistryRegisters a new DAO.- Specified by:
registerin interfaceMeasurementsDaoRegistry- Parameters:
dao- The DAO to register.uuid- The UUID for which the DAO is responsible.
-
getMeasurementsDao
Description copied from interface:MeasurementsDaoRegistryReturns a registered DAO.- Specified by:
getMeasurementsDaoin interfaceMeasurementsDaoRegistry- Parameters:
uuid- The UUID of the DAO.- Returns:
- The DAO.
-
getRegisteredUuids
Description copied from interface:MeasurementsDaoRegistryReturns the registered UUIDs.- Specified by:
getRegisteredUuidsin interfaceMeasurementsDaoRegistry- Returns:
- List with all registered UUIDs.
-