SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Deprecated. Used as a buffer when transferring data between the application and the database. More...
#include <rw/db/dbvector.h>
Class RWDBVector<T> is derived from RWDBTBuffer<T> and is used to transfer data between the application and the database via classes RWDBBulkReader and RWDBBulkInserter.
#include <rw/db/dbvector.h> RWDBVector< int > intVector(n);
The following example uses an RWDBVector<int> to insert an array of integers into a table. The 5th element in the array is inserted as NULL
.
RWDBVector< int > intVector(n); // Sets the 5th element to be null. intVector.setNull(4); // 0 based array. // Populates the arrays using a user-defined function. setValues(intVector); // Defines the inserter. RWDBBulkInserter ins = tab.bulkInserter(connection); // Shifts the arrays into the inserter. ins << intVector; // Inserts up to n values at a time. RWDBStatus stat = ins.execute();
© 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.