LibreOffice Module connectivity (master) 1
|
#include <pq_tools.hxx>
Public Member Functions | |
TransactionGuard (const css::uno::Reference< css::sdbc::XStatement > &stmt) | |
takes over ownership of given statement More... | |
~TransactionGuard () | |
void | commit () |
void | executeUpdate (const OUString &sql) |
Private Attributes | |
css::uno::Reference< css::sdbc::XStatement > | m_stmt |
bool | m_commited |
Definition at line 161 of file pq_tools.hxx.
|
explicit |
takes over ownership of given statement
pq_sdbc_driver::TransactionGuard::~TransactionGuard | ( | ) |
Definition at line 297 of file pq_tools.cxx.
References pq_sdbc_driver::disposeNoThrow(), pq_sdbc_driver::getStatics(), m_commited, and m_stmt.
void pq_sdbc_driver::TransactionGuard::commit | ( | ) |
Definition at line 286 of file pq_tools.cxx.
References pq_sdbc_driver::getStatics(), m_commited, and m_stmt.
Referenced by pq_sdbc_driver::alterColumnByDescriptor(), and pq_sdbc_driver::Tables::appendByDescriptor().
void pq_sdbc_driver::TransactionGuard::executeUpdate | ( | const OUString & | sql | ) |
Definition at line 292 of file pq_tools.cxx.
References m_stmt.
Referenced by pq_sdbc_driver::alterColumnByDescriptor(), and pq_sdbc_driver::Tables::appendByDescriptor().
|
private |
Definition at line 164 of file pq_tools.hxx.
Referenced by commit(), and ~TransactionGuard().
|
private |
Definition at line 163 of file pq_tools.hxx.
Referenced by commit(), executeUpdate(), and ~TransactionGuard().