rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBVector< T > Class Template Reference
[Bulk Operations]

Deprecated. Used as a buffer when transferring data between the application and the database. More...

#include <rw/db/dbvector.h>

Inheritance diagram for RWDBVector< T >:
RWDBTBuffer< T > RWDBAbstractBuffer

List of all members.


Detailed Description

template<class T>
class RWDBVector< T >

Deprecated:
Please use RWDBTBuffer<T>.

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.

Synopsis

 #include <rw/db/dbvector.h>
 
 RWDBVector< int > intVector(n);

Examples

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();
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© 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.