OpenDBX/C++ API/1.0/Result

From Linuxnetworks
< OpenDBX‎ | C++ API‎ | 1.0
Revision as of 10:36, 4 March 2009 by Nose (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Public Member Functions

Result(
   const Result &ref
) throw ()

Copy constructor.

~Result() throw ()

Destroys a Result instance if no other references exist.

unsigned long columnCount() throw ( std::exception )

Returns the number of columns available in this result set.

const string columnName(
   unsigned long pos
) throw ( std::exception )

Returns the name of the column in the current result set.

unsigned long columnPos(
   const string &name
) throw ( std::exception )

Maps the column name to the column number required by other methods.

odbxtype columnType(
   unsigned long pos
) throw ( std::exception )

Returns the type of the column in the current result set.

unsigned long fieldLength(
   unsigned long pos
) throw ( std::exception )

Returns the size of the content in the current row at the specified postion.

const char* fieldValue(
   unsigned long pos
) throw ( std::exception )

Returns a pointer to the content in the current row at the specified postion.

void finish() throw ( std::exception )

Retrieves unfetched rows and cleans up the available result sets.

Lob getLob(
   const char* value
) throw ( std::exception )

Creates a large object instance if supported by the database.

odbxres getResult(
   struct timeval* timeout=NULL,
   unsigned long chunk=0
) throw ( std::exception )

Fetches one result set from the database server.

odbxrow getRow() throw ( std::exception )

Makes data of next row available.

Result& operator=(
   const Result &ref
) throw ()

Assigns a Result instance to another one.

uint64_t rowsAffected() throw ( std::exception )

Returns the number of rows affected by DELETE, INSERT of UPDATE statements.