Any event which has occurred on a Gda::Connection.
More...
Any event which has occurred on a Gda::Connection.
Events occuring on a connection are each represented as a ConnectionEvent object. Each Connection is responsible for keeping a list of past events; that list can be consulted using the Connection::get_events() function.
virtual Gnome::Gda::ConnectionEvent::~ConnectionEvent |
( |
| ) |
|
|
virtual |
Gnome::Gda::ConnectionEvent::ConnectionEvent |
( |
| ) |
|
|
protected |
glong Gnome::Gda::ConnectionEvent::get_code |
( |
| ) |
const |
- Returns
- event's code (the code is specific to the provider being used).
Glib::ustring Gnome::Gda::ConnectionEvent::get_description |
( |
| ) |
const |
Get the description of the event.
Note that is event's type is GDA_CONNECTION_EVENT_COMMAND, the the description is the SQL of the command.
- Returns
- event's description.
Get event's severity (from a simple notice to a fatal event)
- Returns
- The event type.
Glib::ustring Gnome::Gda::ConnectionEvent::get_sqlstate |
( |
| ) |
const |
Get the SQLSTATE value of event.
Even though the SQLSTATE values are specified by ANSI SQL and ODBC, consult each DBMS for the possible values. However, the "00000" (success) value means that there is no error, and the "HY000" (general error) value means an error but no better error code available.
- Returns
- event's SQL state.
static GType Gnome::Gda::ConnectionEvent::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
GdaConnectionEvent* Gnome::Gda::ConnectionEvent::gobj |
( |
| ) |
|
|
inline |
Provides access to the underlying C GObject.
const GdaConnectionEvent* Gnome::Gda::ConnectionEvent::gobj |
( |
| ) |
const |
|
inline |
Provides access to the underlying C GObject.
GdaConnectionEvent* Gnome::Gda::ConnectionEvent::gobj_copy |
( |
| ) |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Connection event type.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
Connection event type.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
void Gnome::Gda::ConnectionEvent::set_code |
( |
glong |
code | ) |
|
Sets event's code: the code is specific to the provider being used.
If you want to have a common understanding of the event codes, use get_gda_code() instead.
This function should not be called directly
- Parameters
-
void Gnome::Gda::ConnectionEvent::set_description |
( |
const Glib::ustring & |
description | ) |
|
Sets event's description.
This function should not be called directly.
- Parameters
-
description | A description. |
Sets event's severity (from a simple notice to a fatal event) This function should not be called directly.
- Parameters
-
type | The severity of the event. |
Sets event's gda code: that code is standardized by the libgda library.
If you want to specify the corresponding provider specific code, use get_code() or get_sqlstate() instead.
This function should not be called directly
- Parameters
-
void Gnome::Gda::ConnectionEvent::set_source |
( |
const Glib::ustring & |
source | ) |
|
Sets event's source; this function should not be called directly.
- Parameters
-
void Gnome::Gda::ConnectionEvent::set_sqlstate |
( |
const Glib::ustring & |
sqlstate | ) |
|
Changes the SQLSTATE code of event, this function should not be called directly.
Sets event's SQL state.
- Parameters
-
A Glib::wrap() method for this object.
- Parameters
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file:
- libgdamm/connectionevent.h