#include <Oracle8iConnection.h>
Inheritance diagram for Oracle8iConnection:
Public Member Functions | |
virtual | ~Oracle8iConnection () |
virtual bool | Disconnect () |
virtual bool | Abort () |
virtual bool | Autocommit (bool ac) |
Protected Member Functions | |
Oracle8iConnection (class Database *db, const char *userName, const char *password, const int localHandle, const int globalHandle, OCISvcCtx *serviceContext) | |
virtual bool | _Commit () |
virtual bool | _Rollback () |
virtual bool | _Savepoint (const char *name) |
virtual bool | _RollbackToSavepoint (const char *name) |
virtual bool | _NextOID (long &nextOid, long &nextSN) |
virtual bool | _NextSN (long curOid, long &nextSN) |
virtual Cursor * | _GetNewCursor () |
int | processOCIError (int ociRetVal, const char *ociFunctionName, const char *myFunctionName, bool useEnvHandle=0) |
Static Protected Member Functions | |
void | logDebugMessage (const char *formatString, const char *param1="", int mask=0) |
Protected Attributes | |
OCISvcCtx * | serviceContext |
OCIEnv * | ociEnvironment |
OCIError * | errorHandle |
bool | autoCommit |
Friends | |
int | processOCIErrorGlobal (Oracle8iClassType classType, OCIEnv *ociEnvironment, OCIError *errorHandle, sword ociRetVal, const char *ociFunctionName, const char *myFunctionName, bool useEnvHandle) |
Methods of this class return true if OK, false otherwise (if not explicitly said something different). In case of connection error they throw exception ObjLibException_ConnectionError.
|
Constructor. It should be called only from Oracle8iDatabase::Connect()
|
|
Destructor - empty for now.
|
|
Commits actual transaction.
Implements Connection. |
|
Performs rollback of actual transaction.
Implements Connection. |
|
Creates savepoint with given name.
Implements Connection. |
|
Performs rollback to savepoint with given name
Implements Connection. |
|
Generates new OID and Serial Number for new object (using appropriate Oracle sequences).
|
|
Generates new Serial Number for object with given
|
|
Commits actual transaction, then disconnects from database (including freeing of serviceContext).
Reimplemented from Connection. |
|
Performs rollback of actual transaction, then disconnect from database (including freeing of serviceContext).
Reimplemented from Connection. |
|
Turns on / off autocommit (automatic commit of every SQL data manipulation statement).
Implements Connection. |
|
Creates and returns new Oracle8iCursor.
Implements Connection. |
|
Arbitrary function for error handling - calls processOCIErrorGlobal() passing it given parameters and some class specific values.
|
|
Logs (using logmsg()) given message if C_ORACLECONNECTION_TRACE is set, otherwise does nothing.
|
|
According to type of
|
|
The service context pointer - represents one opened connection (created in Oracle8iDatabase::Connect()).
|
|
Pointer to OCI Environment handle (see OCIEnvCreate() in Oracle documentation). Created in Oracle8iDatabase::Oracle8iDatabase() and copied here in constructor of this class. |
|
Pointer to OCI error handle to be passed to OCIErrorGet() for diagnostic information in the event of an error. Created in Oracle8iDatabase::Oracle8iDatabase() and copied here in constructor of this class. |
|
Should each SQL statement sent to database be automatically committed (imlicitly not)?
|