SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWDBDecimalVector Class Reference

Deprecated. Transfers decimal arrays of width width between the application and the database. width between the application and the database. More...

#include <rw/db/dbvector.h>

Inheritance diagram for RWDBDecimalVector:
RWDBTBuffer< T > RWDBAbstractBuffer

Public Member Functions

 RWDBDecimalVector (size_t width, size_t length)
 
size_t length () const
 
RWDBDecimalVectorElement operator[] (size_t index)
 
- Public Member Functions inherited from RWDBTBuffer< T >
 RWDBTBuffer (RWSize_T entries=1, RWSize_T width=0)
 
 RWDBTBuffer (T *data, RWSize_T entries=1, RWSize_T width=0)
 
 RWDBTBuffer (T *data, RWDBNullIndicator *indicator, RWSize_T entries=1, RWSize_T width=0)
 
virtual ~RWDBTBuffer ()
 
size_t entries () const
 
bool isNull (size_t index) const
 
const T & operator[] (size_t index) const
 
T & operator[] (size_t index)
 
void paramType (RWDBColumn::ParamType newType)
 
RWDBColumn::ParamType paramType () const
 
void setData (const T &newData)
 
void setData (size_t index, const T &newData)
 
void setNull ()
 
void setNull (size_t index)
 
void unsetNull ()
 
void unsetNull (size_t index)
 

Detailed Description

Deprecated:
As of SourcePro 6, use RWDBTBuffer<RWDecimalPortable> and RWDecimalPortable instead.

RWDBDecimalVector instances are used to transfer decimal arrays of width width between the application and the database via instances of RWDBBulkReader and RWDBBulkInserter. Note that it is the user's responsibility to ensure that the elements of the vectors are null terminated.

Synopsis
#include <rw/db/dbvector.h>
RWDBDecimalVector decVector(width, length);
Example

In the following example, the ith element of an RWDBDecimalVector is set to the decimal 12.567:

RWDBDecimalVector decVector(width, length);
.
.
.
decVector[i] = "12.567";

Constructor & Destructor Documentation

RWDBDecimalVector::RWDBDecimalVector ( size_t  width,
size_t  length 
)
inline

Constructs an RWDBDecimalVector of length elements, each of whose elements is width wide.

Member Function Documentation

size_t RWDBDecimalVector::length ( ) const
inline

Returns the number of elements in self.

RWDBDecimalVectorElement RWDBDecimalVector::operator[] ( size_t  index)
inline

Returns an RWDBDecimalVectorElement instance holding a reference to the i th element of self.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.