Library: Data
Package: DataCore
Header: Poco/Data/Limit.h
Limit stores information how many rows a query should return.
Member Functions: isHardLimit, isLowerLimit, value
LIMIT_UNLIMITED = 0xffffffffu
Limit(
Poco::UInt32 value,
bool hardLimit,
bool isLowerLimit
);
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
Poco::UInt32 value() const;
Returns the value of the limit