Oracle Objects for OLE C++ Class Library
Release 9.0.1

Part Number A90172-01

Home

Book List

Contents

Master Index

Feedback

SaveChange Method

Applies To

OBound

Description

This method saves the value of the OBound object to the database.

Usage

virtual oresult SaveChange(void)

Remarks

The OBinder (to which this OBound object is bound) calls this method when it is time to save the object's value to the database. The OBinder object knows that the value needs to be saved because of some previous call to Changed.

SaveChange is not implemented in the base OBound class. Your OBound subclass must implement this method. Normally you can implement SaveChange by calling the protected OBound::SetValue method.

The inverse of SaveChange is OBound::Refresh.

Return Value

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

Example

Please see the Workbook for the example "OBound of a variable." That example works through the implementation of a subclass of OBound. That subclass implements SaveChange.


 
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.

Home

Book List

Contents