LibreOffice Module forms (master) 1
Public Member Functions | Private Attributes | List of all members
frm::CachedRowSet Class Reference

caches a result set obtained from a SQL statement More...

#include <cachedrowset.hxx>

Public Member Functions

 CachedRowSet ()
 
 ~CachedRowSet ()
 
css::uno::Reference< css::sdbc::XResultSet > execute ()
 executes the statement More...
 
bool isDirty () const
 determines whether the row set properties are dirty, i.e. have changed since the last call to execute More...
 
void dispose ()
 disposes the instance and frees all associated resources More...
 
void setCommandFromQuery (const OUString &_rQueryName)
 sets the command of a query as command to be executed More...
 
void setCommand (const OUString &_rCommand)
 
void setEscapeProcessing (const bool _bEscapeProcessing)
 
void setConnection (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 

Private Attributes

::std::unique_ptr< CachedRowSet_Datam_pData
 

Detailed Description

caches a result set obtained from a SQL statement

Definition at line 34 of file cachedrowset.hxx.

Constructor & Destructor Documentation

◆ CachedRowSet()

frm::CachedRowSet::CachedRowSet ( )

Definition at line 66 of file cachedrowset.cxx.

References m_pData.

◆ ~CachedRowSet()

frm::CachedRowSet::~CachedRowSet ( )

Definition at line 72 of file cachedrowset.cxx.

References dispose().

Member Function Documentation

◆ dispose()

void frm::CachedRowSet::dispose ( void  )

disposes the instance and frees all associated resources

Definition at line 159 of file cachedrowset.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_pData.

Referenced by frm::OComboBoxModel::onDisconnectedDbColumn(), frm::OListBoxModel::onDisconnectedDbColumn(), and ~CachedRowSet().

◆ execute()

Reference< XResultSet > frm::CachedRowSet::execute ( )

executes the statement

Returns
the result set produced by the statement. The caller takes ownership of the given object.
Exceptions
css::sdbc::SQLExceptionif such an exception is thrown when executing the statement

Definition at line 124 of file cachedrowset.cxx.

References Any, DBG_UNHANDLED_EXCEPTION, Exception, m_pData, PROPERTY_ESCAPE_PROCESSING, and PROPERTY_RESULTSET_TYPE.

Referenced by frm::OComboBoxModel::loadData(), and frm::OListBoxModel::loadData().

◆ isDirty()

bool frm::CachedRowSet::isDirty ( ) const

determines whether the row set properties are dirty, i.e. have changed since the last call to execute

Definition at line 153 of file cachedrowset.cxx.

References m_pData.

Referenced by frm::OComboBoxModel::loadData(), and frm::OListBoxModel::loadData().

◆ setCommand()

void frm::CachedRowSet::setCommand ( const OUString &  _rCommand)

◆ setCommandFromQuery()

void frm::CachedRowSet::setCommandFromQuery ( const OUString &  _rQueryName)

sets the command of a query as command to be executed

A connection must have been set before.

Exceptions
Exception

Definition at line 88 of file cachedrowset.cxx.

References m_pData, PROPERTY_COMMAND, PROPERTY_ESCAPE_PROCESSING, setCommand(), and setEscapeProcessing().

Referenced by frm::OComboBoxModel::loadData(), and frm::OListBoxModel::loadData().

◆ setConnection()

void frm::CachedRowSet::setConnection ( const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection)

Definition at line 114 of file cachedrowset.cxx.

References m_pData.

Referenced by frm::OComboBoxModel::loadData(), and frm::OListBoxModel::loadData().

◆ setEscapeProcessing()

void frm::CachedRowSet::setEscapeProcessing ( const bool  _bEscapeProcessing)

Member Data Documentation

◆ m_pData

::std::unique_ptr< CachedRowSet_Data > frm::CachedRowSet::m_pData
private

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