kexidbtransaction.h
1/***************************************************************************
2 * kexidbtransaction.h
3 * This file is part of the KDE project
4 * copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
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 GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KROSS_KEXIDB_KEXIDBTRANSACTION_H
21#define KROSS_KEXIDB_KEXIDBTRANSACTION_H
22
23#include <tqstring.h>
24
25#include <api/class.h>
26
27#include <kexidb/drivermanager.h>
28#include <kexidb/transaction.h>
29
30namespace Kross { namespace KexiDB {
31
32 // Forward declaration.
33 class KexiDBConnection;
34
39 class KexiDBTransaction : public Kross::Api::Class<KexiDBTransaction>
40 {
41 public:
43 virtual ~KexiDBTransaction();
44 virtual const TQString getClassName() const;
45 ::KexiDB::Transaction& transaction();
46
47 private:
48
50 bool isActive() const;
51
53 bool isNull() const;
54
55 private:
56 ::KexiDB::Transaction& m_transaction;
57 };
58
59}}
60
61#endif
62
This class encapsulates transaction handle.
Definition transaction.h:60
Transactions are used to ensure that integrity of a database is maintained.
High-level database connectivity library with database backend drivers.