mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
Rearrange some code and add getter for fullCollectionName
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
|||||||
|
|
||||||
virtual ~QueryRequest();
|
virtual ~QueryRequest();
|
||||||
/// Destructor
|
/// Destructor
|
||||||
|
|
||||||
|
|
||||||
Flags getFlags() const;
|
Flags getFlags() const;
|
||||||
/// Returns the flags
|
/// Returns the flags
|
||||||
@@ -85,12 +85,8 @@ public:
|
|||||||
/// Set the flags
|
/// Set the flags
|
||||||
|
|
||||||
|
|
||||||
Document& query();
|
std::string fullCollectionName() const;
|
||||||
/// Returns the query document
|
/// Returns the <db>.<collection> used for this query
|
||||||
|
|
||||||
|
|
||||||
Document& returnFieldSelector();
|
|
||||||
/// Returns the selector document
|
|
||||||
|
|
||||||
|
|
||||||
Int32 getNumberToSkip() const;
|
Int32 getNumberToSkip() const;
|
||||||
@@ -108,6 +104,15 @@ public:
|
|||||||
void setNumberToReturn(Int32 n);
|
void setNumberToReturn(Int32 n);
|
||||||
/// Sets the number to return (limit)
|
/// Sets the number to return (limit)
|
||||||
|
|
||||||
|
|
||||||
|
Document& query();
|
||||||
|
/// Returns the query document
|
||||||
|
|
||||||
|
|
||||||
|
Document& returnFieldSelector();
|
||||||
|
/// Returns the selector document
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void buildRequest(BinaryWriter& writer);
|
void buildRequest(BinaryWriter& writer);
|
||||||
@@ -128,41 +133,55 @@ private:
|
|||||||
Document _returnFieldSelector;
|
Document _returnFieldSelector;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
inline QueryRequest::Flags QueryRequest::getFlags() const
|
inline QueryRequest::Flags QueryRequest::getFlags() const
|
||||||
{
|
{
|
||||||
return _flags;
|
return _flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline void QueryRequest::setFlags(QueryRequest::Flags flags)
|
inline void QueryRequest::setFlags(QueryRequest::Flags flags)
|
||||||
{
|
{
|
||||||
_flags = flags;
|
_flags = flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline std::string QueryRequest::fullCollectionName() const
|
||||||
|
{
|
||||||
|
return _fullCollectionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Document& QueryRequest::query()
|
inline Document& QueryRequest::query()
|
||||||
{
|
{
|
||||||
return _query;
|
return _query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Document& QueryRequest::returnFieldSelector()
|
inline Document& QueryRequest::returnFieldSelector()
|
||||||
{
|
{
|
||||||
return _returnFieldSelector;
|
return _returnFieldSelector;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Int32 QueryRequest::getNumberToSkip() const
|
inline Int32 QueryRequest::getNumberToSkip() const
|
||||||
{
|
{
|
||||||
return _numberToSkip;
|
return _numberToSkip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline void QueryRequest::setNumberToSkip(Int32 n)
|
inline void QueryRequest::setNumberToSkip(Int32 n)
|
||||||
{
|
{
|
||||||
_numberToSkip = n;
|
_numberToSkip = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Int32 QueryRequest::getNumberToReturn() const
|
inline Int32 QueryRequest::getNumberToReturn() const
|
||||||
{
|
{
|
||||||
return _numberToReturn;
|
return _numberToReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline void QueryRequest::setNumberToReturn(Int32 n)
|
inline void QueryRequest::setNumberToReturn(Int32 n)
|
||||||
{
|
{
|
||||||
_numberToReturn = n;
|
_numberToReturn = n;
|
||||||
|
|||||||
Reference in New Issue
Block a user