28 #include <MemoryX/interface/components/CommonStorageInterface.h>
34 virtual public CollectionInterface
40 Ice::Int count(const ::Ice::Current& = Ice::emptyCurrent)
override;
41 std::string getNS(const ::Ice::Current& = Ice::emptyCurrent)
override;
43 DBStorableData findByMongoId(
const std::string&
id, const ::Ice::Current&
c)
override;
44 DBStorableDataList findByFieldValue(
const std::string& fieldName, const ::std::string& fieldValue, const ::Ice::Current& = Ice::emptyCurrent)
override;
45 DBStorableData findOneByFieldValue(
const std::string& fieldName, const ::std::string& fieldValue, const ::Ice::Current& = Ice::emptyCurrent)
override;
46 DBStorableDataList findByFieldValueList(
const std::string& fieldName,
const NameList& fieldValueList, const ::Ice::Current& = Ice::emptyCurrent)
override;
47 DBStorableDataList findByQuery(
const std::string& query, const ::Ice::Current&
c)
override;
48 DBStorableDataList findByConstraintQuery(
const std::string& query,
const std::string& where,
const Ice::Current&)
override;
49 DBStorableData findOneByQuery(
const std::string& query, const ::Ice::Current&
c)
override;
50 DBStorableDataList findAll(const ::Ice::Current& = Ice::emptyCurrent)
override;
51 DBStorableData findAllUniqueByFieldName(
const std::string& fieldName, const ::Ice::Current& = Ice::emptyCurrent)
override;
52 EntityIdList findAllIds(const ::Ice::Current& = Ice::emptyCurrent)
override;
53 NameList findAllFieldValues(
const std::string& fieldName, const ::Ice::Current& = Ice::emptyCurrent)
override;
55 std::string
insert(
const DBStorableData& obj, const ::Ice::Current& = Ice::emptyCurrent)
override;
56 std::vector<std::string> insertList(
const DBStorableDataList& objectList,
const Ice::Current& = Ice::emptyCurrent)
override;
57 bool update(
const DBStorableData& obj, const ::Ice::Current& = Ice::emptyCurrent)
override;
58 bool updateByQuery(
const std::string& query,
const DBStorableData& obj, const ::Ice::Current& = Ice::emptyCurrent)
override;
59 bool updateWithUserKey(
const DBStorableData& obj,
const std::string& keyField, const ::Ice::Current& = Ice::emptyCurrent)
override;
60 std::string
save(
const DBStorableData& obj, const ::Ice::Current& = Ice::emptyCurrent)
override;
61 bool saveWithUserKey(
const DBStorableData& obj,
const std::string& keyField, const ::Ice::Current& = Ice::emptyCurrent)
override;
63 bool removeByMongoId(
const std::string&
id, const ::Ice::Current& = Ice::emptyCurrent)
override;
64 bool removeByFieldValue(
const std::string& fieldName,
const std::string& fieldValue, const ::Ice::Current& = Ice::emptyCurrent)
override;
65 bool removeByQuery(
const std::string& query, const ::Ice::Current& = Ice::emptyCurrent)
override;
66 bool clear(const ::Ice::Current&
c)
override;
68 bool ensureIndex(
const std::string& fieldName,
bool unique, const ::Ice::Current& = Ice::emptyCurrent)
override;
74 std::mutex dbConnectionMutex;