iopc::EnhancedTypeParameter Class Reference
[iopcdb]

A Parameter implementation for all Enhanced data types. More...

#include <cursor.h>

Inheritance diagram for iopc::EnhancedTypeParameter:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 EnhancedTypeParameter (ParamType type, const int pos, EnhancedTypeBase &obj, const MetadataHolder &attributes=MetadataHolder::emptyMeta)


Detailed Description

A Parameter implementation for all Enhanced data types.

It provides more comfort than SimpleTypeParameter as users need not to provide any pointers, any data type descriptions or allocate any buffers. All these tasks are handled by the Enhanced data types.


Constructor & Destructor Documentation

iopc::EnhancedTypeParameter::EnhancedTypeParameter ( ParamType  type,
const int  pos,
EnhancedTypeBase obj,
const MetadataHolder attributes = MetadataHolder::emptyMeta 
)

Parameters:
type Parameter direction
pos Position of the parameter in the prepared statement or in the result set, starting from 1. Note that some drivers (like the IopcOracle10g driver) require the OUT parameters to be bound as a sequence so that no positions are skipped.
obj Reference to the value being bound. The reference must be valid as long as the cursor is used.
attributes Additional attributes or driver-dependent data.
  • [db.type.length] - For the EString and EWString types it specifies the (maximum) length of the externalized string buffer - see the externalize methods in EnhancedTypeBase.
If EString or EWString type is used, the [db.type.length] metadata must be specified either in the TypeDesc<EString>::getType() or in the TypeDesc<EWString>::getType metadata or provided in the attributes input parameter.


The documentation for this class was generated from the following files:

Generated on Tue Apr 14 16:46:39 2009 for IOPC 2 by  doxygen 1.5.6