1#ifndef __DCL_OCI_CONNECTION_H__
2#define __DCL_OCI_CONNECTION_H__ 20020321
16 OCIError* __lastError;
17 ByteString __errorMessageEx;
22 sword status, OCIError* pError,
30 size_t xtramem_sz = 0,
void** ppvUserMem =
NULL);
33 ub4 nDescriptorType,
size_t xtramem_sz = 0,
void** ppvUserMem =
NULL);
63 virtual bool __open(
const char* _connString,
size_t _connlen);
65 virtual bool __execute(
const char* _sql,
size_t _sqllen);
77 sword status, OCIError* pError,
84 __lastStatus = status;
87 if (bPriorReset && !__errorMessageEx.isEmpty())
88 __errorMessageEx.clear();
93 __errorMessageEx = _message;
104 return ::OCIHandleAlloc(
__env,
114 return ::OCIHandleFree(pHandle, nHandleType);
123 return ::OCIDescriptorAlloc(
__env,
131 void* pDescriptorHandle,
135 return ::OCIDescriptorFree(pDescriptorHandle, nDescriptorType);
#define DECLARE_CLASSINFO(class_name)
#define __DCL_ASSERT(expr)
void CharsetConvertException *size_t n
OCISvcCtx * svcctxHandle() const
virtual bool __getErrorMessage(char *_buf, size_t *_buflen)
bool closeHelper(bool bEnableDebugInfo)
virtual bool __startTrans()
sword OCIHandleFree(void *pHandle, ub4 nHandleType)
virtual bool __open(const char *_connString, size_t _connlen)
sword OCIDescriptorAlloc(void **ppDescriptorHandle, ub4 nDescriptorType, size_t xtramem_sz=0, void **ppvUserMem=NULL)
virtual bool __commitTrans()
OCIError * errorHandle() const
virtual bool __createQueryInstance(SQL::Query **_queryHandleOut)
OciConnection(const wchar_t *_serverTitle)
virtual bool __execute(const char *_sql, size_t _sqllen)
void setErrorStatus(SQL::Error _error, sword status, OCIError *pError, bool bPriorReset, const wchar_t *_filename, int _line)
void setErrorEx(const ByteString &_message)
virtual bool __getServerInfo(char *_buf, size_t *_buflen)
sword OCIDescriptorFree(void *pDescriptorHandle, ub4 nDescriptorType)
bool executeHelper(const char *pszSQL, size_t n)
sword OCIHandleAlloc(void **ppHandle, ub4 nHandleType, size_t xtramem_sz=0, void **ppvUserMem=NULL)
OCISession * sessionHandle() const
OCIError * errorHandle2() const
OCIEnv * envHandle() const
virtual bool __rollbackTrans()
__PROTECTED const wchar_t int _line
__PROTECTED const wchar_t * _filename