Module: DB Interface Module Group: Database Classes
RWDBForeignKeyList RWOrdered
#include <rw/db/forkey.h> RWDBForeignKeyList aList; aStatus = aTable.foreignKeys( "targetTable", aList);
RWDBForeignKeyList is an ordered collection of RWDBForeignKeys. RWDBForeignKeyList is a relatively low-level construct used by the DB Interface Module as an input/output parameter in the functions RWDBTable::foreignKeys() and RWDBTable::referedToBy().
The only semantics that RWDBForeignKeyList adds to RWOrdered are:
The index operator [] returns RWDBForeignKey&, rather than RWCollectable*&.
The destructor deallocates the contents of the RWDBForeignKeyList by calling clearAndDestroy().
RWDBForeignKeyList ();
The default constructor produces an empty RWDBForeignKeyList.
RWDBForeignKey& operator[](size_t index);
Redefined from RWOrdered. Returns a reference to the RWDBForeignKey at a position index in self. The call is forwarded to RWOrdered, which causes an exception of type RWBoundsErr to occur if the index is out of range.
All RWDBForeignKeyList methods are inherited from RWOrdered. Please see the Essential Tools Module Reference Guide for RWOrdered methods.
© 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.