Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

Open (OAdvise) Method

Applies To

OAdvise

Description

This method opens an OAdvise object, attaching it to a dynaset.

Usage

oresult Open(const ODynaset &odyn)

Arguments

odyn
An ODynaset to which you attach.
Remarks

This method attaches the advisory to the dynaset odyn. After this call, the dynaset of odyn delivers messages to this advisory.

It is legal to Open an already open OAdvise object. The object is closed and then opened again.

Note that the instances of the OAdvise class do nothing. You will want to subclass OAdvise to get behavior that you want.

Return Value

An oresult indicating whether the operation succeeded (OSUCCESS) or not (OFAILURE).

Example

Opening an OAdvise object:

// create a database

ODatabase odb("ExampleDB", "scott", "tiger");

// create a dynaset

ODynaset thedynaset(odb, "select * from emp");

// default constructor of OAdvise

OAdvise adv1;

// open that advisory, attaching it to dynaset

adv1.Open(thedynaset);


 
Oracle
Copyright © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback