odbc::ResultSet Class Reference

Inheritance diagram for odbc::ResultSet:

odbc::ErrorHandler odbc::ErrorHandler List of all members.

Detailed Description

A result set.

Definition at line 38 of file resultset.h.

Public Types

enum  { CONCUR_READ_ONLY, CONCUR_UPDATABLE }
 ResultSet concurrency constants. More...
enum  { TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE }
 ResultSet type constants. More...
enum  { CONCUR_READ_ONLY, CONCUR_UPDATABLE }
 ResultSet concurrency constants. More...
enum  { TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE }
 ResultSet type constants. More...

Public Member Functions

bool absolute (int row)
 Moves the cursor to a specific row in this result set.
bool absolute (int row)
 Moves the cursor to a specific row in this result set.
void afterLast ()
 Places the cursor after the last row in the result set.
void afterLast ()
 Places the cursor after the last row in the result set.
void beforeFirst ()
 Places the cursor before the first row in the result set.
void beforeFirst ()
 Places the cursor before the first row in the result set.
void cancelRowUpdates ()
 Cancels any updates done to the current row.
void cancelRowUpdates ()
 Cancels any updates done to the current row.
void deleteRow ()
 Deletes the current row.
void deleteRow ()
 Deletes the current row.
int findColumn (const ODBCXX_STRING &colName)
 Find a column index by the column's name.
int findColumn (const ODBCXX_STRING &colName)
 Find a column index by the column's name.
bool first ()
 Moves to the first row in the result set.
bool first ()
 Moves to the first row in the result set.
ODBCXX_STREAM * getAsciiStream (const ODBCXX_STRING &colName)
 Fetches a column's value as a stream.
ODBCXX_STREAM * getAsciiStream (int idx)
 Fetches a column's value as a stream.
ODBCXX_STREAM * getAsciiStream (const ODBCXX_STRING &colName)
 Fetches a column's value as a stream.
ODBCXX_STREAM * getAsciiStream (int idx)
 Fetches a column's value as a stream.
ODBCXX_STREAM * getBinaryStream (const ODBCXX_STRING &colName)
 Fetches a column's value as a stream.
ODBCXX_STREAM * getBinaryStream (int idx)
 Fetches a column's value as a stream.
ODBCXX_STREAM * getBinaryStream (const ODBCXX_STRING &colName)
 Fetches a column's value as a stream.
ODBCXX_STREAM * getBinaryStream (int idx)
 Fetches a column's value as a stream.
bool getBoolean (const ODBCXX_STRING &colName)
 Gets a column's value as a bool.
bool getBoolean (int idx)
 Gets a column's value as a bool.
bool getBoolean (const ODBCXX_STRING &colName)
 Gets a column's value as a bool.
bool getBoolean (int idx)
 Gets a column's value as a bool.
signed char getByte (const ODBCXX_STRING &colName)
 Gets a column's value as a signed char.
signed char getByte (int idx)
 Gets a column's value as a signed char.
signed char getByte (const ODBCXX_STRING &colName)
 Gets a column's value as a signed char.
signed char getByte (int idx)
 Gets a column's value as a signed char.
ODBCXX_BYTES getBytes (const ODBCXX_STRING &colName)
 Gets a column's value as a chunk of bytes.
ODBCXX_BYTES getBytes (int idx)
 Gets a column's value as a chunk of bytes.
ODBCXX_BYTES getBytes (const ODBCXX_STRING &colName)
 Gets a column's value as a chunk of bytes.
ODBCXX_BYTES getBytes (int idx)
 Gets a column's value as a chunk of bytes.
int getConcurrency ()
 Gets the concurrency of this result set.
int getConcurrency ()
 Gets the concurrency of this result set.
ODBCXX_STRING getCursorName ()
 Gets the cursor name associated with this result set.
ODBCXX_STRING getCursorName ()
 Gets the cursor name associated with this result set.
Date getDate (const ODBCXX_STRING &colName)
 Gets a column's value as a Date.
Date getDate (int idx)
 Gets a column's value as a Date.
Date getDate (const ODBCXX_STRING &colName)
 Gets a column's value as a Date.
Date getDate (int idx)
 Gets a column's value as a Date.
double getDouble (const ODBCXX_STRING &colName)
 Gets a column's value as a double.
double getDouble (int idx)
 Gets a column's value as a double.
double getDouble (const ODBCXX_STRING &colName)
 Gets a column's value as a double.
double getDouble (int idx)
 Gets a column's value as a double.
int getFetchSize ()
 Gets this result set's current fetch size.
int getFetchSize ()
 Gets this result set's current fetch size.
float getFloat (const ODBCXX_STRING &colName)
 Gets a column's value as a float.
float getFloat (int idx)
 Gets a column's value as a float.
float getFloat (const ODBCXX_STRING &colName)
 Gets a column's value as a float.
float getFloat (int idx)
 Gets a column's value as a float.
int getInt (const ODBCXX_STRING &colName)
 Gets a column's value as an int.
int getInt (int idx)
 Gets a column's value as an int.
int getInt (const ODBCXX_STRING &colName)
 Gets a column's value as an int.
int getInt (int idx)
 Gets a column's value as an int.
Long getLong (const ODBCXX_STRING &colName)
 Gets a column's value as a Long.
Long getLong (int idx)
 Gets a column's value as a Long.
Long getLong (const ODBCXX_STRING &colName)
 Gets a column's value as a Long.
Long getLong (int idx)
 Gets a column's value as a Long.
ResultSetMetaDatagetMetaData ()
 Returns meta data about this result set.
ResultSetMetaDatagetMetaData ()
 Returns meta data about this result set.
int getRow ()
 Returns the current row number.
int getRow ()
 Returns the current row number.
short getShort (const ODBCXX_STRING &colName)
 Gets a column's value as a short.
short getShort (int idx)
 Gets a column's value as a short.
short getShort (const ODBCXX_STRING &colName)
 Gets a column's value as a short.
short getShort (int idx)
 Gets a column's value as a short.
StatementgetStatement ()
 Gets the Statement that created this result set.
StatementgetStatement ()
 Gets the Statement that created this result set.
ODBCXX_STRING getString (const ODBCXX_STRING &colName)
 Gets a column's value as a string.
ODBCXX_STRING getString (int idx)
 Gets a column's value as a string.
ODBCXX_STRING getString (const ODBCXX_STRING &colName)
 Gets a column's value as a string.
ODBCXX_STRING getString (int idx)
 Gets a column's value as a string.
Time getTime (const ODBCXX_STRING &colName)
 Gets a column's value as a Time.
Time getTime (int idx)
 Gets a column's value as a Time.
Time getTime (const ODBCXX_STRING &colName)
 Gets a column's value as a Time.
Time getTime (int idx)
 Gets a column's value as a Time.
Timestamp getTimestamp (const ODBCXX_STRING &colName)
 Gets a column's value as a Timestamp.
Timestamp getTimestamp (int idx)
 Gets a column's value as a Timestamp.
Timestamp getTimestamp (const ODBCXX_STRING &colName)
 Gets a column's value as a Timestamp.
Timestamp getTimestamp (int idx)
 Gets a column's value as a Timestamp.
int getType ()
 Gets the type of this result set.
int getType ()
 Gets the type of this result set.
void insertRow ()
 Inserts the current row.
void insertRow ()
 Inserts the current row.
bool isAfterLast ()
 Checks if the cursor is after the last row in the result set.
bool isAfterLast ()
 Checks if the cursor is after the last row in the result set.
bool isBeforeFirst ()
 Checks if the cursor is before the first row in the result set.
bool isBeforeFirst ()
 Checks if the cursor is before the first row in the result set.
bool isFirst ()
 Checks if the cursor is on the first row in the result set.
bool isFirst ()
 Checks if the cursor is on the first row in the result set.
bool isLast ()
 Checks if the cursor is on the last row in the result set.
bool isLast ()
 Checks if the cursor is on the last row in the result set.
bool last ()
 Moves to the last row in the result set.
bool last ()
 Moves to the last row in the result set.
void moveToCurrentRow ()
 Moves the cursor back to where it was before it was moved to the insert row.
void moveToCurrentRow ()
 Moves the cursor back to where it was before it was moved to the insert row.
void moveToInsertRow ()
 Moves the cursor to the 'insert row' of this result set.
void moveToInsertRow ()
 Moves the cursor to the 'insert row' of this result set.
bool next ()
 Moves to the next row in the result set.
bool next ()
 Moves to the next row in the result set.
bool previous ()
 Moves to the previous row in the result set.
bool previous ()
 Moves to the previous row in the result set.
void refreshRow ()
 Refreshes the current row.
void refreshRow ()
 Refreshes the current row.
bool relative (int rows)
 Moves the cursor inside the result set relative to the current row.
bool relative (int rows)
 Moves the cursor inside the result set relative to the current row.
bool rowDeleted ()
 Checks if the current row is deleted.
bool rowDeleted ()
 Checks if the current row is deleted.
bool rowInserted ()
 Checks if the current row was inserted.
bool rowInserted ()
 Checks if the current row was inserted.
bool rowUpdated ()
 Checks if the current row was updated.
bool rowUpdated ()
 Checks if the current row was updated.
void setFetchSize (int fetchSize)
 Sets this result set's fetch size (doesn't apply immediately).
void setFetchSize (int fetchSize)
 Sets this result set's fetch size (doesn't apply immediately).
void updateAsciiStream (const ODBCXX_STRING &colName, ODBCXX_STREAM *s, int len)
 Sets the value of a column to the contens of a stream.
void updateAsciiStream (int idx, ODBCXX_STREAM *s, int len)
 Sets the value of a column to a stream.
void updateAsciiStream (const ODBCXX_STRING &colName, ODBCXX_STREAM *s, int len)
 Sets the value of a column to the contens of a stream.
void updateAsciiStream (int idx, ODBCXX_STREAM *s, int len)
 Sets the value of a column to a stream.
void updateBinaryStream (const ODBCXX_STRING &colName, ODBCXX_STREAM *s, int len)
 Sets the value of a column to the contens of a stream.
void updateBinaryStream (int idx, ODBCXX_STREAM *s, int len)
 Sets the value of a column to the contens of a stream.
void updateBinaryStream (const ODBCXX_STRING &colName, ODBCXX_STREAM *s, int len)
 Sets the value of a column to the contens of a stream.
void updateBinaryStream (int idx, ODBCXX_STREAM *s, int len)
 Sets the value of a column to the contens of a stream.
void updateBoolean (const ODBCXX_STRING &colName, bool val)
 Sets the value of a column to a bool.
void updateBoolean (int idx, bool val)
 Sets the value of a column to a bool.
void updateBoolean (const ODBCXX_STRING &colName, bool val)
 Sets the value of a column to a bool.
void updateBoolean (int idx, bool val)
 Sets the value of a column to a bool.
void updateByte (const ODBCXX_STRING &colName, signed char val)
 Sets the value of a column to a signed char.
void updateByte (int idx, signed char val)
 Sets the value of a column to a signed char.
void updateByte (const ODBCXX_STRING &colName, signed char val)
 Sets the value of a column to a signed char.
void updateByte (int idx, signed char val)
 Sets the value of a column to a signed char.
void updateBytes (const ODBCXX_STRING &colName, const ODBCXX_BYTES &val)
 Sets the value of a column to a chunk of bytes.
void updateBytes (int idx, const ODBCXX_BYTES &val)
 Sets the value of a column to a chunk of bytes.
void updateBytes (const ODBCXX_STRING &colName, const ODBCXX_BYTES &val)
 Sets the value of a column to a chunk of bytes.
void updateBytes (int idx, const ODBCXX_BYTES &val)
 Sets the value of a column to a chunk of bytes.
void updateDate (const ODBCXX_STRING &colName, const Date &val)
 Sets the value of a column to a Date.
void updateDate (int idx, const Date &val)
 Sets the value of a column to a Date.
void updateDate (const ODBCXX_STRING &colName, const Date &val)
 Sets the value of a column to a Date.
void updateDate (int idx, const Date &val)
 Sets the value of a column to a Date.
void updateDouble (const ODBCXX_STRING &colName, double val)
 Sets the value of a column to a double.
void updateDouble (int idx, double val)
 Sets the value of a column to a double.
void updateDouble (const ODBCXX_STRING &colName, double val)
 Sets the value of a column to a double.
void updateDouble (int idx, double val)
 Sets the value of a column to a double.
void updateFloat (const ODBCXX_STRING &colName, float val)
 Sets the value of a column to a float.
void updateFloat (int idx, float val)
 Sets the value of a column to a float.
void updateFloat (const ODBCXX_STRING &colName, float val)
 Sets the value of a column to a float.
void updateFloat (int idx, float val)
 Sets the value of a column to a float.
void updateInt (const ODBCXX_STRING &colName, int val)
 Sets the value of a column to an int.
void updateInt (int idx, int val)
 Sets the value of a column to an int.
void updateInt (const ODBCXX_STRING &colName, int val)
 Sets the value of a column to an int.
void updateInt (int idx, int val)
 Sets the value of a column to an int.
void updateLong (const ODBCXX_STRING &colName, Long val)
 Sets the value of a column to a Long.
void updateLong (int idx, Long val)
 Sets the value of a column to a Long.
void updateLong (const ODBCXX_STRING &colName, Long val)
 Sets the value of a column to a Long.
void updateLong (int idx, Long val)
 Sets the value of a column to a Long.
void updateNull (const ODBCXX_STRING &colName)
 Sets the value of a column to NULL.
void updateNull (int idx)
 Sets the value of a column to NULL.
void updateNull (const ODBCXX_STRING &colName)
 Sets the value of a column to NULL.
void updateNull (int idx)
 Sets the value of a column to NULL.
void updateRow ()
 Updates the current row.
void updateRow ()
 Updates the current row.
void updateShort (const ODBCXX_STRING &colName, short val)
 Sets the value of a column to a short.
void updateShort (int idx, short val)
 Sets the value of a column to a short.
void updateShort (const ODBCXX_STRING &colName, short val)
 Sets the value of a column to a short.
void updateShort (int idx, short val)
 Sets the value of a column to a short.
void updateString (const ODBCXX_STRING &colName, const ODBCXX_STRING &val)
 Sets the value of a column to a string.
void updateString (int idx, const ODBCXX_STRING &val)
 Sets the value of a column to a string.
void updateString (const ODBCXX_STRING &colName, const ODBCXX_STRING &val)
 Sets the value of a column to a string.
void updateString (int idx, const ODBCXX_STRING &val)
 Sets the value of a column to a string.
void updateTime (const ODBCXX_STRING &colName, const Time &val)
 Sets the value of a column to a Time.
void updateTime (int idx, const Time &val)
 Sets the value of a column to a Time.
void updateTime (const ODBCXX_STRING &colName, const Time &val)
 Sets the value of a column to a Time.
void updateTime (int idx, const Time &val)
 Sets the value of a column to a Time.
void updateTimestamp (const ODBCXX_STRING &colName, const Timestamp &val)
 Sets the value of a column to a Timestamp.
void updateTimestamp (int idx, const Timestamp &val)
 Sets the value of a column to a Timestamp.
void updateTimestamp (const ODBCXX_STRING &colName, const Timestamp &val)
 Sets the value of a column to a Timestamp.
void updateTimestamp (int idx, const Timestamp &val)
 Sets the value of a column to a Timestamp.
bool wasNull ()
 Checks if the last fetched column value was NULL.
bool wasNull ()
 Checks if the last fetched column value was NULL.
virtual ~ResultSet ()
 Destructor.
virtual ~ResultSet ()
 Destructor.


Member Enumeration Documentation

anonymous enum

ResultSet concurrency constants.

Enumerator:
CONCUR_READ_ONLY  The ResultSet is read only.
CONCUR_UPDATABLE  The ResultSet is updatable.

Definition at line 113 of file resultset.h.

anonymous enum

ResultSet type constants.

Enumerator:
TYPE_FORWARD_ONLY  The result set only goes forward.

TYPE_SCROLL_INSENSITIVE  The result set is scrollable, but the data in it is not affected by changes in the database.
TYPE_SCROLL_SENSITIVE  The result set is scrollable and sensitive to database changes.

Definition at line 123 of file resultset.h.

anonymous enum

ResultSet concurrency constants.

Enumerator:
CONCUR_READ_ONLY  The ResultSet is read only.
CONCUR_UPDATABLE  The ResultSet is updatable.

Definition at line 113 of file resultset.h.

anonymous enum

ResultSet type constants.

Enumerator:
TYPE_FORWARD_ONLY  The result set only goes forward.

TYPE_SCROLL_INSENSITIVE  The result set is scrollable, but the data in it is not affected by changes in the database.
TYPE_SCROLL_SENSITIVE  The result set is scrollable and sensitive to database changes.

Definition at line 123 of file resultset.h.


Member Function Documentation

bool odbc::ResultSet::absolute ( int  row  ) 

Moves the cursor to a specific row in this result set.

If row is negative, the actual row number is calculated from the end of the result set. Calling absolute(0) is equivalent to calling beforeFirst()

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::absolute ( int  row  ) 

Moves the cursor to a specific row in this result set.

If row is negative, the actual row number is calculated from the end of the result set. Calling absolute(0) is equivalent to calling beforeFirst()

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::first (  ) 

Moves to the first row in the result set.

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::first (  ) 

Moves to the first row in the result set.

Returns:
true if the cursor is in the result set

Referenced by ODBCTapeStream::Open().

ODBCXX_STREAM* odbc::ResultSet::getAsciiStream ( const ODBCXX_STRING &  colName  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
colName The column name

ODBCXX_STREAM* odbc::ResultSet::getAsciiStream ( int  idx  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
idx The column index, starting at 1

ODBCXX_STREAM* odbc::ResultSet::getAsciiStream ( const ODBCXX_STRING &  colName  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
colName The column name

ODBCXX_STREAM* odbc::ResultSet::getAsciiStream ( int  idx  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
idx The column index, starting at 1

ODBCXX_STREAM* odbc::ResultSet::getBinaryStream ( const ODBCXX_STRING &  colName  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
colName The column name

ODBCXX_STREAM* odbc::ResultSet::getBinaryStream ( int  idx  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
idx The column index, starting at 1

ODBCXX_STREAM* odbc::ResultSet::getBinaryStream ( const ODBCXX_STRING &  colName  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
colName The column name

ODBCXX_STREAM* odbc::ResultSet::getBinaryStream ( int  idx  ) 

Fetches a column's value as a stream.

Note that the stream is owned by the result set and should in no case be deleted by the caller. Also, the returned stream is only valid while the cursor remains on this position.

Parameters:
idx The column index, starting at 1

bool odbc::ResultSet::getBoolean ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a bool.

Parameters:
colName The name of the column

bool odbc::ResultSet::getBoolean ( int  idx  ) 

Gets a column's value as a bool.

Parameters:
idx The column index, starting at 1

bool odbc::ResultSet::getBoolean ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a bool.

Parameters:
colName The name of the column

bool odbc::ResultSet::getBoolean ( int  idx  ) 

Gets a column's value as a bool.

Parameters:
idx The column index, starting at 1

signed char odbc::ResultSet::getByte ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a signed char.

Parameters:
colName The name of the column

signed char odbc::ResultSet::getByte ( int  idx  ) 

Gets a column's value as a signed char.

Parameters:
idx The column index, starting at 1

signed char odbc::ResultSet::getByte ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a signed char.

Parameters:
colName The name of the column

signed char odbc::ResultSet::getByte ( int  idx  ) 

Gets a column's value as a signed char.

Parameters:
idx The column index, starting at 1

ODBCXX_BYTES odbc::ResultSet::getBytes ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a chunk of bytes.

Parameters:
colName The name of the column

ODBCXX_BYTES odbc::ResultSet::getBytes ( int  idx  ) 

Gets a column's value as a chunk of bytes.

Parameters:
idx The column index, starting at 1

ODBCXX_BYTES odbc::ResultSet::getBytes ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a chunk of bytes.

Parameters:
colName The name of the column

ODBCXX_BYTES odbc::ResultSet::getBytes ( int  idx  ) 

Gets a column's value as a chunk of bytes.

Parameters:
idx The column index, starting at 1

Date odbc::ResultSet::getDate ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Date.

Parameters:
colName The name of the column

Date odbc::ResultSet::getDate ( int  idx  ) 

Gets a column's value as a Date.

Parameters:
idx The column index, starting at 1

Date odbc::ResultSet::getDate ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Date.

Parameters:
colName The name of the column

Date odbc::ResultSet::getDate ( int  idx  ) 

Gets a column's value as a Date.

Parameters:
idx The column index, starting at 1

double odbc::ResultSet::getDouble ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a double.

Parameters:
colName The name of the column

double odbc::ResultSet::getDouble ( int  idx  ) 

Gets a column's value as a double.

Parameters:
idx The column index, starting at 1

double odbc::ResultSet::getDouble ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a double.

Parameters:
colName The name of the column

double odbc::ResultSet::getDouble ( int  idx  ) 

Gets a column's value as a double.

Parameters:
idx The column index, starting at 1

float odbc::ResultSet::getFloat ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a float.

Parameters:
colName The name of the column

float odbc::ResultSet::getFloat ( int  idx  ) 

Gets a column's value as a float.

Parameters:
idx The column index, starting at 1

float odbc::ResultSet::getFloat ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a float.

Parameters:
colName The name of the column

float odbc::ResultSet::getFloat ( int  idx  ) 

Gets a column's value as a float.

Parameters:
idx The column index, starting at 1

int odbc::ResultSet::getInt ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as an int.

Parameters:
colName The name of the column

int odbc::ResultSet::getInt ( int  idx  ) 

Gets a column's value as an int.

Parameters:
idx The column index, starting at 1

int odbc::ResultSet::getInt ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as an int.

Parameters:
colName The name of the column

int odbc::ResultSet::getInt ( int  idx  ) 

Gets a column's value as an int.

Parameters:
idx The column index, starting at 1

Long odbc::ResultSet::getLong ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Long.

Parameters:
colName The name of the column

Long odbc::ResultSet::getLong ( int  idx  ) 

Gets a column's value as a Long.

Parameters:
idx The column index, starting at 1

Long odbc::ResultSet::getLong ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Long.

Parameters:
colName The name of the column

Long odbc::ResultSet::getLong ( int  idx  ) 

Gets a column's value as a Long.

Parameters:
idx The column index, starting at 1

ResultSetMetaData* odbc::ResultSet::getMetaData (  )  [inline]

Returns meta data about this result set.

See also:
ResultSetMetaData

Definition at line 227 of file resultset.h.

ResultSetMetaData* odbc::ResultSet::getMetaData (  )  [inline]

Returns meta data about this result set.

See also:
ResultSetMetaData

Definition at line 227 of file resultset.h.

int odbc::ResultSet::getRow (  ) 

Returns the current row number.

Returns:
The current row number in the result set, or 0 if it can't be determined.

int odbc::ResultSet::getRow (  ) 

Returns the current row number.

Returns:
The current row number in the result set, or 0 if it can't be determined.

Referenced by ODBCTapeStream::Open().

short odbc::ResultSet::getShort ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a short.

Parameters:
colName The name of the column

short odbc::ResultSet::getShort ( int  idx  ) 

Gets a column's value as a short.

Parameters:
idx The column index, starting at 1

short odbc::ResultSet::getShort ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a short.

Parameters:
colName The name of the column

short odbc::ResultSet::getShort ( int  idx  ) 

Gets a column's value as a short.

Parameters:
idx The column index, starting at 1

ODBCXX_STRING odbc::ResultSet::getString ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a string.

Parameters:
colName The name of the column

ODBCXX_STRING odbc::ResultSet::getString ( int  idx  ) 

Gets a column's value as a string.

Parameters:
idx The column index, starting at 1

ODBCXX_STRING odbc::ResultSet::getString ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a string.

Parameters:
colName The name of the column

ODBCXX_STRING odbc::ResultSet::getString ( int  idx  ) 

Gets a column's value as a string.

Parameters:
idx The column index, starting at 1

Referenced by ODBCTapeStream::ReadLine().

Time odbc::ResultSet::getTime ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Time.

Parameters:
colName The name of the column

Time odbc::ResultSet::getTime ( int  idx  ) 

Gets a column's value as a Time.

Parameters:
idx The column index, starting at 1

Time odbc::ResultSet::getTime ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Time.

Parameters:
colName The name of the column

Time odbc::ResultSet::getTime ( int  idx  ) 

Gets a column's value as a Time.

Parameters:
idx The column index, starting at 1

Timestamp odbc::ResultSet::getTimestamp ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Timestamp.

Parameters:
colName The name of the column

Timestamp odbc::ResultSet::getTimestamp ( int  idx  ) 

Gets a column's value as a Timestamp.

Parameters:
idx The column index, starting at 1

Timestamp odbc::ResultSet::getTimestamp ( const ODBCXX_STRING &  colName  ) 

Gets a column's value as a Timestamp.

Parameters:
colName The name of the column

Timestamp odbc::ResultSet::getTimestamp ( int  idx  ) 

Gets a column's value as a Timestamp.

Parameters:
idx The column index, starting at 1

void odbc::ResultSet::insertRow (  ) 

Inserts the current row.

Only valid while on the insert row.

See also:
moveToInsertRow()

void odbc::ResultSet::insertRow (  ) 

Inserts the current row.

Only valid while on the insert row.

See also:
moveToInsertRow()

bool odbc::ResultSet::last (  ) 

Moves to the last row in the result set.

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::last (  ) 

Moves to the last row in the result set.

Returns:
true if the cursor is in the result set

Referenced by ODBCTapeStream::Open().

void odbc::ResultSet::moveToInsertRow (  ) 

Moves the cursor to the 'insert row' of this result set.

Warning:
The only valid methods while on the insert row are updateXXX(), insertRow() and moveToCurrentRow().
See also:
moveToCurrentRow()

void odbc::ResultSet::moveToInsertRow (  ) 

Moves the cursor to the 'insert row' of this result set.

Warning:
The only valid methods while on the insert row are updateXXX(), insertRow() and moveToCurrentRow().
See also:
moveToCurrentRow()

bool odbc::ResultSet::next (  ) 

Moves to the next row in the result set.

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::next (  ) 

Moves to the next row in the result set.

Returns:
true if the cursor is in the result set

Referenced by ODBCTapeStream::ReadLine().

bool odbc::ResultSet::previous (  ) 

Moves to the previous row in the result set.

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::previous (  ) 

Moves to the previous row in the result set.

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::relative ( int  rows  ) 

Moves the cursor inside the result set relative to the current row.

Negative values are allowed. This call is illegal if there is no current row.

Returns:
true if the cursor is in the result set

bool odbc::ResultSet::relative ( int  rows  ) 

Moves the cursor inside the result set relative to the current row.

Negative values are allowed. This call is illegal if there is no current row.

Returns:
true if the cursor is in the result set

void odbc::ResultSet::updateAsciiStream ( const ODBCXX_STRING &  colName,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to the contens of a stream.

Parameters:
colName The column name
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateAsciiStream ( int  idx,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to a stream.

Parameters:
idx The column index, starting at 1
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateAsciiStream ( const ODBCXX_STRING &  colName,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to the contens of a stream.

Parameters:
colName The column name
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateAsciiStream ( int  idx,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to a stream.

Parameters:
idx The column index, starting at 1
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateBinaryStream ( const ODBCXX_STRING &  colName,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to the contens of a stream.

Parameters:
colName The column name
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateBinaryStream ( int  idx,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to the contens of a stream.

Parameters:
idx The column index, starting at 1
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateBinaryStream ( const ODBCXX_STRING &  colName,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to the contens of a stream.

Parameters:
colName The column name
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateBinaryStream ( int  idx,
ODBCXX_STREAM *  s,
int  len 
)

Sets the value of a column to the contens of a stream.

Parameters:
idx The column index, starting at 1
s The stream to assign
len The number of bytes in the stream

void odbc::ResultSet::updateBoolean ( const ODBCXX_STRING &  colName,
bool  val 
)

Sets the value of a column to a bool.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateBoolean ( int  idx,
bool  val 
)

Sets the value of a column to a bool.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateBoolean ( const ODBCXX_STRING &  colName,
bool  val 
)

Sets the value of a column to a bool.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateBoolean ( int  idx,
bool  val 
)

Sets the value of a column to a bool.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateByte ( const ODBCXX_STRING &  colName,
signed char  val 
)

Sets the value of a column to a signed char.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateByte ( int  idx,
signed char  val 
)

Sets the value of a column to a signed char.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateByte ( const ODBCXX_STRING &  colName,
signed char  val 
)

Sets the value of a column to a signed char.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateByte ( int  idx,
signed char  val 
)

Sets the value of a column to a signed char.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateBytes ( const ODBCXX_STRING &  colName,
const ODBCXX_BYTES &  val 
)

Sets the value of a column to a chunk of bytes.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateBytes ( int  idx,
const ODBCXX_BYTES &  val 
)

Sets the value of a column to a chunk of bytes.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateBytes ( const ODBCXX_STRING &  colName,
const ODBCXX_BYTES &  val 
)

Sets the value of a column to a chunk of bytes.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateBytes ( int  idx,
const ODBCXX_BYTES &  val 
)

Sets the value of a column to a chunk of bytes.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateDate ( const ODBCXX_STRING &  colName,
const Date val 
)

Sets the value of a column to a Date.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateDate ( int  idx,
const Date val 
)

Sets the value of a column to a Date.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateDate ( const ODBCXX_STRING &  colName,
const Date val 
)

Sets the value of a column to a Date.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateDate ( int  idx,
const Date val 
)

Sets the value of a column to a Date.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateDouble ( const ODBCXX_STRING &  colName,
double  val 
)

Sets the value of a column to a double.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateDouble ( int  idx,
double  val 
)

Sets the value of a column to a double.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateDouble ( const ODBCXX_STRING &  colName,
double  val 
)

Sets the value of a column to a double.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateDouble ( int  idx,
double  val 
)

Sets the value of a column to a double.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateFloat ( const ODBCXX_STRING &  colName,
float  val 
)

Sets the value of a column to a float.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateFloat ( int  idx,
float  val 
)

Sets the value of a column to a float.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateFloat ( const ODBCXX_STRING &  colName,
float  val 
)

Sets the value of a column to a float.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateFloat ( int  idx,
float  val 
)

Sets the value of a column to a float.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateInt ( const ODBCXX_STRING &  colName,
int  val 
)

Sets the value of a column to an int.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateInt ( int  idx,
int  val 
)

Sets the value of a column to an int.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateInt ( const ODBCXX_STRING &  colName,
int  val 
)

Sets the value of a column to an int.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateInt ( int  idx,
int  val 
)

Sets the value of a column to an int.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateLong ( const ODBCXX_STRING &  colName,
Long  val 
)

Sets the value of a column to a Long.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateLong ( int  idx,
Long  val 
)

Sets the value of a column to a Long.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateLong ( const ODBCXX_STRING &  colName,
Long  val 
)

Sets the value of a column to a Long.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateLong ( int  idx,
Long  val 
)

Sets the value of a column to a Long.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateNull ( const ODBCXX_STRING &  colName  ) 

Sets the value of a column to NULL.

Parameters:
colName The column name

void odbc::ResultSet::updateNull ( int  idx  ) 

Sets the value of a column to NULL.

Parameters:
idx The column index, starting at 1

void odbc::ResultSet::updateNull ( const ODBCXX_STRING &  colName  ) 

Sets the value of a column to NULL.

Parameters:
colName The column name

void odbc::ResultSet::updateNull ( int  idx  ) 

Sets the value of a column to NULL.

Parameters:
idx The column index, starting at 1

void odbc::ResultSet::updateRow (  ) 

Updates the current row.

void odbc::ResultSet::updateRow (  ) 

Updates the current row.

void odbc::ResultSet::updateShort ( const ODBCXX_STRING &  colName,
short  val 
)

Sets the value of a column to a short.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateShort ( int  idx,
short  val 
)

Sets the value of a column to a short.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateShort ( const ODBCXX_STRING &  colName,
short  val 
)

Sets the value of a column to a short.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateShort ( int  idx,
short  val 
)

Sets the value of a column to a short.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateString ( const ODBCXX_STRING &  colName,
const ODBCXX_STRING &  val 
)

Sets the value of a column to a string.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateString ( int  idx,
const ODBCXX_STRING &  val 
)

Sets the value of a column to a string.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateString ( const ODBCXX_STRING &  colName,
const ODBCXX_STRING &  val 
)

Sets the value of a column to a string.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateString ( int  idx,
const ODBCXX_STRING &  val 
)

Sets the value of a column to a string.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateTime ( const ODBCXX_STRING &  colName,
const Time val 
)

Sets the value of a column to a Time.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateTime ( int  idx,
const Time val 
)

Sets the value of a column to a Time.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateTime ( const ODBCXX_STRING &  colName,
const Time val 
)

Sets the value of a column to a Time.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateTime ( int  idx,
const Time val 
)

Sets the value of a column to a Time.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateTimestamp ( const ODBCXX_STRING &  colName,
const Timestamp val 
)

Sets the value of a column to a Timestamp.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateTimestamp ( int  idx,
const Timestamp val 
)

Sets the value of a column to a Timestamp.

Parameters:
idx The column index, starting at 1
val The value to set

void odbc::ResultSet::updateTimestamp ( const ODBCXX_STRING &  colName,
const Timestamp val 
)

Sets the value of a column to a Timestamp.

Parameters:
colName The name of the column
val The value to set

void odbc::ResultSet::updateTimestamp ( int  idx,
const Timestamp val 
)

Sets the value of a column to a Timestamp.

Parameters:
idx The column index, starting at 1
val The value to set

bool odbc::ResultSet::wasNull (  )  [inline]

Checks if the last fetched column value was NULL.

Note that if this is true, the returned value was undefined.

Definition at line 428 of file resultset.h.

bool odbc::ResultSet::wasNull (  )  [inline]

Checks if the last fetched column value was NULL.

Note that if this is true, the returned value was undefined.

Definition at line 428 of file resultset.h.


The documentation for this class was generated from the following files:
GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy