fintp_udal
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
InformixDatabase.h
Go to the documentation of this file.
1
/*
2
* FinTP - Financial Transactions Processing Application
3
* Copyright (C) 2013 Business Information Systems (Allevo) S.R.L.
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>
17
* or contact Allevo at : 031281 Bucuresti, 23C Calea Vitan, Romania,
18
* phone +40212554577, office@allevo.ro <mailto:office@allevo.ro>, www.allevo.ro.
19
*/
20
21
#ifndef INFORMIXDATABASE_H
22
#define INFORMIXDATABASE_H
23
24
#include "../ODBCDatabase.h"
25
26
#include <pthread.h>
27
28
#include <map>
29
#include <string>
30
using namespace
std;
31
32
namespace
FinTP
33
{
45
class
ExportedUdalObject
InformixDatabase
:
public
ODBCDatabase
46
{
47
public
:
48
49
InformixDatabase
():
ODBCDatabase
() {};
50
~InformixDatabase
() {};
51
52
void
BeginTransaction(
const
bool
readonly );
53
void
EndTransaction (
const
TransactionType::TRANSACTION_TYPE
trType,
const
bool
throwOnError );
54
//void Connect( const ConnectionString& connectionString );
55
void
ConnectionLost
() {
56
m_IsConnected =
false
;
57
m_IsReconecting =
true
;
58
}
59
bool
IsConnected();
60
61
private
:
62
63
//Informix specific
64
ConnectionString
m_ConnectionString
;
65
66
bool
m_IsReconecting
;
67
68
//DataSet* innerExecuteCommand( const DataCommand& command, ParametersVector vectorOfParameters, const bool useCursor = false, const unsigned int fetchRows = 0 );
69
70
//DataSet* getDataSet( DataCommand& command, const bool isCommandCached, SQLHANDLE* statementHandle, const bool useCursor, const unsigned int fetchRows = 0 );
71
75
string
getErrorInformation( SQLSMALLINT htype, SQLHANDLE handle );
76
80
void
setSpecificEnvAttr();
81
string
callFormating(
const
string
& statementString,
const
ParametersVector
& vectorOfParameters );
82
};
83
}
84
85
#endif //INFORMIXDATABASE_H
86
src
ODBC
Informix
InformixDatabase.h
Generated on Tue Aug 12 2014 09:51:21 for fintp_udal by
1.8.3.1