Qore SqlUtil Module Reference  1.7.3
AbstractSavepointHelper.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 // assume local scope for variables, do not use "$" signs
26 // require type definitions everywhere
28 // enable all warnings
29 
31 namespace SqlUtil {
34 
35 public:
36 protected:
38  AbstractDatasource ds;
39 
41  string savepoint;
42 
43 public:
44 
46  constructor(AbstractDatasource ds, *string savepoint);
47 
48 
50  destructor();
51 
52 
54  rollback();
55 
56 
58 protected:
59  abstract createSavepointImpl();
60 public:
61 
63 protected:
64  abstract rollbackImpl();
65 public:
66 
68 protected:
69  abstract deleteSavepointImpl();
70 public:
71 };
72 };
rollback()
Rolls back to the savepoint.
abstract deleteSavepointImpl()
Deletes the savepoint.
destructor()
Deletes the savepoint.
Qore AbstractDatabase class definition.
Definition: AbstractDatabase.qc.dox.h:32
Abstract base class for savepoint helpers for epheremal transaction support.
Definition: AbstractSavepointHelper.qc.dox.h:33
constructor(AbstractDatasource ds, *string savepoint)
Creates the object.
abstract rollbackImpl()
Rolls back to the savepoint.
string savepoint
The name of the savepoint.
Definition: AbstractSavepointHelper.qc.dox.h:41
AbstractDatasource ds
The datasource where the transaction is handled.
Definition: AbstractSavepointHelper.qc.dox.h:38
abstract createSavepointImpl()
Creates the savepoint.