Abstract
This section discusses the Event class, its
methods and defined types.
Parent class.
NdbDictionary
Child classes. None
Description. This class represents a database event in a MySQL Cluster.
Methods.
The following table lists the public methods of the
Event class and the purpose or use of each
method:
| Method | Purpose / Use |
|---|---|
Event() |
Class constructor |
~Event() |
Destructor |
addEventColumn() |
Adds a column on which events should be detected |
addEventColumns() |
Adds multiple columns on which events should be detected |
addTableEvent() |
Adds the type of event that should be detected |
getDurability() |
Gets the event's durability |
getEventColumn() |
Gets a column for which an event is defined |
getName() |
Gets the event's name |
getNoOfEventColumns() |
Gets the number of columns for which an event is defined |
getObjectId() |
Gets the event's object ID |
getObjectStatus() |
Gets the event's object status |
getObjectVersion() |
Gets the event's object version |
getReport() |
Gets the event's reporting options |
getTable() |
Gets the Table object on which the event is defined |
getTableEvent() |
Checks whether an event is to be detected |
getTableName() |
Gets the name of the table on which the event is defined |
mergeEvents() |
Sets the event's merge flag |
setDurability() |
Sets the event's durability |
setName() |
Sets the event's name |
setReport() |
The the event's reporting options |
setTable() |
Sets the Table object on which the
event is defined |
For detailed descriptions, signatures, and examples of use for each
of these methods, see Section 2.3.6.2, “Event Methods”.
Types.
These are the public types of the Event class:
| Type | Purpose / Use |
|---|---|
TableEvent() |
Represents the type of a table event |
EventDurability() |
Specifies an event's scope, accessibility, and lifetime |
EventReport() |
Specifies the reporting option for a table event |
For a discussion of each of these types, along with its possible
values, see Section 2.3.6.1, “Event Types”.
Class diagram.
This diagram shows all the available methods and enumerated types
of the Event class:

