A comparison predicate to be evaluated on a table. More...
#include <sqludr.h>
Public Member Functions | |
| int | getColumnNumber () const |
| bool | hasAConstantValue () const |
| std::string | getConstValue () const |
A comparison predicate to be evaluated on a table.
A predicate that compares a column value to a constant or another value that evaluates to a constant at runtime, like an SQL query parameter.
| int ComparisonPredicateInfo::getColumnNumber | ( | ) | const |
Get the column number of the column in this comparison predicate.
| std::string ComparisonPredicateInfo::getConstValue | ( | ) | const |
Return the value, as a string, of the constant in this predicate.
This returns the value, using SQL syntax, of the constant involved in the comparison predicate. It throws an exception if method hasAConstantValue() would return false.
| UDRException |
| bool ComparisonPredicateInfo::hasAConstantValue | ( | ) | const |
Return whether this comparison value involves a constant.
The method returns whether the comparison predicate is of the form "column" "op" "constant". If it returns false, the predicate compares the column with a parameter or some other value not available to the UDR. Predicates that do not involve a constant cannot be evaluated in the UDR itself, since the comparison value is not available to the UDR. They can be evaluated on a table-valued input, however.
1.6.1