LibreOffice Module ucb (master) 1
|
#include <cachedcontentresultsetstub.hxx>
Public Member Functions | |
CachedContentResultSetStub (css::uno::Reference< css::sdbc::XResultSet > const &xOrigin) | |
virtual | ~CachedContentResultSetStub () override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void | impl_propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void | impl_vetoableChange (const css::beans::PropertyChangeEvent &aEvent) override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::ucb::FetchResult SAL_CALL | fetch (sal_Int32 nRowStartPosition, sal_Int32 nRowCount, sal_Bool bDirection) override |
virtual css::ucb::FetchResult SAL_CALL | fetchContentIdentifierStrings (sal_Int32 nRowStartPosition, sal_Int32 nRowCount, sal_Bool bDirection) override |
virtual css::ucb::FetchResult SAL_CALL | fetchContentIdentifiers (sal_Int32 nRowStartPosition, sal_Int32 nRowCount, sal_Bool bDirection) override |
virtual css::ucb::FetchResult SAL_CALL | fetchContents (sal_Int32 nRowStartPosition, sal_Int32 nRowCount, sal_Bool bDirection) override |
Public Member Functions inherited from ContentResultSetWrapper | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | dispose () override final |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual void SAL_CALL | close () override |
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL | getMetaData () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override final |
css::uno::Reference< css::beans::XPropertySetInfo > | getPropertySetInfoImpl (std::unique_lock< std::mutex > &rGuard) |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) final override |
virtual void | setPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, const OUString &aPropertyName, const css::uno::Any &aValue) |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void | impl_disposing (const css::lang::EventObject &Source) |
virtual void | impl_propertyChange (const css::beans::PropertyChangeEvent &evt) |
virtual void | impl_vetoableChange (const css::beans::PropertyChangeEvent &aEvent) |
virtual OUString SAL_CALL | queryContentIdentifierString () override final |
virtual OUString | queryContentIdentifierStringImpl (std::unique_lock< std::mutex > &rGuard) |
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL | queryContentIdentifier () override |
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL | queryContent () override |
virtual sal_Bool SAL_CALL | next () override |
virtual sal_Bool SAL_CALL | isBeforeFirst () override |
virtual sal_Bool SAL_CALL | isAfterLast () override |
virtual sal_Bool SAL_CALL | isFirst () override |
virtual sal_Bool SAL_CALL | isLast () override |
virtual void SAL_CALL | beforeFirst () override |
virtual void SAL_CALL | afterLast () override |
virtual sal_Bool SAL_CALL | first () override |
virtual sal_Bool SAL_CALL | last () override |
virtual sal_Int32 SAL_CALL | getRow () override |
virtual sal_Bool SAL_CALL | absolute (sal_Int32 row) override |
virtual sal_Bool SAL_CALL | relative (sal_Int32 rows) override |
virtual sal_Bool SAL_CALL | previous () override |
virtual void SAL_CALL | refreshRow () override |
virtual sal_Bool SAL_CALL | rowUpdated () override |
virtual sal_Bool SAL_CALL | rowInserted () override |
virtual sal_Bool SAL_CALL | rowDeleted () override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getStatement () override |
virtual sal_Bool SAL_CALL | wasNull () override |
virtual OUString SAL_CALL | getString (sal_Int32 columnIndex) override |
virtual sal_Bool SAL_CALL | getBoolean (sal_Int32 columnIndex) override |
virtual sal_Int8 SAL_CALL | getByte (sal_Int32 columnIndex) override |
virtual sal_Int16 SAL_CALL | getShort (sal_Int32 columnIndex) override |
virtual sal_Int32 SAL_CALL | getInt (sal_Int32 columnIndex) override |
virtual sal_Int64 SAL_CALL | getLong (sal_Int32 columnIndex) override |
virtual float SAL_CALL | getFloat (sal_Int32 columnIndex) override |
virtual double SAL_CALL | getDouble (sal_Int32 columnIndex) override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getBytes (sal_Int32 columnIndex) override |
virtual css::util::Date SAL_CALL | getDate (sal_Int32 columnIndex) override |
virtual css::util::Time SAL_CALL | getTime (sal_Int32 columnIndex) override |
virtual css::util::DateTime SAL_CALL | getTimestamp (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getBinaryStream (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getCharacterStream (sal_Int32 columnIndex) override |
virtual css::uno::Any SAL_CALL | getObject (sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override |
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL | getRef (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL | getBlob (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL | getClob (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL | getArray (sal_Int32 columnIndex) override |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Private Member Functions | |
void | impl_getCurrentRowContent (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rRowContent, const css::uno::Reference< css::sdbc::XRow > &xRow) |
sal_Int32 | impl_getColumnCount (std::unique_lock< std::mutex > &) |
void | impl_propagateFetchSizeAndDirection (std::unique_lock< std::mutex > &rGuard, sal_Int32 nFetchSize, bool bFetchDirection) |
css::ucb::FetchResult | impl_fetchHelper (std::unique_lock< std::mutex > &rGuard, sal_Int32 nRowStartPosition, sal_Int32 nRowCount, bool bDirection, std::function< void(std::unique_lock< std::mutex > &, css::uno::Any &rRowContent)> impl_loadRow) |
Static Private Member Functions | |
static void | impl_getCurrentContentIdentifierString (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rAny, const css::uno::Reference< css::ucb::XContentAccess > &xContentAccess) |
static void | impl_getCurrentContentIdentifier (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rAny, const css::uno::Reference< css::ucb::XContentAccess > &xContentAccess) |
static void | impl_getCurrentContent (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rAny, const css::uno::Reference< css::ucb::XContentAccess > &xContentAccess) |
Private Attributes | |
sal_Int32 | m_nColumnCount |
bool | m_bColumnCountCached |
bool | m_bNeedToPropagateFetchSize |
bool | m_bFirstFetchSizePropagationDone |
sal_Int32 | m_nLastFetchSize |
bool | m_bLastFetchDirection |
const OUString | m_aPropertyNameForFetchSize |
const OUString | m_aPropertyNameForFetchDirection |
Additional Inherited Members | |
Protected Types inherited from ContentResultSetWrapper | |
typedef comphelper::OMultiTypeInterfaceContainerHelperVar4< OUString, css::beans::XPropertyChangeListener > | PropertyChangeListenerContainer_Impl |
typedef comphelper::OMultiTypeInterfaceContainerHelperVar4< OUString, css::beans::XVetoableChangeListener > | VetoableChangeListenerContainer_Impl |
Protected Member Functions inherited from ContentResultSetWrapper | |
ContentResultSetWrapper (css::uno::Reference< css::sdbc::XResultSet > const &xOrigin) | |
virtual | ~ContentResultSetWrapper () override |
void | impl_init () |
void | impl_deinit () |
void | impl_init_xRowOrigin (std::unique_lock< std::mutex > &) |
void | impl_init_xContentAccessOrigin (std::unique_lock< std::mutex > &) |
void | impl_init_xPropertySetOrigin (std::unique_lock< std::mutex > &) |
virtual void | impl_initPropertySetInfo (std::unique_lock< std::mutex > &rGuard) |
void | impl_EnsureNotDisposed (std::unique_lock< std::mutex > &rGuard) |
void | impl_notifyPropertyChangeListeners (std::unique_lock< std::mutex > &rGuard, const css::beans::PropertyChangeEvent &rEvt) |
void | impl_notifyVetoableChangeListeners (std::unique_lock< std::mutex > &rGuard, const css::beans::PropertyChangeEvent &rEvt) |
bool | impl_isForwardOnly (std::unique_lock< std::mutex > &rGuard) |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes inherited from ContentResultSetWrapper | |
std::mutex | m_aMutex |
css::uno::Reference< css::sdbc::XResultSet > | m_xResultSetOrigin |
css::uno::Reference< css::sdbc::XRow > | m_xRowOrigin |
css::uno::Reference< css::ucb::XContentAccess > | m_xContentAccessOrigin |
! call impl_init_xRowOrigin() bevor you access this member More... | |
css::uno::Reference< css::beans::XPropertySet > | m_xPropertySetOrigin |
! call impl_init_xContentAccessOrigin() bevor you access this member More... | |
css::uno::Reference< css::beans::XPropertySetInfo > | m_xPropertySetInfo |
! call impl_init_xPropertySetOrigin() bevor you access this member More... | |
sal_Int32 | m_nForwardOnly |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Definition at line 30 of file cachedcontentresultsetstub.hxx.
CachedContentResultSetStub::CachedContentResultSetStub | ( | css::uno::Reference< css::sdbc::XResultSet > const & | xOrigin | ) |
Definition at line 38 of file cachedcontentresultsetstub.cxx.
References ContentResultSetWrapper::impl_init().
|
overridevirtual |
Definition at line 52 of file cachedcontentresultsetstub.cxx.
References ContentResultSetWrapper::impl_deinit().
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 59 of file cachedcontentresultsetstub.cxx.
|
overridevirtual |
Definition at line 304 of file cachedcontentresultsetstub.cxx.
References impl_fetchHelper(), impl_getCurrentRowContent(), ContentResultSetWrapper::impl_init_xRowOrigin(), ContentResultSetWrapper::m_aMutex, and ContentResultSetWrapper::m_xRowOrigin.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 483 of file cachedcontentresultsetstub.cxx.
References impl_fetchHelper(), impl_getCurrentContent(), ContentResultSetWrapper::impl_init_xContentAccessOrigin(), ContentResultSetWrapper::m_aMutex, and ContentResultSetWrapper::m_xContentAccessOrigin.
|
overridevirtual |
|
overridevirtual |
Definition at line 165 of file cachedcontentresultsetstub.cxx.
|
overridevirtual |
Definition at line 175 of file cachedcontentresultsetstub.cxx.
Definition at line 141 of file cachedcontentresultsetstub.cxx.
References CPPU_TYPE_REF, and XPropertySet.
|
private |
Definition at line 185 of file cachedcontentresultsetstub.cxx.
References ContentResultSetWrapper::impl_EnsureNotDisposed(), ContentResultSetWrapper::impl_isForwardOnly(), impl_propagateFetchSizeAndDirection(), and ContentResultSetWrapper::m_xResultSetOrigin.
Referenced by fetch(), fetchContentIdentifiers(), fetchContentIdentifierStrings(), and fetchContents().
|
private |
Definition at line 315 of file cachedcontentresultsetstub.cxx.
References ContentResultSetWrapper::getMetaData(), m_bColumnCountCached, m_nColumnCount, and nCount.
Referenced by impl_getCurrentRowContent().
|
staticprivate |
css::uno::RuntimeException |
Definition at line 451 of file cachedcontentresultsetstub.cxx.
Referenced by fetchContents().
|
staticprivate |
css::uno::RuntimeException |
Definition at line 444 of file cachedcontentresultsetstub.cxx.
Referenced by fetchContentIdentifiers().
|
staticprivate |
css::uno::RuntimeException |
Definition at line 437 of file cachedcontentresultsetstub.cxx.
Referenced by fetchContentIdentifierStrings().
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 341 of file cachedcontentresultsetstub.cxx.
References impl_getColumnCount(), and nCount.
Referenced by fetch().
|
private |
css::uno::RuntimeException |
Definition at line 357 of file cachedcontentresultsetstub.cxx.
References Any, ContentResultSetWrapper::getPropertySetInfo(), m_aPropertyNameForFetchDirection, m_aPropertyNameForFetchSize, m_bFirstFetchSizePropagationDone, m_bLastFetchDirection, m_bNeedToPropagateFetchSize, m_nLastFetchSize, and ContentResultSetWrapper::setPropertyValueImpl().
Referenced by impl_fetchHelper().
|
overridevirtual |
css::uno::RuntimeException |
Reimplemented from ContentResultSetWrapper.
Definition at line 95 of file cachedcontentresultsetstub.cxx.
References ContentResultSetWrapper::impl_EnsureNotDisposed(), ContentResultSetWrapper::impl_notifyPropertyChangeListeners(), ContentResultSetWrapper::m_aMutex, m_aPropertyNameForFetchDirection, m_aPropertyNameForFetchSize, and XPropertySet.
|
overridevirtual |
css::beans::PropertyVetoException | |
css::uno::RuntimeException |
Reimplemented from ContentResultSetWrapper.
Definition at line 116 of file cachedcontentresultsetstub.cxx.
References ContentResultSetWrapper::impl_EnsureNotDisposed(), ContentResultSetWrapper::impl_notifyVetoableChangeListeners(), ContentResultSetWrapper::m_aMutex, m_aPropertyNameForFetchDirection, m_aPropertyNameForFetchSize, and XPropertySet.
|
overridevirtual |
Reimplemented from ContentResultSetWrapper.
Definition at line 71 of file cachedcontentresultsetstub.cxx.
References Any, ContentResultSetWrapper::queryInterface(), and cppu::queryInterface().
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 65 of file cachedcontentresultsetstub.cxx.
|
overridevirtual |
Definition at line 170 of file cachedcontentresultsetstub.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 47 of file cachedcontentresultsetstub.hxx.
Referenced by impl_propagateFetchSizeAndDirection(), impl_propertyChange(), and impl_vetoableChange().
|
private |
Definition at line 46 of file cachedcontentresultsetstub.hxx.
Referenced by impl_propagateFetchSizeAndDirection(), impl_propertyChange(), and impl_vetoableChange().
|
private |
Definition at line 39 of file cachedcontentresultsetstub.hxx.
Referenced by impl_getColumnCount().
|
private |
Definition at line 43 of file cachedcontentresultsetstub.hxx.
Referenced by impl_propagateFetchSizeAndDirection().
|
private |
Definition at line 45 of file cachedcontentresultsetstub.hxx.
Referenced by impl_propagateFetchSizeAndDirection().
|
private |
Definition at line 42 of file cachedcontentresultsetstub.hxx.
Referenced by impl_propagateFetchSizeAndDirection().
|
private |
Definition at line 38 of file cachedcontentresultsetstub.hxx.
Referenced by impl_getColumnCount().
|
private |
Definition at line 44 of file cachedcontentresultsetstub.hxx.
Referenced by impl_propagateFetchSizeAndDirection().