LibreOffice Module connectivity (master) 1
|
#include <conncleanup.hxx>
Public Member Functions | |
OAutoConnectionDisposer (const css::uno::Reference< css::sdbc::XRowSet > &_rxRowSet, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection) | |
constructs an object More... | |
Private Member Functions | |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &_rEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &_rSource) override |
virtual void SAL_CALL | cursorMoved (const css::lang::EventObject &event) override |
virtual void SAL_CALL | rowChanged (const css::lang::EventObject &event) override |
virtual void SAL_CALL | rowSetChanged (const css::lang::EventObject &event) override |
void | clearConnection () |
void | startRowSetListening () |
void | stopRowSetListening () |
bool | isRowSetListening () const |
void | startPropertyListening (const css::uno::Reference< css::beans::XPropertySet > &_rxProps) |
void | stopPropertyListening (const css::uno::Reference< css::beans::XPropertySet > &_rxEventSource) |
Private Attributes | |
css::uno::Reference< css::sdbc::XConnection > | m_xOriginalConnection |
css::uno::Reference< css::sdbc::XRowSet > | m_xRowSet |
bool | m_bRSListening: 1 |
bool | m_bPropertyListening: 1 |
Definition at line 43 of file conncleanup.hxx.
dbtools::OAutoConnectionDisposer::OAutoConnectionDisposer | ( | const css::uno::Reference< css::sdbc::XRowSet > & | _rxRowSet, |
const css::uno::Reference< css::sdbc::XConnection > & | _rxConnection | ||
) |
constructs an object
The connection given will be set on the rowset (as ActiveConnection), and the object adds itself as property change listener for the connection. Once somebody sets a new ActiveConnection, the old one (the one given here) will be disposed.
Definition at line 40 of file conncleanup.cxx.
References dbtools::ACTIVE_CONNECTION_PROPERTY_NAME, Any, Exception, m_xOriginalConnection, startPropertyListening(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 195 of file conncleanup.cxx.
References Exception, m_xOriginalConnection, and TOOLS_WARN_EXCEPTION.
Referenced by disposing(), and rowSetChanged().
|
overrideprivatevirtual |
Definition at line 211 of file conncleanup.cxx.
|
overrideprivatevirtual |
Definition at line 183 of file conncleanup.cxx.
References clearConnection(), isRowSetListening(), m_bPropertyListening, stopPropertyListening(), and stopRowSetListening().
|
inlineprivate |
Definition at line 78 of file conncleanup.hxx.
Referenced by disposing(), and propertyChange().
|
overrideprivatevirtual |
Definition at line 130 of file conncleanup.cxx.
References dbtools::ACTIVE_CONNECTION_PROPERTY_NAME, isRowSetListening(), m_xOriginalConnection, startRowSetListening(), and stopRowSetListening().
|
overrideprivatevirtual |
Definition at line 215 of file conncleanup.cxx.
|
overrideprivatevirtual |
Definition at line 219 of file conncleanup.cxx.
References clearConnection(), and stopRowSetListening().
|
private |
Definition at line 64 of file conncleanup.cxx.
References dbtools::ACTIVE_CONNECTION_PROPERTY_NAME, Exception, m_bPropertyListening, and TOOLS_WARN_EXCEPTION.
Referenced by OAutoConnectionDisposer().
|
private |
Definition at line 99 of file conncleanup.cxx.
References Exception, m_bRSListening, m_xRowSet, and TOOLS_WARN_EXCEPTION.
Referenced by propertyChange().
|
private |
Definition at line 78 of file conncleanup.cxx.
References dbtools::ACTIVE_CONNECTION_PROPERTY_NAME, Exception, m_bPropertyListening, and TOOLS_WARN_EXCEPTION.
Referenced by disposing().
|
private |
Definition at line 115 of file conncleanup.cxx.
References Exception, m_bRSListening, m_xRowSet, and TOOLS_WARN_EXCEPTION.
Referenced by disposing(), propertyChange(), and rowSetChanged().
|
private |
Definition at line 49 of file conncleanup.hxx.
Referenced by disposing(), startPropertyListening(), and stopPropertyListening().
|
private |
Definition at line 48 of file conncleanup.hxx.
Referenced by startRowSetListening(), and stopRowSetListening().
|
private |
Definition at line 46 of file conncleanup.hxx.
Referenced by clearConnection(), OAutoConnectionDisposer(), and propertyChange().
|
private |
Definition at line 47 of file conncleanup.hxx.
Referenced by startRowSetListening(), and stopRowSetListening().