lintel 0.2.0
Loading...
Searching...
No Matches
DatabasePropertyRepository.h
Go to the documentation of this file.
1#ifndef LINTEL_DATABASEPROPERTYREPOSITORY_H
2#define LINTEL_DATABASEPROPERTYREPOSITORY_H
3
4#include <memory>
5
10
11namespace lintel {
14{
15private:
16 std::shared_ptr<DatabaseConnectionConfigurations> m_connectionConfigurations;
17 std::shared_ptr<DatabaseConnectionEntry> m_connectionEntry;
18 std::shared_ptr<ProcessName> m_processName;
20
21public:
22 DatabasePropertyRepository(std::shared_ptr<DatabaseConnectionConfigurations> connectionConfigurations,
23 const std::shared_ptr<Configuration> &configuration,
24 std::shared_ptr<ProcessName> processName);
25
27
31 void save(const std::vector<std::shared_ptr<PropertyBase>> &properties) override;
32
36 void save(std::shared_ptr<PropertyBase> property) override;
37
38 void deleteOf(const std::vector<std::shared_ptr<PropertyBase>> &properties) override;
39
43 std::vector<std::shared_ptr<PropertyBase>> awake() override;
44
45 std::vector<std::shared_ptr<PropertyBase>> allOf(const std::string &processName = ".*",
46 const std::string &className = ".*",
47 const std::string &instanceName = ".*",
48 const std::string &name = ".*") override;
49};
50
51}// namespace lintel
52#endif// LINTEL_DATABASEPROPERTYREPOSITORY_H
Definition DataStorage.h:13
Definition DatabasePropertyRepository.h:14
std::vector< std::shared_ptr< PropertyBase > > allOf(const std::string &processName=".*", const std::string &className=".*", const std::string &instanceName=".*", const std::string &name=".*") override
void save(std::shared_ptr< PropertyBase > property) override
void deleteOf(const std::vector< std::shared_ptr< PropertyBase > > &properties) override
DatabasePropertyRepository(std::shared_ptr< DatabaseConnectionConfigurations > connectionConfigurations, const std::shared_ptr< Configuration > &configuration, std::shared_ptr< ProcessName > processName)
DataStorage getDataStorage() override
void save(const std::vector< std::shared_ptr< PropertyBase > > &properties) override
std::vector< std::shared_ptr< PropertyBase > > awake() override
@ DATABASE_REPOSITORY
Definition PropertyRepositoryType.h:18
Definition PropertyRepository.h:18
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9