OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
#include <types.hpp>
Inherits ocilib::core::HandleHolder< OCI_Event * >.
Public Types | |
enum | EventTypeValues { DatabaseStart = OCI_ENT_STARTUP , DatabaseShutdown = OCI_ENT_SHUTDOWN , DatabaseShutdownAny = OCI_ENT_SHUTDOWN_ANY , DatabaseDrop = OCI_ENT_DROP_DATABASE , Unregister = OCI_ENT_DEREGISTER , ObjectChanged = OCI_ENT_OBJECT_CHANGED } |
Event type enumerated values. More... | |
enum | ObjectEventValues { ObjectInserted = OCI_ONT_INSERT , ObjectUpdated = OCI_ONT_UPDATE , ObjectDeleted = OCI_ONT_DELETE , ObjectAltered = OCI_ONT_ALTER , ObjectDropped = OCI_ONT_DROP , ObjectGeneric = OCI_ONT_GENERIC } |
Object events enumerated values. More... | |
typedef core::Enum< EventTypeValues > | EventType |
Event type. | |
typedef core::Enum< ObjectEventValues > | ObjectEvent |
Object events. | |
Public Member Functions | |
EventType | GetType () const |
Return the type of event reported by a notification. | |
ObjectEvent | GetObjectEvent () const |
Return the type of operation reported by a notification. | |
ostring | GetDatabaseName () const |
Return the name of the database that generated the event. | |
ostring | GetObjectName () const |
Return the name of the object that generated the event. | |
ostring | GetRowID () const |
Return the rowid of the altered database object row. | |
Subscription | GetSubscription () const |
Return the subscription that generated this event. | |
This class wraps the OCILIB object handle OCI_Event and its related methods
Object events.
Possible values are Event::ObjectEventValues
Event type enumerated values.
Object events enumerated values.
|
inline |
Return the type of event reported by a notification.
Definition at line 33 of file Event.hpp.
References ocilib::core::Check(), and OCI_EventGetType().
|
inline |
Return the type of operation reported by a notification.
Definition at line 38 of file Event.hpp.
References ocilib::core::Check(), and OCI_EventGetOperation().
|
inline |
Return the name of the database that generated the event.
Definition at line 43 of file Event.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_EventGetDatabase().
|
inline |
Return the name of the object that generated the event.
Definition at line 48 of file Event.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_EventGetObject().
|
inline |
Return the rowid of the altered database object row.
Definition at line 53 of file Event.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_EventGetRowid().
|
inline |
Return the subscription that generated this event.
Definition at line 58 of file Event.hpp.
References ocilib::core::Check(), and OCI_EventGetSubscription().