This project has retired. For details please refer to its Attic page.
tmudr: tmudr::ComparisonPredicateInfo Class Reference

tmudr::ComparisonPredicateInfo Class Reference

A comparison predicate to be evaluated on a table. More...

#include <sqludr.h>

Inheritance diagram for tmudr::ComparisonPredicateInfo:
tmudr::PredicateInfo

Public Member Functions

int getColumnNumber () const
bool hasAConstantValue () const
std::string getConstValue () const

Detailed Description

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.


Member Function Documentation

int ComparisonPredicateInfo::getColumnNumber (  )  const

Get the column number of the column in this comparison predicate.

Returns:
Column number.
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.

See also:
hasAConstantValue()
Returns:
Value of the constant in this comparison predicate.
Exceptions:
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.

Returns:
true if the comparison is with a constant, false otherwise

The documentation for this class was generated from the following files:
 All Data Structures Functions Enumerations Enumerator

Generated on 31 Aug 2016 for tmudr by  doxygen 1.6.1