LibreOffice Module connectivity (master) 1
Public Member Functions | Private Attributes | List of all members
pq_sdbc_driver::TransactionGuard Class Reference

#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
 

Detailed Description

Definition at line 161 of file pq_tools.hxx.

Constructor & Destructor Documentation

◆ TransactionGuard()

pq_sdbc_driver::TransactionGuard::TransactionGuard ( const css::uno::Reference< css::sdbc::XStatement > &  stmt)
explicit

takes over ownership of given statement

◆ ~TransactionGuard()

pq_sdbc_driver::TransactionGuard::~TransactionGuard ( )

Member Function Documentation

◆ commit()

void pq_sdbc_driver::TransactionGuard::commit ( )

◆ executeUpdate()

void pq_sdbc_driver::TransactionGuard::executeUpdate ( const OUString &  sql)

Member Data Documentation

◆ m_commited

bool pq_sdbc_driver::TransactionGuard::m_commited
private

Definition at line 164 of file pq_tools.hxx.

Referenced by commit(), and ~TransactionGuard().

◆ m_stmt

css::uno::Reference< css::sdbc::XStatement > pq_sdbc_driver::TransactionGuard::m_stmt
private

Definition at line 163 of file pq_tools.hxx.

Referenced by commit(), executeUpdate(), and ~TransactionGuard().


The documentation for this class was generated from the following files: