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 void Close ()
IMPORT_C TInt Open (const RDbRowSet &, TDbQuery )
Private Attributes
RDbHandle < CDbRowConstraint > iConstraint

Member Functions Documentation

Close()

IMPORT_C void Close ( )

Open(const RDbRowSet &, TDbQuery)

IMPORT_C TInt Open ( const RDbRowSet & aView,
TDbQuery aCriteria
)

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 & aView The rowset to which the constraint will apply.
TDbQuery aCriteria The SQL string and the text comparison mode for the constraint.

Member Data Documentation

RDbHandle< CDbRowConstraint > iConstraint

RDbHandle < CDbRowConstraint > iConstraint [private]