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

RWDBCompoundSelector

Module:  DB Interface Module   Group:  Data Manipulation Classes


RWDBCompoundSelector RWDBSelectorBase

Local Index

Members

Non-Members

Synopsis

#include <rw/db/comsel.h>

RWDBSelector s1, s2;

RWDBCompoundSelector cs = s1 + s2;
RWDBCompoundSelector cs = s1 * s2
RWDBCompoundSelector cs = s1 - s2;

Description

Instances of this class are created as the result of the set operators Union, Intersection, or Difference applied to RWDBSelector.

RWDBSelector and RWDBCompoundSelector share the common base class RWDBSelectorBase.

Public Constructors

RWDBCompoundSelector(const RWDBCompoundSelector& csel);

Public Member Operator

RWDBCompoundSelector&
operator=(const RWDBCompoundSelector& csel);

Public Member Functions

RWCString
asString() const;

NOTE -- When the RWDBDatabase::verboseAsString() option is set to true, the SQL returned by this method may not be a valid SQL statement. However, this method's return value is not necessarily the same SQL that is sent to the database for execution. For example, if an RWDBBlob object is bound, calling asString() with RWDBDatabase::verboseAsString() set to true will result in a string with blob data returned as hex numbers, such as 0x0A32F5.
RWCString
asString(bool verbose) const;

NOTE -- The SQL returned by this method when verbose is true may not be a valid SQL statement. However, this is not necessarily the same SQL sent to the database for execution. For example, if an RWDBBlob object is bound, calling asString(true) will result in a string with blob data returned as hex numbers, such as 0x0A32F5.
RWCString
asString(const RWDBConnection& conn) const;

NOTE -- When the RWDBDatabase::verboseAsString() option is set to true, the SQL returned by this method may not be a valid SQL statement. However, this method's return value is not necessarily the same SQL that is sent to the database for execution. For example, if an RWDBBlob object is bound, calling asString() with RWDBDatabase::verboseAsString() set to true will result in a string with blob data returned as hex numbers, such as 0x0A32F5.
RWCString
asString(const RWDBConnection& conn, bool verbose) const;

NOTE -- The SQL returned by this method when verbose is true may not be a valid SQL statement. However, this is not necessarily the same SQL sent to the database for execution. For example, if an RWDBBlob object is bound, calling asString(true) will result in a string with blob data returned as hex numbers, such as 0x0A32F5.
RWDBDatabase
database() const;
RWDBCompoundSelector&
difference(const RWDBSelectorBase& selector) const;
RWDBStatus::ErrorHandler
errorHandler() const;
RWDBResult
execute();
RWDBResult
execute(const RWDBConnection& connection);
RWDBCompoundSelector&
intersection(const RWDBSelectorBase& selector) const;
bool
isValid()const;
RWDBSelectorBase&
orderBy(const RWDBColumn& column);
RWDBSelectorBase&
orderBy(int columnNumber);
RWDBSelectorBase&
orderByClear();
RWDBSelectorBase&
orderByDescending(const RWDBColumn& column);
RWDBSelectorBase&
orderByDescending(int columnNumber);
RWDBReader
reader() const;
RWDBReader
reader(const RWDBConnection& connection) const;
void
setErrorHandler(RWDBStatus::ErrorHandler handler);
RWDBStatus
status() const;
virtual RWDBCompoundSelector&
union_(const RWDBSelectorBase& selector) const;
virtual RWDBCompoundSelector&
unionAll(const RWDBSelectorBase& selector) const;

Related Global Operators

RWDBCompoundSelector
operator+(const RWDBSelectorBase& left, 
          const RWDBSelectorBase& right);
RWDBCompoundSelector
operator-(const RWDBSelectorBase& left, 
          const RWDBSelectorBase& right); 
RWDBCompoundSelector
operator*(const RWDBSelectorBase& left,
          const RWDBSelectorBase& right);


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.