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

RWDBAssignment

Module:  DB Interface Module   Group:  Expression Classes


RWDBExpr RWDBAssignment RWCollectable

Local Index

Members

Synopsis

#include <rw/db/expr.h>

Description

RWDBAssignment is the result of applying the RWDBColumn::assign() method to an RWDBExpr. The result is an encapsulation of the SQL SET column = expression phrase, where column refers to the RWDBColumn instance whose assign() method produced the RWDBAssignment, and expression refers to its argument. RWDBAssignments are only used to build RWDBUpdaters.

Example

This example adds the phrase SET name = `Joe' to an RWDBUpdater for the Names table. To do this, an RWDBAssignment instance is created anonymously:

Related Classes

RWDBAssignment is a special case of RWDBExpr. See RWDBExpr for details.

RWDBAssignment instances are produced only by the assign() method of RWDBColumn.

Public Constructors

RWDBAssignment();
RWDBAssignment(const RWDBColumn& c, const RWDBValue& v);
RWDBAssignment(const RWDBColumn& c, const RWDBExpr& e);

Public Member Functions

RWDBColumn 
column() const; 
RWDBValue 
value() const; 
RWDBExpr 
expressions() const; 


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.