MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NdbEventImpl Class Reference
Inheritance diagram for NdbEventImpl:
Collaboration diagram for NdbEventImpl:

Public Member Functions

 NdbEventImpl ()
 NdbEventImpl (NdbDictionary::Event &)
void init ()
int setName (const char *name)
const char * getName () const
int setTable (const NdbDictionary::Table &table)
const NdbDictionary::TablegetTable () const
int setTable (const char *table)
const char * getTableName () const
void addTableEvent (const NdbDictionary::Event::TableEvent t)
bool getTableEvent (const NdbDictionary::Event::TableEvent t) const
void setDurability (NdbDictionary::Event::EventDurability d)
NdbDictionary::Event::EventDurability getDurability () const
void setReport (NdbDictionary::Event::EventReport r)
NdbDictionary::Event::EventReport getReport () const
int getNoOfEventColumns () const
const NdbDictionary::ColumngetEventColumn (unsigned no) const
void print ()
- Public Member Functions inherited from NdbDictionary::Event
 Event (const char *name)
 Event (const char *name, const NdbDictionary::Table &table)
void addColumn (const Column &c)
void addEventColumn (unsigned attrId)
void addEventColumn (const char *columnName)
void addEventColumns (int n, const char **columnNames)
void mergeEvents (bool flag)
virtual Object::Status getObjectStatus () const
virtual int getObjectVersion () const
virtual int getObjectId () const
- Public Member Functions inherited from NdbDictObjectImpl
bool change ()

Static Public Member Functions

static NdbEventImplgetImpl (NdbDictionary::Event &t)
static NdbEventImplgetImpl (const NdbDictionary::Event &t)
- Static Public Member Functions inherited from NdbDictObjectImpl
static NdbDictObjectImplgetImpl (NdbDictionary::ObjectId &t)
static const NdbDictObjectImplgetImpl (const NdbDictionary::ObjectId &t)

Public Attributes

Uint32 m_eventId
Uint32 m_eventKey
AttributeMask m_attrListBitmask
Uint32 m_table_id
Uint32 m_table_version
BaseString m_name
Uint32 mi_type
NdbDictionary::Event::EventDurability m_dur
NdbDictionary::Event::EventReport m_rep
bool m_mergeEvents
BaseString m_tableName
Vector< NdbColumnImpl * > m_columns
Vector< unsigned > m_attrIds
NdbDictionary::Eventm_facade
- Public Attributes inherited from NdbDictObjectImpl
int m_id
Uint32 m_version
NdbDictionary::Object::Type m_type
NdbDictionary::Object::Status m_status

Friends

class NdbDictInterface
class NdbDictionaryImpl
class NdbEventOperation
class NdbEventOperationImpl
class NdbEventBuffer
class EventBufData_hash
class NdbBlob

Additional Inherited Members

- Public Types inherited from NdbDictionary::Event
enum  TableEvent {
  TE_INSERT = 1<<0, TE_DELETE = 1<<1, TE_UPDATE = 1<<2, TE_SCAN = 1<<3,
  TE_FIRST_NON_DATA_EVENT = 1<<4, TE_DROP = 1<<4, TE_ALTER = 1<<5, TE_CREATE = 1<<6,
  TE_GCP_COMPLETE = 1<<7, TE_CLUSTER_FAILURE = 1<<8, TE_STOP = 1<<9, TE_NODE_FAILURE = 1<<10,
  TE_SUBSCRIBE = 1<<11, TE_UNSUBSCRIBE = 1<<12, TE_ALL = 0xFFFF
}
enum  _TableEvent {
  _TE_INSERT = 0, _TE_DELETE = 1, _TE_UPDATE = 2, _TE_SCAN = 3,
  _TE_FIRST_NON_DATA_EVENT = 4, _TE_DROP = 4, _TE_ALTER = 5, _TE_CREATE = 6,
  _TE_GCP_COMPLETE = 7, _TE_CLUSTER_FAILURE = 8, _TE_STOP = 9, _TE_NODE_FAILURE = 10,
  _TE_SUBSCRIBE = 11, _TE_UNSUBSCRIBE = 12, _TE_NUL = 13, _TE_ACTIVE = 14
}
enum  EventDurability { ED_UNDEFINED = 0, ED_PERMANENT = 3 }
enum  EventReport { ER_UPDATED = 0, ER_ALL = 1, ER_SUBSCRIBE = 2, ER_DDL = 4 }
- Protected Member Functions inherited from NdbDictObjectImpl
 NdbDictObjectImpl (NdbDictionary::Object::Type type)

Detailed Description

Definition at line 400 of file NdbDictionaryImpl.hpp.

Constructor & Destructor Documentation

NdbEventImpl::NdbEventImpl ( )

NdbEventImpl

Definition at line 1748 of file NdbDictionaryImpl.cpp.

Member Function Documentation

void NdbEventImpl::addTableEvent ( const NdbDictionary::Event::TableEvent  te = NdbDictionary::Event::TE_ALL)

Add type of event that should be detected

Reimplemented from NdbDictionary::Event.

Definition at line 1842 of file NdbDictionaryImpl.cpp.

NdbDictionary::Event::EventDurability NdbEventImpl::getDurability ( ) const

Get durability of the event

Reimplemented from NdbDictionary::Event.

Definition at line 1860 of file NdbDictionaryImpl.cpp.

const NdbDictionary::Column * NdbEventImpl::getEventColumn ( unsigned  no) const

Get a specific column in the event

Reimplemented from NdbDictionary::Event.

Definition at line 1883 of file NdbDictionaryImpl.cpp.

const char * NdbEventImpl::getName ( ) const

Get unique identifier for the event

Reimplemented from NdbDictionary::Event.

Definition at line 1795 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

int NdbEventImpl::getNoOfEventColumns ( ) const

Get no of columns defined in an Event

Returns
Number of columns, -1 on error

Reimplemented from NdbDictionary::Event.

Definition at line 1877 of file NdbDictionaryImpl.cpp.

NdbDictionary::Event::EventReport NdbEventImpl::getReport ( ) const

Get report option of the event

Reimplemented from NdbDictionary::Event.

Definition at line 1872 of file NdbDictionaryImpl.cpp.

const NdbDictionary::Table * NdbEventImpl::getTable ( ) const

Get table that the event is defined on

Returns
pointer to table or NULL if no table has been defined

Reimplemented from NdbDictionary::Event.

Definition at line 1821 of file NdbDictionaryImpl.cpp.

bool NdbEventImpl::getTableEvent ( const NdbDictionary::Event::TableEvent  te) const

Check if a specific table event will be detected

Reimplemented from NdbDictionary::Event.

Definition at line 1848 of file NdbDictionaryImpl.cpp.

const char * NdbEventImpl::getTableName ( ) const

Get table name for events

Returns
table name

Reimplemented from NdbDictionary::Event.

Definition at line 1836 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

void NdbEventImpl::setDurability ( NdbDictionary::Event::EventDurability  d)

Set durability of the event

Reimplemented from NdbDictionary::Event.

Definition at line 1854 of file NdbDictionaryImpl.cpp.

int NdbEventImpl::setName ( const char *  name)

Set unique identifier for the event

Reimplemented from NdbDictionary::Event.

Definition at line 1790 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void NdbEventImpl::setReport ( NdbDictionary::Event::EventReport  r)

Set report option of the event

Reimplemented from NdbDictionary::Event.

Definition at line 1866 of file NdbDictionaryImpl.cpp.

int NdbEventImpl::setTable ( const NdbDictionary::Table table)

Define table on which events should be detected

Note
calling this method will default to detection of events on all columns. Calling subsequent addEventColumn calls will override this.
Parameters
tablereference retrieved from NdbDictionary

Reimplemented from NdbDictionary::Event.

Definition at line 1801 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

int NdbEventImpl::setTable ( const char *  tableName)

Set table for which events should be detected

Note
preferred way is using setTable(const NdbDictionary::Table&) or constructor with table object parameter

Reimplemented from NdbDictionary::Event.

Definition at line 1830 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files: