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 () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
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 void SAL_CALL dispose () override
 
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
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
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 OUString SAL_CALL queryContentIdentifierString () override
 
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::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Private Member Functions

void impl_getCurrentRowContent (css::uno::Any &rRowContent, const css::uno::Reference< css::sdbc::XRow > &xRow)
 
sal_Int32 impl_getColumnCount ()
 
void impl_propagateFetchSizeAndDirection (sal_Int32 nFetchSize, bool bFetchDirection)
 
css::ucb::FetchResult impl_fetchHelper (sal_Int32 nRowStartPosition, sal_Int32 nRowCount, bool bDirection, std::function< void(css::uno::Any &rRowContent)> impl_loadRow)
 

Static Private Member Functions

static void impl_getCurrentContentIdentifierString (css::uno::Any &rAny, const css::uno::Reference< css::ucb::XContentAccess > &xContentAccess)
 
static void impl_getCurrentContentIdentifier (css::uno::Any &rAny, const css::uno::Reference< css::ucb::XContentAccess > &xContentAccess)
 
static void impl_getCurrentContent (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 cppu::OMultiTypeInterfaceContainerHelperVar< OUString > PropertyChangeListenerContainer_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 ()
 
void impl_init_xContentAccessOrigin ()
 
void impl_init_xPropertySetOrigin ()
 
virtual void impl_initPropertySetInfo ()
 
void impl_EnsureNotDisposed ()
 
void impl_notifyPropertyChangeListeners (const css::beans::PropertyChangeEvent &rEvt)
 
void impl_notifyVetoableChangeListeners (const css::beans::PropertyChangeEvent &rEvt)
 
bool impl_isForwardOnly ()
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from ContentResultSetWrapper
osl::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 37 of file cachedcontentresultsetstub.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

void SAL_CALL CachedContentResultSetStub::acquire ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 59 of file cachedcontentresultsetstub.cxx.

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

Definition at line 301 of file cachedcontentresultsetstub.cxx.

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

Definition at line 477 of file cachedcontentresultsetstub.cxx.

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

Definition at line 466 of file cachedcontentresultsetstub.cxx.

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

Definition at line 488 of file cachedcontentresultsetstub.cxx.

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

Definition at line 163 of file cachedcontentresultsetstub.cxx.

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

Definition at line 173 of file cachedcontentresultsetstub.cxx.

References CACHED_CRS_STUB_SERVICE_NAME.

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

Definition at line 140 of file cachedcontentresultsetstub.cxx.

References CPPU_TYPE_REF, and XPropertySet.

FetchResult CachedContentResultSetStub::impl_fetchHelper ( sal_Int32  nRowStartPosition,
sal_Int32  nRowCount,
bool  bDirection,
std::function< void(css::uno::Any &rRowContent)>  impl_loadRow 
)
private
sal_Int32 CachedContentResultSetStub::impl_getColumnCount ( )
private

Definition at line 311 of file cachedcontentresultsetstub.cxx.

References m_aMutex, and nCount.

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

Definition at line 458 of file cachedcontentresultsetstub.cxx.

void CachedContentResultSetStub::impl_getCurrentContentIdentifier ( 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.

void CachedContentResultSetStub::impl_getCurrentContentIdentifierString ( 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.

void CachedContentResultSetStub::impl_getCurrentRowContent ( 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 nCount.

void CachedContentResultSetStub::impl_propagateFetchSizeAndDirection ( sal_Int32  nFetchSize,
bool  bFetchDirection 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 356 of file cachedcontentresultsetstub.cxx.

References Any, m_aMutex, and setPropertyValue().

Referenced by impl_fetchHelper().

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

Reimplemented from ContentResultSetWrapper.

Definition at line 96 of file cachedcontentresultsetstub.cxx.

References XPropertySet.

void CachedContentResultSetStub::impl_vetoableChange ( const css::beans::PropertyChangeEvent &  aEvent)
overridevirtual
Exceptions
css::beans::PropertyVetoException
css::uno::RuntimeException

Reimplemented from ContentResultSetWrapper.

Definition at line 116 of file cachedcontentresultsetstub.cxx.

References XPropertySet.

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

Reimplemented from cppu::OWeakObject.

Definition at line 65 of file cachedcontentresultsetstub.cxx.

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

Definition at line 168 of file cachedcontentresultsetstub.cxx.

References cppu::supportsService().

Member Data Documentation

const OUString CachedContentResultSetStub::m_aPropertyNameForFetchDirection
private

Definition at line 54 of file cachedcontentresultsetstub.hxx.

const OUString CachedContentResultSetStub::m_aPropertyNameForFetchSize
private

Definition at line 53 of file cachedcontentresultsetstub.hxx.

bool CachedContentResultSetStub::m_bColumnCountCached
private

Definition at line 46 of file cachedcontentresultsetstub.hxx.

bool CachedContentResultSetStub::m_bFirstFetchSizePropagationDone
private

Definition at line 50 of file cachedcontentresultsetstub.hxx.

bool CachedContentResultSetStub::m_bLastFetchDirection
private

Definition at line 52 of file cachedcontentresultsetstub.hxx.

bool CachedContentResultSetStub::m_bNeedToPropagateFetchSize
private

Definition at line 49 of file cachedcontentresultsetstub.hxx.

sal_Int32 CachedContentResultSetStub::m_nColumnCount
private

Definition at line 45 of file cachedcontentresultsetstub.hxx.

sal_Int32 CachedContentResultSetStub::m_nLastFetchSize
private

Definition at line 51 of file cachedcontentresultsetstub.hxx.


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