Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

OracleCursor Class Reference

Obsolete class - implementation of old Cursor interface using Oracle v. 7 OCI. Use Oracle8iCursor instead. More...

#include <cOracleCursor.h>

Inheritance diagram for OracleCursor:

Inheritance graph
[legend]
Collaboration diagram for OracleCursor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~OracleCursor ()

Protected Member Functions

 OracleCursor (class Connection *DbC)
virtual bool _Open ()
virtual bool _Prepare (const char *const SqlCommand)
virtual bool _PreExecBind (const char *VarName, const void *VarAddr, const int VarLen, const char VarType, short *VarInd=NULL)
virtual bool _PreExecBind (const char *varName, const int pos, const void *varAddr, const int varLen, const IopcDataType varType, bool null=false)
virtual bool _Execute ()
virtual bool _PreFetchBind (const int Position, const void *VarAddr, const int VarLen, const char VarType, short *VarInd=NULL)
virtual bool _PreFetchBind (const int position, const void *varAddr, const int varLen, const IopcDataType varType, bool *null=NULL)
virtual bool _FetchNext ()
virtual bool _FetchPrev ()
virtual long _Position ()
virtual bool _Close ()

Protected Attributes

Cda_Def _CDA

Detailed Description

Obsolete class - implementation of old Cursor interface using Oracle v. 7 OCI. Use Oracle8iCursor instead.

Warning:
This cursor doesn't correctly implement methods _PreExecBind(const char *,const int,const void *,const int,const IopcDataType,bool) and _PreFetchBind(const int,const void *,const int,const IopcDataType,bool *).
This class was nearly undocumented in POLiTe - a few of old comments can be found in source code - not in doxygen. I (Josef Troch) have added some comments, but persistence layer IOPC does not use this class!


Constructor & Destructor Documentation

OracleCursor::OracleCursor class Connection DbC  )  [protected]
 

OracleCursor::~OracleCursor  )  [virtual]
 


Member Function Documentation

bool OracleCursor::_Open  )  [protected, virtual]
 

Opens the cursor.

Reimplemented from Cursor.

bool OracleCursor::_Prepare const char *const  SqlCommand  )  [protected, virtual]
 

Prepares sqlCommand to be executed in database using this cursor.

Parameters:
SqlCommand SQL statement to be processed.

Implements Cursor.

bool OracleCursor::_PreExecBind const char *  VarName,
const void *  VarAddr,
const int  VarLen,
const char  VarType,
short *  VarInd = NULL
[protected, virtual]
 

Obsolete version of _PreExecBind used by POLiTe-style persistent classes. Use _PreExecBind(const char *,const int,const void *,const int,const IopcDataType,bool) instead.

If you don't need to support POLiTe-style persistent classes, you can make a fake implementation of this function.

Parameters:
VarName Name of the variable in appropriate SQL statement.
VarAddr Address of the variable.
VarLen Length of the variable (0 if it should be distinguished from VarType).
VarType POLiTe-style type of the variable (TYPE_INT etc.)
VarInd Indicator variable to be used.

Implements Cursor.

bool OracleCursor::_PreExecBind const char *  varName,
const int  pos,
const void *  varAddr,
const int  varLen,
const IopcDataType  varType,
bool  null = false
[protected, virtual]
 

Fake implementation of newer version of _PreExecBind(). Use Oracle8iCursor instead of this class.

Implements Cursor.

bool OracleCursor::_Execute  )  [protected, virtual]
 

Executes SQL statement, that has been already prepared and its input variables (if any) have been bound.

Implements Cursor.

bool OracleCursor::_PreFetchBind const int  Position,
const void *  VarAddr,
const int  VarLen,
const char  VarType,
short *  VarInd = NULL
[protected, virtual]
 

Obsolete version of _PreFetchBind used by POLiTe-style persistent classes. Use _PreFetchBind(const int,const void *,const int,const IopcDataType,bool *) instead.

If you don't need to support POLiTe-style persistent classes, you can make a fake implementation of this function.

Parameters:
Position Position of the variable in appropriate SQL statement.
VarAddr Address of the variable.
VarLen Length of the variable (0 if it should be distinguished from VarType).
VarType POLiTe-style type of the variable (TYPE_INT etc.)
VarInd Indicator variable to be used.

Implements Cursor.

bool OracleCursor::_PreFetchBind const int  position,
const void *  varAddr,
const int  varLen,
const IopcDataType  varType,
bool *  null = NULL
[protected, virtual]
 

Fake implementation of newer version of _PreFetchBind(). Use Oracle8iCursor instead of this class.

Implements Cursor.

bool OracleCursor::_FetchNext  )  [protected, virtual]
 

Fetches next row for SQL statement, that has been already executed and its output variables have been bound.

Implements Cursor.

bool OracleCursor::_FetchPrev  )  [protected, virtual]
 

Fetches previous row for SQL statement, that has been already executed and its output variables have been bound.

If the database doesn't support this functionality, throws ObjLibException_NotSupported.

Implements Cursor.

long OracleCursor::_Position  )  [protected, virtual]
 

Returns actual position in the query - it means how many rows have been already fetched.

Implements Cursor.

bool OracleCursor::_Close  )  [protected, virtual]
 

Closes the cursor.

Reimplemented from Cursor.


Member Data Documentation

Cda_Def OracleCursor::_CDA [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 11 22:36:09 2004 for IOPC by Doxygen 1.3.6