Ref T28, consolidated reading

* fixed newer parameter
* unified handling of incremental updates
* skip cache update when there was no incremental data
This commit is contained in:
Klaus Basan
2017-05-04 01:55:59 +02:00
committed by Mathew Sutcliffe
parent c0320609b3
commit 9f4f06a436
5 changed files with 92 additions and 38 deletions

View File

@@ -227,12 +227,6 @@ namespace BlackCore
//! Log categories
static const BlackMisc::CLogCategoryList &getLogCategories();
//! Name of latest timestamp
static const QString &parameterLatestTimestamp();
//! Name of parameter for latest id
static const QString &parameterLatestId();
//! swift DB server reachable?
static bool canPingSwiftServer();
@@ -300,6 +294,19 @@ namespace BlackCore
//! File name for given mode, either php service or shared file name
static QString fileNameForMode(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Db::CDbFlags::DataRetrievalModeFlag mode);
//! Name of latest timestamp
static const QString &parameterLatestTimestamp();
//! Name of parameter for latest id
static const QString &parameterLatestId();
//! A newer than value understood by swift DB
//! \sa CDatabaseReader::parameterLatestTimestamp
static QString dateTimeToDbLatestTs(const QDateTime &ts);
//! Latest timestamp query for DB
static QString queryLatestTimestamp(const QDateTime &ts);
//! \name Cache access
//! @{
//! Synchronize caches for given entities