Library: Data
Package: DataCore
Header: Poco/Data/Limit.h
Limit stores information how many rows a query should return.
Member Functions: isHardLimit, isLowerLimit, operator !=, operator ==, value
typedef Poco::UInt32 SizeT;
LIMIT_UNLIMITED = ~((SizeT)0)
Limit(
SizeT value,
bool hardLimit = false,
bool isLowerLimit = false
);
Creates the Limit.
Value contains the upper row hint, if hardLimit is set to true, the limit acts as a hard border, ie. every query must return exactly value rows, returning more than value objects will throw an exception! LowerLimits always act as hard-limits!
A value of LIMIT_UNLIMITED disables the limit.
~Limit();
Destroys the Limit.
bool isHardLimit() const;
Returns true if the limit is a hard limit.
bool isLowerLimit() const;
Returns true if the limit is a lower limit, otherwise it is an upperLimit
bool operator != (
const Limit & other
) const;
Inequality operator.
bool operator == (
const Limit & other
) const;
Equality operator.
SizeT value() const;
Returns the value of the limit