DCL 3.7.4
Loading...
Searching...
No Matches
MyConnection.cpp File Reference
#include <dcl/Config.h>
#include <string.h>
#include <stdlib.h>
#include <mysql.h>
#include <dcl/Object.h>
#include <dcl/Regex.h>
#include <dcl/ListedHashMap.h>
#include <dcl/SQLCore.h>
#include "MyConnection.h"
#include "MyQuery.h"

Go to the source code of this file.

Classes

struct  STMT_PATTERN

Macros

#define __TRACE_THIS   0
#define __DCL_TRACE0_N(fmt)
#define __DCL_TRACE1_N(fmt, arg)
#define __DCL_TRACE2_N(fmt, arg1, arg2)
#define __DCL_TRACE3_N(fmt, arg1, arg2, arg3)
#define __DCL_TRACE4_N(fmt, arg1, arg2, arg3, arg4)
#define __SET_ERROR_HANDLE(_error)
#define __SET_ERROR_MSG(_msg)

Enumerations

enum  StmtType { StmtOther , StmtTransBegin , StmtTransEnd }

Functions

 IMPLEMENT_CLASSINFO (MyConnection, SQL::Connection) MyConnection

Macro Definition Documentation

◆ __DCL_TRACE0_N

#define __DCL_TRACE0_N ( fmt)

Definition at line 29 of file MyConnection.cpp.

◆ __DCL_TRACE1_N

#define __DCL_TRACE1_N ( fmt,
arg )

Definition at line 30 of file MyConnection.cpp.

◆ __DCL_TRACE2_N

#define __DCL_TRACE2_N ( fmt,
arg1,
arg2 )

Definition at line 31 of file MyConnection.cpp.

◆ __DCL_TRACE3_N

#define __DCL_TRACE3_N ( fmt,
arg1,
arg2,
arg3 )

Definition at line 32 of file MyConnection.cpp.

◆ __DCL_TRACE4_N

#define __DCL_TRACE4_N ( fmt,
arg1,
arg2,
arg3,
arg4 )

Definition at line 33 of file MyConnection.cpp.

◆ __SET_ERROR_HANDLE

#define __SET_ERROR_HANDLE ( _error)
Value:
setErrorHandle(_error, __THIS_FILE__, __LINE__)
#define __THIS_FILE__
Definition _trace.h:14

Definition at line 41 of file MyConnection.cpp.

41#define __SET_ERROR_HANDLE(_error) \
42 setErrorHandle(_error, __THIS_FILE__, __LINE__)

◆ __SET_ERROR_MSG

#define __SET_ERROR_MSG ( _msg)
Value:
setErrorMessage(_msg, __THIS_FILE__, __LINE__)

Definition at line 43 of file MyConnection.cpp.

43#define __SET_ERROR_MSG(_msg) \
44 setErrorMessage(_msg, __THIS_FILE__, __LINE__)

◆ __TRACE_THIS

#define __TRACE_THIS   0

Definition at line 21 of file MyConnection.cpp.

Enumeration Type Documentation

◆ StmtType

enum StmtType
Enumerator
StmtOther 
StmtTransBegin 
StmtTransEnd 

Definition at line 167 of file MyConnection.cpp.

167 {
168 StmtOther,
171};
@ StmtTransEnd
@ StmtOther
@ StmtTransBegin

Function Documentation

◆ IMPLEMENT_CLASSINFO()

IMPLEMENT_CLASSINFO ( MyConnection ,
SQL::Connection  )

Definition at line 46 of file MyConnection.cpp.

49 : Connection(_serverTitle)
50{
51 Connection::__canTransact = true;
52 __mysql = NULL;
53 __storeResult = false;
54}
#define NULL
Definition Config.h:312