LibreOffice Module forms (master) 1
|
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_Data > | m_pData |
caches a result set obtained from a SQL statement
Definition at line 34 of file cachedrowset.hxx.
frm::CachedRowSet::CachedRowSet | ( | ) |
Definition at line 66 of file cachedrowset.cxx.
References m_pData.
frm::CachedRowSet::~CachedRowSet | ( | ) |
Definition at line 72 of file cachedrowset.cxx.
References 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().
Reference< XResultSet > frm::CachedRowSet::execute | ( | ) |
executes the statement
css::sdbc::SQLException | if 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().
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().
void frm::CachedRowSet::setCommand | ( | const OUString & | _rCommand | ) |
Definition at line 78 of file cachedrowset.cxx.
References m_pData.
Referenced by frm::OComboBoxModel::loadData(), frm::OListBoxModel::loadData(), and 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.
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().
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().
void frm::CachedRowSet::setEscapeProcessing | ( | const bool | _bEscapeProcessing | ) |
Definition at line 104 of file cachedrowset.cxx.
References m_pData.
Referenced by frm::OComboBoxModel::loadData(), frm::OListBoxModel::loadData(), and setCommandFromQuery().
|
private |
Definition at line 72 of file cachedrowset.hxx.
Referenced by dispose(), execute(), isDirty(), setCommand(), setCommandFromQuery(), setConnection(), and setEscapeProcessing().