Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
DB Interface Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWDBDatabaseCallback

Module:  DB Interface Module   Group:  Callback Classes


Does not inherit

Local Index

Members

Synopsis

#include <rw/db/dbasecb.h>

RWDBDatabase dBase = 
  RWDBManager::database("accessLib", "Servername",
                        "Username", "PassWord",
                        "DatabaseName",
 RWDBDATABASECALLBACK(MyDBaseCallbackImp));

Description

RWDBDatabaseCallback is the interface handle class for database callbacks which encapsulates a reference-counted pointer to the RWDBDatabaseCallbackImp body class. Please refer to the RWDBDatabaseCallbackImp class for implementing database callbacks.

Public Constructors

RWDBDatabaseCallback();
RWDBDatabaseCallback
(const RWDBDatabaseCallback& dbasecb);

Public Member Operator

RWDBDatabaseCallback&
operator=(const RWDBDatabaseCallback& dbasecb);
RWDBDatabaseCallbackImp*
operator()() const;

Public Member Function

RWDBStatus
status() const;

Related Macro

#define RWDBDATABASECALLBACK(CALLBACK)

The macro takes as argument, the name of the user-implemented database callback implementation class. The user database callback implementation class must have been derived from the RWDBDatabaseCallbackImp class. Providing simply the name of the callback implementation class will create its instance using its default constructor. To use a different constructor, pass the arguments along with it For example:

RWDBDATABASECALLBACK(MyDBaseCallbackImp(100, "abc"))

This macro must be used while supplying an instance of database callback implementation class in the method RWDBManager::database(). This macro ensures that a new instance of the database callback implementation class is produced



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.