1#ifndef __DCL_OCI_CONNECTION_H__
2#define __DCL_OCI_CONNECTION_H__ 20020321
16 OCIError* __lastError;
17 ByteString __errorMessage;
26 sword _status, OCIError* _OCIError,
32 const ByteString& _message,
40 size_t _xtramem_sz = 0,
41 void** _usrmempp =
NULL
52 size_t _xtramem_sz = 0,
53 void** _usrmempp =
NULL
89 virtual bool __open(
const char* _cons,
size_t _conslen);
91 virtual bool __execute(
const char* _sql,
size_t _sqllen);
103 sword status, OCIError* pError,
110 __lastStatus = status;
111 __lastError = pError;
114 __errorMessage.clear();
118 const ByteString& _message,
124 __errorMessage = _message;
137 return OCIHandleAlloc(
152 return OCIHandleFree(
166 return OCIDescriptorAlloc(
181 return OCIDescriptorFree(
#define DECLARE_CLASSINFO(class_name)
#define __DCL_ASSERT(expr)
virtual bool __open(const char *_cons, size_t _conslen)
void setErrorMessage(const ByteString &_message, const wchar_t *_filename, int _line)
virtual bool __getErrorMessage(char *_buf, size_t *_buflen)
bool closeHelper(bool bEnableDebugInfo)
virtual bool __startTrans()
virtual bool __commitTrans()
OCIError * errorHandle() const
virtual bool __createQueryInstance(SQL::Query **_queryHandleOut)
OciConnection(const wchar_t *_serverTitle)
bool executeHelper(const char *_sql, size_t _sqllen)
virtual bool __execute(const char *_sql, size_t _sqllen)
OCISvcCtx * svcHandle() const
virtual bool __getServerInfo(char *_buf, size_t *_buflen)
void setErrorHandle(SQL::Error _error, sword _status, OCIError *_OCIError, bool _priorReset, const wchar_t *_filename, int _line)
sword DescriptorAlloc(void **_descpp, ub4 _type, size_t _xtramem_sz=0, void **_usrmempp=NULL)
sword DescriptorFree(void *_descp, ub4 _type)
OCISession * sessionHandle() const
OCIError * errorHandle2() const
sword HandleAlloc(void **_hndlpp, ub4 _type, size_t _xtramem_sz=0, void **_usrmempp=NULL)
OCIEnv * envHandle() const
virtual bool __rollbackTrans()
sword HandleFree(void *_hndlp, ub4 _type)
_PROTECTED const wchar_t * _filename
_PROTECTED const wchar_t int _line