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

RWDBNullIndicator

Module:  DB Interface Module   Group:  Data Type


Does not inherit

Local Index

Members

Synopsis

#include <rw/db/nullind.h>

RWDBNullIndicator nullInd;

Description

RWDBNullIndicator allows application code:

An RWDBNullIndicator instance may be interpreted as a boolean value: true means a data item is NULL; false means a data item is not NULL.

Related Classes

RWDBNullIndicator is designed specifically to detect NULL values as they are extracted from an RWDBReader. See RWDBReader for more details.

The setting of RWDBDatabase::emptyStringIsNull can affect the way that empty strings are inserted and read. For more details, see RWDBManager::emptyStringIsNull(bool).

Example

This code fragment selects an integer and a string from a table, and checks for NULL before processing the results:

Public Constructor

RWDBNullIndicator(bool value = 0);

Public Member Operator

operator Boolean();


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.