Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GQL::ModResultSet Class Reference

#include <mod-result-set.h>

Inheritance diagram for GQL::ModResultSet:

GQL::ResultSet GQL::Warnable List of all members.

Public Member Functions

 ModResultSet (Connection *conn, int cols)
virtual ~ModResultSet ()
virtual bool next () throw (SQLException)
virtual SQLObjectget (int col, SQLObject *obj) const throw (SQLException)
 Get a value.

virtual const ResultSetMetaDataget_meta_data () const
void append (const char *const *tuple)
 Append a tuple.

void append (std::string **tuple)
 Append a tuple.

void set_meta_data (ResultSetMetaData *metadata)

Constructor & Destructor Documentation

GQL::ModResultSet::ModResultSet Connection conn,
int  cols
 

virtual GQL::ModResultSet::~ModResultSet  )  [virtual]
 


Member Function Documentation

void GQL::ModResultSet::append std::string **  tuple  ) 
 

Append a tuple.

Parameters:
tuple An array of pointers to strings. The array size must be the same as the column number. The strings must have been allocated with operator new, and they will be deleted in the ModResultSet destructor.

void GQL::ModResultSet::append const char *const *  tuple  ) 
 

Append a tuple.

Parameters:
tuple An array of character pointers. The array must be (at least of) as big as the column number. The character pointers are treated as null-terminated strings and are copied. If you want to append data that contains embeded nulls, use the other append() method. A null pointer in the array is treated as the SQL NULL value.

virtual SQLObject* GQL::ModResultSet::get int  col,
SQLObject obj
const throw (SQLException) [virtual]
 

Get a value.

Parameters:
col Column index.
obj SQLObject to fetch value into.
Returns:
obj.

Implements GQL::ResultSet.

virtual const ResultSetMetaData* GQL::ModResultSet::get_meta_data  )  const [virtual]
 

Implements GQL::ResultSet.

virtual bool GQL::ModResultSet::next  )  throw (SQLException) [virtual]
 

Implements GQL::ResultSet.

void GQL::ModResultSet::set_meta_data ResultSetMetaData metadata  ) 
 


The documentation for this class was generated from the following file:
Generated on Thu May 1 18:08:02 2003 for gql by doxygen1.3