#include <cCursor.h>
Inheritance diagram for Cursor:
Public Member Functions | |
virtual | ~Cursor () |
Protected Member Functions | |
Cursor (class Connection *DbC) | |
virtual bool | _Open () |
virtual bool | _Prepare (const char *const SqlCommand)=0 |
virtual bool | _PreExecBind (const char *varName, const int pos, const void *varAddr, const int varLen, const IopcDataType varType, bool null=false)=0 |
virtual bool | _Execute ()=0 |
virtual bool | _PreFetchBind (const int position, const void *varAddr, const int varLen, const IopcDataType varType, bool *null=NULL)=0 |
virtual bool | _FetchNext ()=0 |
virtual bool | _FetchPrev ()=0 |
virtual long | _Position ()=0 |
virtual bool | _Close () |
virtual bool | _PreExecBind (const char *VarName, const void *VarAddr, const int VarLen, const char VarType, short *VarInd=NULL)=0 |
virtual bool | _PreFetchBind (const int Position, const void *VarAddr, const int VarLen, const char VarType, short *VarInd=NULL)=0 |
char * | _GetUserName () |
char * | _GetPassword () |
Protected Attributes | |
Connection * | _DatabaseConnection |
bool | _Opened |
The only "correct" instantiable descendant of this class is currently class Oracle8iCursor. If you want to implement support for another database please have a look at that class.
This class was nearly undocumented in POLiTe, I (Josef Troch) have documented all its methods.
Methods of this class returns true if OK, false (or exception) otherwise.
|
Trivial constructor.
|
|
Trivial destructor.
|
|
Opens the cursor.
Reimplemented in OracleCursor, and Oracle8iCursor. |
|
Prepares
Implemented in OracleCursor, and Oracle8iCursor. |
|
Binds an input variable of previously prepared SQL command. If
Implemented in OracleCursor, and Oracle8iCursor. |
|
Executes SQL statement, that has been already prepared and its input variables (if any) have been bound. Implemented in OracleCursor, and Oracle8iCursor. |
|
Binds an output variable of executed SQL statement. This function is called once for every output variable in SQL statement -> typically more than once per statement.
Implemented in OracleCursor, and Oracle8iCursor. |
|
Fetches next row for SQL statement, that has been already executed and its output variables have been bound. Implemented in OracleCursor, and Oracle8iCursor. |
|
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. Implemented in OracleCursor, and Oracle8iCursor. |
|
Returns actual position in the query - it means how many rows have been already fetched.
Implemented in OracleCursor, and Oracle8iCursor. |
|
Closes the cursor.
Reimplemented in OracleCursor, and Oracle8iCursor. |
|
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.
Implemented in OracleCursor, and Oracle8iCursor. |
|
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.
Implemented in OracleCursor, and Oracle8iCursor. |
|
Calls function with the same name on _DatabaseConnection.
|
|
Calls function with the same name on _DatabaseConnection.
|
|
Connection to which this cursor belongs.
|
|
Is the cursor opened?
|