In the DBTools.h++ paradigm, all results are tables. Class RWDBTable encapsulates a single result set, class RWDBResult encapsulates a sequence of 0 or more tables, and class RWDBReader provides the mechanism for reading a table. Consequently, handling multiple result sets is not a problem.
In DBTools.h++, the execute() method of each DML class returns an RWDBResult object. Applications that are concerned with results returned by an INSERT, for example, can maintain portability between databases by checking the RWDBResult returned by RWDBInserter::execute().
Any data not processed by an application is silently discarded. DBTools.h++ applications need not explicitly discard results; they need not consider the state of the database connection. Data is exchanged between the Informix ODBC Driver and DBTools.h++ via three Informix ODBC Driver calls: SQLPrepare(), SQLExecute(), and SQLFetch(). The statements associated with these calls are either explicitly closed by the access library or, if processing multiple results, implicitly closed through a call to SQLMoreResults().
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.