SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWDBDateVector Class Reference

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

#include <rw/db/dbdatevec.h>

Public Member Functions

size_t entries () const
 
bool isNull (size_t index) const
 
size_t length () const
 
RWDBVendorDate operator[] (size_t index) const
 
void setNull (size_t index)
 
void unsetNull (size_t index)
 

Detailed Description

Deprecated
As of SourcePro 6, use RWDBTBuffer and RWDateTime instead.

RWDBDateVector is used to transfer date values between the application and the database via instances of RWDBBulkReader and RWDBBulkInserter. Class RWDBDateVector implements basic vector methods and adds null processing capabilities similar to RWDBVector. RWDBDateVector objects are produced by RWDBDatabase. The resulting RWDBDateVector elements are RWDBVendorDate instances of the type appropriate for the underlying database.

Synopsis
#include <rw/db/dbase.h>
#include <rw/db/dbdatevec.h>
RWDBDateVector dateVector = db.dateVector(n);
Deprecated. Used as a buffer when transferring date values between the application and the database.
Definition dbdatevec.h:138
Example

In the following example, a vector dateVector is produced. The vector could later be used with either an RWDBBulkInserter or an RWDBBulkReader.

RWDBDateVector dateVector = aDB.dateVector(n);

Member Function Documentation

◆ entries()

size_t RWDBDateVector::entries ( ) const

Returns the number of elements in self.

◆ isNull()

bool RWDBDateVector::isNull ( size_t index) const

Returns true if the index th element of self is null, otherwise returns false .

◆ length()

size_t RWDBDateVector::length ( ) const

Returns the number of elements in self.

◆ operator[]()

RWDBVendorDate RWDBDateVector::operator[] ( size_t index) const

Returns an instance of an RWDBVendorDate, which in turn holds a reference to the underlying vendor date structure held in the index th position.

◆ setNull()

void RWDBDateVector::setNull ( size_t index)

Sets the index th element of self to null.

◆ unsetNull()

void RWDBDateVector::unsetNull ( size_t index)

Sets the index th element of self to not null.

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