Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsOCI Class Reference

#include <dsOCI.h>

Inheritance diagram for dsOCI:

dsSQLAccessor List of all members.

Public Methods

 dsOCI (const char *ORASID, const char *username=0, const char *passwd=0)
virtual ~dsOCI ()
virtual void Connect (const char *ORASID, const char *username, const char *password, const int flags=OCI_DEFAULT)
virtual void Cleanup ()
virtual void Execute (void *stmtp, int PrefetchRows=0, int CommitOnSuccess=false)
virtual OCIStmt * PrepareCall (const char *theQuery)
virtual void ReleaseCall (OCIStmt *stmtp)
int Fetch (OCIStmt *stmtp, int nrows=1)
void Commit ()
void Rollback ()
OCIBind * BindCursor (OCIStmt *stmthp, char *ParamName, OCIStmt **cursor_stmthp)
OCIBind * BindParam (OCIStmt *stmthp, char *ParamName, ub2 ValueType, dvoid *valuep, ub4 ValueSize)
OCIBind * BindParam (OCIStmt *stmthp, char *ParamName, ub2 ValueType, dvoid *valuep, ub4 ValueSize, short *isNull)
OCIDefine * DefineByPos (OCIStmt *stmthp, int pos, ub2 ValueType, dvoid *valuep, sb4 value_sz)
OCIDefine * DefineByPos (OCIStmt *stmthp, int pos, ub2 ValueType, dvoid *valuep, sb4 value_sz, short *isNull)
void Describe (OCIStmt *stmthp)
OCIBind * BindParam (OCIStmt *stmthp, char *ParamName, int value)
OCIBind * BindParam (OCIStmt *stmthp, char *ParamName, char *value, int size)
template<class TValue> OCIBind * BindParam (OCIStmt *stmthp, char *ParamName, ub2 ValueType, TValue valuep, ub4 ValueSize)
template<class TValue> OCIDefine * DefineByPos (OCIStmt *stmthp, int pos, ub2 ValueType, TValue valuep, sb4 value_sz)
template<class THdlVoid> void HandleAlloc (int hdlType, THdlVoid hdlPtr)
template<class THdlVoid> void HandleFree (int hdlType, THdlVoid hdlPtr)
template<class THdlVoid, class TAttrVoid> void AttrSet (ub4 attrType, THdlVoid hdl, ub4 hdlType, TAttrVoid attrPtr, ub4 attrSize)
template<class THdlVoid> void AttrSet (ub4 attrType, THdlVoid hdl, ub4 hdlType, const char *attrPtr)
template<class THdlVoid, class TAttrVoid> void AttrGet (ub4 attrType, THdlVoid hdl, ub4 hdlType, TAttrVoid attrPtr, ub4 *attrSize)
template<class THdlVoid> int AttrGet (ub4 attrType, THdlVoid hdl, ub4 hdlType)

Protected Methods

void HandleAlloc (int hdlType, dvoid **hdlPtr)
void HandleFree (int hdlType, dvoid *hdlPtr)
void AttrSet (ub4 attrType, dvoid *hdl, ub4 hdlType, dvoid *attrPtr, ub4 attrSize)
void AttrSet (ub4 attrType, dvoid *hdl, ub4 hdlType, const char *attrPtr)
void AttrGet (ub4 attrType, dvoid *hdl, ub4 hdlType, dvoid *attrPtr, ub4 *attrSize)
int AttrGet (ub4 attrType, dvoid *hdl, ub4 hdlType)
sword check_error (int line, sword status)

Detailed Description

Library to support Oracle Call Interface (OCI)


Constructor & Destructor Documentation

dsOCI::dsOCI const char *    ORASID,
const char *    username = 0,
const char *    passwd = 0
 

dsOCI::~dsOCI   [virtual]
 


Member Function Documentation

template<class THdlVoid>
int dsOCI::AttrGet ub4    attrType,
THdlVoid    hdl,
ub4    hdlType
[inline]
 

template<class THdlVoid, class TAttrVoid>
void dsOCI::AttrGet ub4    attrType,
THdlVoid    hdl,
ub4    hdlType,
TAttrVoid    attrPtr,
ub4 *    attrSize
[inline]
 

int dsOCI::AttrGet ub4    attrType,
dvoid *    hdl,
ub4    hdlType
[protected]
 

void dsOCI::AttrGet ub4    attrType,
dvoid *    hdl,
ub4    hdlType,
dvoid *    attrPtr,
ub4 *    attrSize
[protected]
 

AttrGet family

template<class THdlVoid>
void dsOCI::AttrSet ub4    attrType,
THdlVoid    hdl,
ub4    hdlType,
const char *    attrPtr
[inline]
 

template<class THdlVoid, class TAttrVoid>
void dsOCI::AttrSet ub4    attrType,
THdlVoid    hdl,
ub4    hdlType,
TAttrVoid    attrPtr,
ub4    attrSize
[inline]
 

void dsOCI::AttrSet ub4    attrType,
dvoid *    hdl,
ub4    hdlType,
const char *    attrPtr
[protected]
 

void dsOCI::AttrSet ub4    attrType,
dvoid *    hdl,
ub4    hdlType,
dvoid *    attrPtr,
ub4    attrSize
[protected]
 

AttrSet family

OCIBind * dsOCI::BindCursor OCIStmt *    stmthp,
char *    ParamName,
OCIStmt **    cursor_stmthp
 

template<class TValue>
OCIBind* dsOCI::BindParam OCIStmt *    stmthp,
char *    ParamName,
ub2    ValueType,
TValue    valuep,
ub4    ValueSize
[inline]
 

OCIBind* dsOCI::BindParam OCIStmt *    stmthp,
char *    ParamName,
char *    value,
int    size
[inline]
 

OCIBind* dsOCI::BindParam OCIStmt *    stmthp,
char *    ParamName,
int    value
[inline]
 

OCIBind * dsOCI::BindParam OCIStmt *    stmthp,
char *    ParamName,
ub2    ValueType,
dvoid *    valuep,
ub4    ValueSize,
short *    isNull
 

OCIBind * dsOCI::BindParam OCIStmt *    stmthp,
char *    ParamName,
ub2    ValueType,
dvoid *    valuep,
ub4    ValueSize
 

sword dsOCI::check_error int    line,
sword    status
[protected]
 

void dsOCI::Cleanup   [virtual]
 

Close connection and cleanup memory

Implements dsSQLAccessor.

void dsOCI::Commit  
 

void dsOCI::Connect const char *    ORASID,
const char *    username,
const char *    password,
const int    flags = OCI_DEFAULT
[virtual]
 

Connect client to database

Implements dsSQLAccessor.

template<class TValue>
OCIDefine* dsOCI::DefineByPos OCIStmt *    stmthp,
int    pos,
ub2    ValueType,
TValue    valuep,
sb4    value_sz
[inline]
 

OCIDefine * dsOCI::DefineByPos OCIStmt *    stmthp,
int    pos,
ub2    ValueType,
dvoid *    valuep,
sb4    value_sz,
short *    isNull
 

OCIDefine * dsOCI::DefineByPos OCIStmt *    stmthp,
int    pos,
ub2    ValueType,
dvoid *    valuep,
sb4    value_sz
 

void dsOCI::Describe OCIStmt *    stmthp
 

void dsOCI::Execute void *    stmtp,
int    PrefetchRows = 0,
int    CommitOnSuccess = false
[virtual]
 

Execute query,
See dsSPWrapper

Implements dsSQLAccessor.

int dsOCI::Fetch OCIStmt *    stmtp,
int    nrows = 1
 

template<class THdlVoid>
void dsOCI::HandleAlloc int    hdlType,
THdlVoid    hdlPtr
[inline]
 

void dsOCI::HandleAlloc int    hdlType,
dvoid **    hdlPtr
[protected]
 

template<class THdlVoid>
void dsOCI::HandleFree int    hdlType,
THdlVoid    hdlPtr
[inline]
 

void dsOCI::HandleFree int    hdlType,
dvoid *    hdlPtr
[protected]
 

OCIStmt * dsOCI::PrepareCall const char *    theQuery [virtual]
 

void dsOCI::ReleaseCall OCIStmt *    stmtp [virtual]
 

void dsOCI::Rollback  
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:27:00 2005 for libdms4 by doxygen1.3-rc2