VisualIB
1.0
IBExpress library for making use of Borland IBExpress outside of C++Builder
Main Page
Classes
Files
File List
File Members
VisualIB
Classes
Files
File List
VIB
classVIBDatabase.h
classVIBDataSet.h
classVIBError.h
classVIBSQL.h
classVIBTransaction.h
VIBInternalErrors.h
VIBProperties.h
VIBUtils.h
dllmain.cpp
VIB.h
vibdatabase.cpp
vibdatabase.h
vibdataset.cpp
vibdataset.h
vibdefines.h
viberror.cpp
viberror.h
vibexception.h
vibinlines.h
vibsql.cpp
vibsql.h
vibstring.cpp
vibstring.h
vibtransaction.cpp
vibtransaction.h
vibtypes.h
File Members
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
classVIBTransaction.h
Go to the documentation of this file.
1
7
#ifndef CLASSVIBTRANSACTION_H__
8
#define CLASSVIBTRANSACTION_H__
9
10
#include "../vibtypes.h"
11
#include "
VIBProperties.h
"
12
13
struct
VIBTransaction
;
14
struct
VIBDatabase
;
15
16
namespace
VIB
17
{
18
class
Database;
19
24
class
Transaction
25
{
26
protected
:
27
VIBTransaction
*
vtr
;
28
29
public
:
35
Transaction
(
VIBTransaction
*pvtr = NULL);
39
virtual
~Transaction
();
40
50
int
Call
(
int
ErrCode,
bool
RaiseError);
57
void
Commit
();
62
void
CommitRetaining
();
69
void
Rollback
();
75
void
RollbackRetaining
();
84
void
StartTransaction
();
91
void
CheckInTransaction
();
98
void
CheckNotInTransaction
();
103
void
CheckAutoStop
();
113
int
AddDatabase
(
Database
*db);
123
int
FindDatabase
(
Database
*db);
132
VIBDatabase
*
FindDefaultDatabase
();
138
void
RemoveDatabase
(
int
Idx);
143
void
RemoveDatabases
();
149
void
CheckDatabasesInList
();
150
155
VIBTransaction
*
getVIBTransaction
()
const
{
return
vtr
; }
156
157
// Property classes
158
162
class
DatabasesClass
163
{
164
protected
:
165
Transaction
*
parent
;
166
public
:
171
DatabasesClass
(
Transaction
*pParent) :
parent
(pParent) {}
172
181
VIBDatabase
*
operator []
(
int
i);
182
};
183
187
class
ParamClass
188
{
189
protected
:
190
Transaction
*
parent
;
191
public
:
196
ParamClass
(
Transaction
*pParent) :
parent
(pParent) {}
202
void
Add
(
const
std::string &str);
203
};
204
friend
class
ParamClass;
205
206
protected
:
207
// Property class instances
208
DatabasesClass
dbObject
;
209
ParamClass
paramObject
;
210
211
public
:
212
// Properties
217
Property<bool>
Active
;
223
Property<VIBAutoStopAction>
AutoStopAction
;
229
Property<int>
DatabaseCount
;
234
Property<VIBTransactionAction>
DefaultAction
;
242
Property<VIBDatabase *>
DefaultDatabase
;
250
Property<void *>
Handle
;
256
Property<bool>
HandleIsShared
;
263
Property<int>
IdleTimer
;
270
Property<bool>
InTransaction
;
277
Property<ParamClass *>
Params
;
284
Property<int>
SQLObjectCount
;
289
Property<char *>
TPB
;
295
Property<short>
TPBLength
;
296
305
ArrayProperty<DatabasesClass *, VIBDatabase *>
Databases
;
306
};
307
}
308
309
#endif
310
311
// EOF
312
VIB
classVIBTransaction.h
Generated on Thu Jun 20 2013 10:46:26 for VisualIB by
1.8.2