KDb
KDbTransaction.cpp
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
bool rollbackTransaction(KDbTransaction trans=KDbTransaction(), KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions())
Rolls back specified transaction for this connection.
Definition KDbConnection.cpp:2029
KDbTransaction beginTransaction()
Starts a new database transaction.
Definition KDbConnection.cpp:1953
bool commitTransaction(KDbTransaction transaction=KDbTransaction(), KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions())
Commits specified transaction for this connection.
Definition KDbConnection.cpp:1992
Internal prototype for storing transaction handle for KDbTransaction object.
Definition KDbTransactionData.h:36
void deref()
Decrements the value of reference counter for this data.
Definition KDbTransaction.cpp:79
KDbTransactionGuard class is a convenience class that simplifies handling transactions.
Definition KDbTransactionGuard.h:52
KDbTransactionGuard()
Creates a new guard without assigning transaction.
Definition KDbTransaction.cpp:217
const KDbTransaction transaction() const
Returns transaction that is controlled by this guard.
Definition KDbTransaction.cpp:261
bool commit(KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions())
Commits the guarded transaction.
Definition KDbTransaction.cpp:240
~KDbTransactionGuard()
Roll backs not committed transaction unless doNothing() was called before.
Definition KDbTransaction.cpp:222
bool rollback(KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions())
Rolls back the guarded transaction.
Definition KDbTransaction.cpp:248
void setTransaction(const KDbTransaction &transaction)
Assigns transaction to this guard.
Definition KDbTransaction.cpp:235
bool operator==(const KDbTransaction &other) const
Returns true if this transaction is equal to other; otherwise returns false.
Definition KDbTransaction.cpp:168
KDbConnection * connection()
Returns database connection for which the transaction belongs.
Definition KDbTransaction.cpp:173
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.