|
lintel 0.2.0
|
#include <DatabasePropertyRepository.h>
Property repository that persists properties to a database
| lintel::DatabasePropertyRepository::DatabasePropertyRepository | ( | std::shared_ptr< DatabaseConnectionConfigurations > | connectionConfigurations, |
| const std::shared_ptr< Configuration > & | configuration, | ||
| std::shared_ptr< ProcessName > | processName | ||
| ) |
|
overridevirtual |
Query properties with optional filters
Returns an empty vector by default: an implementation without query support reports "no overrides", which PropertyService reads as "keep the configured default". The default is only reached for FilePropertyRepository, whose values come from the XML configuration and are never queried at runtime.
| processName | regex for process name |
| className | regex for class name |
| instanceName | regex for instance name |
| name | regex for property name |
Reimplemented from lintel::PropertyRepository.
|
overridevirtual |
load all properties from repository and return result
Implements lintel::PropertyRepository.
|
overridevirtual |
deletes properties in the mentioned repository
No-op by default: a read-only repository has nothing to delete from. PropertyService only reaches this method behind an isMutable() check, so the default is unreachable for FilePropertyRepository, which PropertyRepositoryComponent::parse rejects with a ConfigurationException when mutable="true" is configured.
Reimplemented from lintel::PropertyRepository.
|
overridevirtual |
Implements lintel::PropertyRepository.
|
overridevirtual |
save properties to repository
Implements lintel::PropertyRepository.
|
overridevirtual |
save property to repository
Implements lintel::PropertyRepository.