Contents Index Get<Column> generated method Set<Column> generated method

UltraLite Static C++ User's Guide
  C++ API Reference
    Generated result set class

Open method


Prototype 

bool Open( ULConnection * conn,
datatype value, ... )

Description 

The UltraLite generator defines a class for each named statement in an UltraLite project that returns a result set. This class inherits methods from ULCursor.

You must supply a value for each placeholder in the result set.

Parameters 

conn    The connection on which the result set is to be opened.

value    The value for the placeholder in the result set.

Example 

The following query contains a single placeholder:

select prod_id, price, prod_name
from "DBA".ulproduct
where price < ?

The generator writes out the following methods for the object (in addition to some others):

bool Open( ULConnection* conn,
    long Price    );
bool Open( ULConnection* conn );
bool SetParameter( int index, long &value );
See also 

SetParameter method


Contents Index Get<Column> generated method Set<Column> generated method