LibreOffice Module ucb (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
CachedContentResultSetStub Class Reference

#include <cachedcontentresultsetstub.hxx>

Inheritance diagram for CachedContentResultSetStub:
[legend]
Collaboration diagram for CachedContentResultSetStub:
[legend]

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::XPropertySetm_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
 

Detailed Description

Definition at line 30 of file cachedcontentresultsetstub.hxx.

Constructor & Destructor Documentation

◆ CachedContentResultSetStub()

CachedContentResultSetStub::CachedContentResultSetStub ( css::uno::Reference< css::sdbc::XResultSet > const &  xOrigin)

◆ ~CachedContentResultSetStub()

CachedContentResultSetStub::~CachedContentResultSetStub ( )
overridevirtual

Member Function Documentation

◆ acquire()

void SAL_CALL CachedContentResultSetStub::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 59 of file cachedcontentresultsetstub.cxx.

◆ fetch()

FetchResult SAL_CALL CachedContentResultSetStub::fetch ( sal_Int32  nRowStartPosition,
sal_Int32  nRowCount,
sal_Bool  bDirection 
)
overridevirtual

◆ fetchContentIdentifiers()

FetchResult SAL_CALL CachedContentResultSetStub::fetchContentIdentifiers ( sal_Int32  nRowStartPosition,
sal_Int32  nRowCount,
sal_Bool  bDirection 
)
overridevirtual

◆ fetchContentIdentifierStrings()

FetchResult SAL_CALL CachedContentResultSetStub::fetchContentIdentifierStrings ( sal_Int32  nRowStartPosition,
sal_Int32  nRowCount,
sal_Bool  bDirection 
)
overridevirtual

◆ fetchContents()

FetchResult SAL_CALL CachedContentResultSetStub::fetchContents ( sal_Int32  nRowStartPosition,
sal_Int32  nRowCount,
sal_Bool  bDirection 
)
overridevirtual

◆ getImplementationId()

virtual css::uno::Sequence< sal_Int8 > SAL_CALL CachedContentResultSetStub::getImplementationId ( )
overridevirtual

◆ getImplementationName()

OUString SAL_CALL CachedContentResultSetStub::getImplementationName ( )
overridevirtual

Definition at line 165 of file cachedcontentresultsetstub.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL CachedContentResultSetStub::getSupportedServiceNames ( )
overridevirtual

Definition at line 175 of file cachedcontentresultsetstub.cxx.

◆ getTypes()

Sequence< Type > SAL_CALL CachedContentResultSetStub::getTypes ( )
overridevirtual

Definition at line 141 of file cachedcontentresultsetstub.cxx.

References CPPU_TYPE_REF, and XPropertySet.

◆ impl_fetchHelper()

FetchResult CachedContentResultSetStub::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 
)
private

◆ impl_getColumnCount()

sal_Int32 CachedContentResultSetStub::impl_getColumnCount ( std::unique_lock< std::mutex > &  )
private

◆ impl_getCurrentContent()

void CachedContentResultSetStub::impl_getCurrentContent ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rAny,
const css::uno::Reference< css::ucb::XContentAccess > &  xContentAccess 
)
staticprivate
Exceptions
css::uno::RuntimeException

Definition at line 451 of file cachedcontentresultsetstub.cxx.

Referenced by fetchContents().

◆ impl_getCurrentContentIdentifier()

void CachedContentResultSetStub::impl_getCurrentContentIdentifier ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rAny,
const css::uno::Reference< css::ucb::XContentAccess > &  xContentAccess 
)
staticprivate
Exceptions
css::uno::RuntimeException

Definition at line 444 of file cachedcontentresultsetstub.cxx.

Referenced by fetchContentIdentifiers().

◆ impl_getCurrentContentIdentifierString()

void CachedContentResultSetStub::impl_getCurrentContentIdentifierString ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rAny,
const css::uno::Reference< css::ucb::XContentAccess > &  xContentAccess 
)
staticprivate
Exceptions
css::uno::RuntimeException

Definition at line 437 of file cachedcontentresultsetstub.cxx.

Referenced by fetchContentIdentifierStrings().

◆ impl_getCurrentRowContent()

void CachedContentResultSetStub::impl_getCurrentRowContent ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rRowContent,
const css::uno::Reference< css::sdbc::XRow > &  xRow 
)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 341 of file cachedcontentresultsetstub.cxx.

References impl_getColumnCount(), and nCount.

Referenced by fetch().

◆ impl_propagateFetchSizeAndDirection()

void CachedContentResultSetStub::impl_propagateFetchSizeAndDirection ( std::unique_lock< std::mutex > &  rGuard,
sal_Int32  nFetchSize,
bool  bFetchDirection 
)
private

◆ impl_propertyChange()

void CachedContentResultSetStub::impl_propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overridevirtual

◆ impl_vetoableChange()

void CachedContentResultSetStub::impl_vetoableChange ( const css::beans::PropertyChangeEvent &  aEvent)
overridevirtual

◆ queryInterface()

Any SAL_CALL CachedContentResultSetStub::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ release()

void SAL_CALL CachedContentResultSetStub::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 65 of file cachedcontentresultsetstub.cxx.

◆ supportsService()

sal_Bool SAL_CALL CachedContentResultSetStub::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 170 of file cachedcontentresultsetstub.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aPropertyNameForFetchDirection

const OUString CachedContentResultSetStub::m_aPropertyNameForFetchDirection
private

◆ m_aPropertyNameForFetchSize

const OUString CachedContentResultSetStub::m_aPropertyNameForFetchSize
private

◆ m_bColumnCountCached

bool CachedContentResultSetStub::m_bColumnCountCached
private

Definition at line 39 of file cachedcontentresultsetstub.hxx.

Referenced by impl_getColumnCount().

◆ m_bFirstFetchSizePropagationDone

bool CachedContentResultSetStub::m_bFirstFetchSizePropagationDone
private

Definition at line 43 of file cachedcontentresultsetstub.hxx.

Referenced by impl_propagateFetchSizeAndDirection().

◆ m_bLastFetchDirection

bool CachedContentResultSetStub::m_bLastFetchDirection
private

Definition at line 45 of file cachedcontentresultsetstub.hxx.

Referenced by impl_propagateFetchSizeAndDirection().

◆ m_bNeedToPropagateFetchSize

bool CachedContentResultSetStub::m_bNeedToPropagateFetchSize
private

Definition at line 42 of file cachedcontentresultsetstub.hxx.

Referenced by impl_propagateFetchSizeAndDirection().

◆ m_nColumnCount

sal_Int32 CachedContentResultSetStub::m_nColumnCount
private

Definition at line 38 of file cachedcontentresultsetstub.hxx.

Referenced by impl_getColumnCount().

◆ m_nLastFetchSize

sal_Int32 CachedContentResultSetStub::m_nLastFetchSize
private

Definition at line 44 of file cachedcontentresultsetstub.hxx.

Referenced by impl_propagateFetchSizeAndDirection().


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