RDbNotifier Class Reference

class RDbNotifier

Provides notification of database changes to clients.

This is useful for shared databases.

Public Member Functions
IMPORT_C voidCancel()
IMPORT_C voidClose()
IMPORT_C voidNotifyChange(TRequestStatus &)
IMPORT_C voidNotifyUnlock(TRequestStatus &)
IMPORT_C TIntOpen(RDbDatabase &)
Public Member Enumerations
enumTEvent { EClose, EUnlock, ECommit, ERollback, ERecover }
Private Attributes
RDbHandle< CDbNotifier >iNotifier

Member Functions Documentation

Cancel()

IMPORT_C voidCancel()

Close()

IMPORT_C voidClose()

NotifyChange(TRequestStatus &)

IMPORT_C voidNotifyChange(TRequestStatus &aStatus)

Parameters

TRequestStatus & aStatus

NotifyUnlock(TRequestStatus &)

IMPORT_C voidNotifyUnlock(TRequestStatus &aStatus)

Parameters

TRequestStatus & aStatus

Open(RDbDatabase &)

IMPORT_C TIntOpen(RDbDatabase &aDatabase)

Parameters

RDbDatabase & aDatabase

Member Enumerations Documentation

Enum TEvent

Defines the events which may be reported by a DBMS change notifier through this RDbNotifier object.

Each enumerator corresponds to a distinct event type.

The changes are reported through a TRequestStatus object when an outstanding notification request completes.

Notes

If further database events occur while a client is handling the completion of a previous event, the notifier remembers the most significant event. The order of importance is:

ERecover > ERollback > ECommit

where the symbol > means "is more important than"

Enumerators

EClose

The database has been closed.

EUnlock

All read locks have been removed.

ECommit

A transaction has been committed.

ERollback

A transaction has been rolled back

ERecover

The database has been recovered

Member Data Documentation

RDbHandle< CDbNotifier > iNotifier

RDbHandle< CDbNotifier >iNotifier[private]