Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SQLDBC::SQLDBC_ConnectionItem Class Reference

Inheritance diagram for SQLDBC::SQLDBC_ConnectionItem:

SQLDBC::SQLDBC_Connection SQLDBC::SQLDBC_ResultSet SQLDBC::SQLDBC_RowSet SQLDBC::SQLDBC_Statement SQLDBC::SQLDBC_UpdatableRowSet SQLDBC::SQLDBC_PreparedStatement List of all members.

Detailed Description

Base class to administrate the error handling within SQLDBC.

A ConnectionItem is an object that is referenced by connection, and it is directly bound to it. A Statement, PreparedStatement or a ResultSet object references this object.. Any SQLDBC_ConnectionItem has an ErrorHndl and a Warning member. They are set after an, unsuccessful operation.

Definition at line 330 of file SQLDBC.h.

Public Member Functions


Member Function Documentation

void SQLDBC::SQLDBC_ConnectionItem::clearError  ) 
 

Deletes the error has been stored.

void SQLDBC::SQLDBC_ConnectionItem::clearWarnings  ) 
 

Deletes the warning stored in the SQLWarning object.

SQLDBC_ErrorHndl& SQLDBC::SQLDBC_ConnectionItem::error  ) 
 

Returns a reference to the ErrorHndl object.

Note:
Applications should retrieve the content of the SQLDBC_ErrorHndl object immediatly since an new call to any SQLDBC function except the warning() method will empty SQLDBC_ErrorHndl object.
Returns:
An SQLDBC_ErrorHndl object.

SQLDBC_SQLWarning* SQLDBC::SQLDBC_ConnectionItem::warning  ) 
 

Returns a reference to an SQLWarning object stored in the SQLDBC_ConnectionItem object.

Note:
Getting the reference to the SQLWarning object will not clear the ErrorHndl object. All other function calls will empty the ErrorHndl object.
Returns:
The SQLWarning object stored in the item.