![]() |
OCILIB (C and C++ Driver for Oracle)
4.7.3
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. More... | |
typedef core::Enum< ObjectEventValues > | ObjectEvent |
Object events. More... | |
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. More... | |
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. More... | |
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 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 object that generated the event.
Definition at line 48 of file Event.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_EventGetObject().