RDbRowConstraint Class Reference

class RDbRowConstraint

Represents a pre-compiled SQL search-condition, which can be used to test against the current row in a rowset.

The constraint is compiled against a specific rowset, and can only be matched against the same rowset using the RDbRowSet::MatchL() function.

RDbRowSet

Public Member Functions
IMPORT_C voidClose()
IMPORT_C TIntOpen(const RDbRowSet &, TDbQuery)
Private Attributes
RDbHandle< CDbRowConstraint >iConstraint

Member Functions Documentation

Close()

IMPORT_C voidClose()

Open(const RDbRowSet &, TDbQuery)

IMPORT_C TIntOpen(const RDbRowSet &aView,
TDbQueryaCriteria
)

Compiles the specified SQL search-condition for matching against rows in the specified rowset. The text comparison supplied in aCriteria is used for all text columns in the constraint.

capability
Note For a secure shared database, the caller must satisfy the read access policy for the table.

Parameters

const RDbRowSet & aViewThe rowset to which the constraint will apply.
TDbQuery aCriteriaThe SQL string and the text comparison mode for the constraint.

Member Data Documentation

RDbHandle< CDbRowConstraint > iConstraint

RDbHandle< CDbRowConstraint >iConstraint[private]