Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: d32dbms.h
Link against: edbms.lib

Class RDbColWriteStream

RDbColWriteStream

Support

Supported from 5.0

Description

Writes Long columns when inserting or updating rows in a rowset.

Only one column in a rowset object can be opened for writing as a stream at a time.

Derivation

RDbColWriteStreamWrites Long columns when inserting or updating rows in a rowset
RWriteStreamThe write stream interface

Defined in RDbColWriteStream:
OpenL(), OpenLC(), RDbColWriteStream()

Inherited from RWriteStream:
Attach(), Close(), CommitL(), Detach(), Pop(), PushL(), Release(), Sink(), WriteInt16L(), WriteInt32L(), WriteInt8L(), WriteL(), WriteReal32L(), WriteReal64L(), WriteUint16L(), WriteUint32L(), WriteUint8L()


Construction and destruction


RDbColWriteStream()

RDbColWriteStream();

Description

Constructs this object by invoking the default constructor for RWriteStream.


RDbColWriteStream()

RDbColWriteStream(const MExternalizer<TStreamRef>& anExternalizer);

Description

Constructs this object by invoking the matching constructor for RWriteStream.

Parameters

const MExternalizer<TStreamRef> &anExternalizer

Specifies an externaliser

[Top]


Writing a Long column


OpenL()

void OpenL(RDbRowSet& aView,TDbColNo aCol);

Description

Opens the column with the specified ordinal in the current row, and in the specified rowset, and prepares the column for being written or replaced. The rowset must be updating or inserting a row.

Parameters

RDbRowSet& aView

The rowset which has the row and column to be written.

TDbColNo aCol

The column ordinal of the column to be written.

Leave codes

 

The function can leave with one of the DBMS database error codes.


OpenLC()

void OpenLC(RDbRowSet& aView,TDbColNo aCol);

Description

Opens the column with the specified ordinal in the current row, and in the specified rowset, and prepares the column for being written or replaced, putting a cleanup item for this object onto the cleanup stack. The rowset must be updating or inserting a row.

Placing the cleanup object on the cleanup stack allows allocated resources to be cleaned up if a subsequent leave occurs.

Parameters

RDbRowSet& aView

The rowset which has the row and column to be written.

TDbColNo aCol

The column ordinal of the column to be written.

Leave codes

 

The function can leave with one of the DBMS database error codes.