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

RWDBBoundExpr

Module:  DB Interface Module   Group:  Expression Classes


RWDBBoundExpr RWDBExpr

Local Index

Members

Synopsis

#include <rw/db/expr.h>

Description

RWDBBoundExpr is a specialized type of RWDBExpr that is evaluated as a placeholder within a dynamic SQL statement. It provides a type-safe interface for allowing applications to bind a local variable and an optional null indicator to a dynamic SQL statement.

Example

In this example, an RWDBBoundExpr is created and shifted into an RWDBInserter. The RWDBInserter is then executed several times after changing the bound local variable.

Notice that an explicit connection is used for each execution of the RWDBInserter. It is the application's responsibility to insure that the bound local variable and the RWDBNullIndicator pointed at by the optional null indicator remain in scope for all executions.

Related Classes

RWDBBoundExpr can be used in conjunction with any of the other expression classes and operators, such as RWDBAssignment.

Other classes that use RWDBBoundExpr include RWDBSelector, RWDBDeleter, RWDBInserter, and RWDBUpdater.

Public Constructors

RWDBBoundExpr();
RWDBBoundExpr(short* valuePtr,
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(unsigned short* valuePtr,
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(int* valuePtr,
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(unsigned int* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(long* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(unsigned long* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(long long* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(unsigned long long* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(float* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(double* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(long double* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWCString* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWDecimalPortable* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWDate* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWDBDateTime* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWDBDuration* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWDBBlob* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWDateTime* valuePtr,
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1)
RWDBBoundExpr(RWDBMBString* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWWString* valuePtr, 
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1);
RWDBBoundExpr(RWBasicUString* valuePtr,
              RWDBNullIndicator* nullIndicator = NULL,
              size_t entries = 1); 

NOTE -- This function accepts Unicode strings. For more information, see the entry for RWBasicUString in the Essential Tools Module Reference Guide. For more information on internationalization, see Chapter 13 of the DB Interface Module User's Guide.


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.