Collection Class Reference

#include <MemoryX/components/CommonStorage/Collection.h>

+ Inheritance diagram for Collection:

Public Member Functions

bool clear (const ::Ice::Current &c) override
 
 Collection (const CommonStoragePtr &dbConn, const std::string &collNS)
 
Ice::Int count (const ::Ice::Current &=Ice::emptyCurrent) override
 
bool ensureIndex (const std::string &fieldName, bool unique, const ::Ice::Current &=Ice::emptyCurrent) override
 
DBStorableDataList findAll (const ::Ice::Current &=Ice::emptyCurrent) override
 
NameList findAllFieldValues (const std::string &fieldName, const ::Ice::Current &=Ice::emptyCurrent) override
 
EntityIdList findAllIds (const ::Ice::Current &=Ice::emptyCurrent) override
 
DBStorableData findAllUniqueByFieldName (const std::string &fieldName, const ::Ice::Current &=Ice::emptyCurrent) override
 
DBStorableDataList findByConstraintQuery (const std::string &query, const std::string &where, const Ice::Current &) override
 
DBStorableDataList findByFieldValue (const std::string &fieldName, const ::std::string &fieldValue, const ::Ice::Current &=Ice::emptyCurrent) override
 
DBStorableDataList findByFieldValueList (const std::string &fieldName, const NameList &fieldValueList, const ::Ice::Current &=Ice::emptyCurrent) override
 
DBStorableData findByMongoId (const std::string &id, const ::Ice::Current &c) override
 
DBStorableDataList findByQuery (const std::string &query, const ::Ice::Current &c) override
 
DBStorableData findOneByFieldValue (const std::string &fieldName, const ::std::string &fieldValue, const ::Ice::Current &=Ice::emptyCurrent) override
 
DBStorableData findOneByQuery (const std::string &query, const ::Ice::Current &c) override
 
Ice::Identity getIceId () const
 
std::string getNS (const ::Ice::Current &=Ice::emptyCurrent) override
 
std::string insert (const DBStorableData &obj, const ::Ice::Current &=Ice::emptyCurrent) override
 
std::vector< std::string > insertList (const DBStorableDataList &objectList, const Ice::Current &=Ice::emptyCurrent) override
 
bool removeByFieldValue (const std::string &fieldName, const std::string &fieldValue, const ::Ice::Current &=Ice::emptyCurrent) override
 
bool removeByMongoId (const std::string &id, const ::Ice::Current &=Ice::emptyCurrent) override
 
bool removeByQuery (const std::string &query, const ::Ice::Current &=Ice::emptyCurrent) override
 
std::string save (const DBStorableData &obj, const ::Ice::Current &=Ice::emptyCurrent) override
 
bool saveWithUserKey (const DBStorableData &obj, const std::string &keyField, const ::Ice::Current &=Ice::emptyCurrent) override
 
bool update (const DBStorableData &obj, const ::Ice::Current &=Ice::emptyCurrent) override
 
bool updateByQuery (const std::string &query, const DBStorableData &obj, const ::Ice::Current &=Ice::emptyCurrent) override
 
bool updateWithUserKey (const DBStorableData &obj, const std::string &keyField, const ::Ice::Current &=Ice::emptyCurrent) override
 

Detailed Description

Definition at line 33 of file Collection.h.

Constructor & Destructor Documentation

◆ Collection()

Collection ( const CommonStoragePtr dbConn,
const std::string &  collNS 
)

Definition at line 32 of file Collection.cpp.

Member Function Documentation

◆ clear()

bool clear ( const ::Ice::Current &  c)
override

Definition at line 187 of file Collection.cpp.

◆ count()

Ice::Int count ( const ::Ice::Current &  c = Ice::emptyCurrent)
override

Definition at line 45 of file Collection.cpp.

◆ ensureIndex()

bool ensureIndex ( const std::string &  fieldName,
bool  unique,
const ::Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 193 of file Collection.cpp.

◆ findAll()

DBStorableDataList findAll ( const ::Ice::Current &  = Ice::emptyCurrent)
override

Definition at line 101 of file Collection.cpp.

◆ findAllFieldValues()

NameList findAllFieldValues ( const std::string &  fieldName,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 119 of file Collection.cpp.

◆ findAllIds()

EntityIdList findAllIds ( const ::Ice::Current &  = Ice::emptyCurrent)
override

Definition at line 113 of file Collection.cpp.

◆ findAllUniqueByFieldName()

DBStorableData findAllUniqueByFieldName ( const std::string &  fieldName,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 107 of file Collection.cpp.

◆ findByConstraintQuery()

DBStorableDataList findByConstraintQuery ( const std::string &  query,
const std::string &  where,
const Ice::Current &   
)
override

Definition at line 95 of file Collection.cpp.

◆ findByFieldValue()

DBStorableDataList findByFieldValue ( const std::string &  fieldName,
const ::std::string &  fieldValue,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 57 of file Collection.cpp.

◆ findByFieldValueList()

DBStorableDataList findByFieldValueList ( const std::string &  fieldName,
const NameList &  fieldValueList,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 73 of file Collection.cpp.

◆ findByMongoId()

DBStorableData findByMongoId ( const std::string &  id,
const ::Ice::Current &  c 
)
override

Definition at line 51 of file Collection.cpp.

◆ findByQuery()

DBStorableDataList findByQuery ( const std::string &  query,
const ::Ice::Current &  c 
)
override

Definition at line 89 of file Collection.cpp.

◆ findOneByFieldValue()

DBStorableData findOneByFieldValue ( const std::string &  fieldName,
const ::std::string &  fieldValue,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 65 of file Collection.cpp.

◆ findOneByQuery()

DBStorableData findOneByQuery ( const std::string &  query,
const ::Ice::Current &  c 
)
override

Definition at line 82 of file Collection.cpp.

◆ getIceId()

Ice::Identity getIceId ( ) const

Definition at line 39 of file Collection.cpp.

◆ getNS()

std::string getNS ( const ::Ice::Current &  c = Ice::emptyCurrent)
override

Definition at line 199 of file Collection.cpp.

◆ insert()

std::string insert ( const DBStorableData &  obj,
const ::Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 125 of file Collection.cpp.

◆ insertList()

std::vector< std::string > insertList ( const DBStorableDataList &  objectList,
const Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 131 of file Collection.cpp.

◆ removeByFieldValue()

bool removeByFieldValue ( const std::string &  fieldName,
const std::string &  fieldValue,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 174 of file Collection.cpp.

◆ removeByMongoId()

bool removeByMongoId ( const std::string &  id,
const ::Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 168 of file Collection.cpp.

◆ removeByQuery()

bool removeByQuery ( const std::string &  query,
const ::Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 181 of file Collection.cpp.

◆ save()

std::string save ( const DBStorableData &  obj,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 154 of file Collection.cpp.

◆ saveWithUserKey()

bool saveWithUserKey ( const DBStorableData &  obj,
const std::string &  keyField,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 161 of file Collection.cpp.

◆ update()

bool update ( const DBStorableData &  obj,
const ::Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 137 of file Collection.cpp.

◆ updateByQuery()

bool updateByQuery ( const std::string &  query,
const DBStorableData &  obj,
const ::Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 149 of file Collection.cpp.

◆ updateWithUserKey()

bool updateWithUserKey ( const DBStorableData &  obj,
const std::string &  keyField,
const ::Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 143 of file Collection.cpp.


The documentation for this class was generated from the following files: