Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_GROWTHCURVETRANSFORM_H_
2 #define MOJA_MODULES_CBM_GROWTHCURVETRANSFORM_H_
4 #include "moja/datarepository/iproviderrelationalinterface.h"
5 #include "moja/flint/ilandunitcontroller.h"
6 #include "moja/flint/itransform.h"
8 #include <Poco/LRUCache.h>
9 #include <Poco/ThreadLocal.h>
18 const flint::ILandUnitController& landUnitController,
19 datarepository::DataRepository& dataRepository)
override;
22 const DynamicVar&
value()
const override;
27 std::shared_ptr<datarepository::IProviderRelationalInterface>
_provider;
30 mutable Poco::ThreadLocal<Poco::LRUCache<std::string, DynamicVar>>
_cache;
32 const std::string
buildSql(
const DynamicObject& classifierSet)
const;
36 SELECT growth_curve_id
39 gccv.growth_curve_id AS growth_curve_id,
41 WHEN c.name IN (%1%) THEN
43 WHEN cv.value LIKE '?' THEN 1
50 FROM growth_curve_classifier_value gccv
51 INNER JOIN classifier_value cv
52 ON gccv.classifier_value_id = cv.id
53 INNER JOIN classifier c
54 ON cv.classifier_id = c.id
55 GROUP BY gccv.growth_curve_id
56 ) AS growth_curve_ranking
62 const std::string
_matchSql =
"WHEN c.name LIKE '%1%' AND cv.value LIKE '%2%' THEN 4 ";
67 #endif // MOJA_MODULES_CBM_GROWTHCURVETRANSFORM_H_
Definition: ageclasshelper.cpp:12
Definition: ageclasshelper.cpp:10