#include <Oracle8iDatabase.h>
Inheritance diagram for Oracle8iDatabase:
Public Member Functions | |
Oracle8iDatabase (const char *connectString=NULL) | |
~Oracle8iDatabase () | |
virtual Connection * | Connect (const char *userName, const char *password) |
virtual bool | WriteDDL (std::ofstream &S) |
virtual char * | ColumnTypeDDL (char colType, int colLength) |
Protected Member Functions | |
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="") |
Protected Attributes | |
OCIEnv * | ociEnvironment |
OCIError * | errorHandle |
bool | errorInitializingOCI |
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.
|
Creates a Database object assigned to a real database.
|
|
Destructor - disconnects all connections to this database (Connection::Disconnect()), frees some handles.
|
|
Creates new connection to the database After successful connection this function calls afterConnectHandler if runAfterConnectHandler is set.
Implements Database. |
|
Generates DDL statements needed for old POLiTe style persistence to work Obsolete function. IopcPersistentObject ancestors don't need this generated DDL statements. So you can make fake implementation of this function if you don't need to support POLiTe-style persistent classes.
Implements Database. |
|
Returns correct database column type for given attribute type. Obsolete function used by POLiTe-style persistent classes. IopcPersistentObject ancestors don't use this function. So you can make fake implementation of this function if you don't need to support POLiTe-style persistent classes.
Implements Database. |
|
Arbitrary function for error handling - calls processOCIErrorGlobal() passing it given parameters and some class specific values.
|
|
Logs (using logmsg()) given message if C_ORACLEDATABASE_TRACE is set, otherwise does nothing.
|
|
Pointer to OCI Environment handle (see OCIEnvCreate() in Oracle documentation).
|
|
Pointer to error handle to be passed to OCIErrorGet() for diagnostic information in case of error.
|
|
Set if an error occured in constructor while initializing Oracle 8i OCI. If set, Connect() fails.
|