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

RWDBBinaryVector

Module:  DB Interface Module   Group:  Bulk Classes


RWDBBinaryVector RWDBTBuffer<unsigned char>

Local Index

Members

Synopsis

#include <rw/db/dbvector.h>

RWDBBinaryVector binaryVector(width, length);

Description

RWDBBinaryVectors are used to transfer binary arrays of width width between the application and the database via RWDBBulkReaders and RWDBBulkInserters.


NOTE -- Classes RWDBBinaryVectorElement and RWDBBinaryVector are deprecated. Please use classes RWDBBlob and RWDBTBuffer<RWDBBlob>.

Example

In the following example, the ith element of an RWDBBinaryVector is set to hold the data Hello, and the data and width are output to the screen.

Public Constructor

RWDBBinaryVector(size_t width, size_t length);

Public Operator

RWDBBinaryVectorElement
operator[](size_t i);

Public Member Functions

bool
isNull(size_t index) const;
size_t
length() const;
void 
setNull(size_t index);
void 
unsetNull(size_t index);
size_t
width() const;
size_t
width(size_t index);
size_t
width(size_t index, size_t w);


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.