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

#include <cachedcontentresultset.hxx>

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

Classes

class  CCRS_Cache
 

Public Member Functions

 CachedContentResultSet (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::sdbc::XResultSet > &xOrigin, const css::uno::Reference< css::ucb::XContentIdentifierMapping > &xContentIdentifierMapping)
 
virtual ~CachedContentResultSet () 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 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 void setPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void impl_disposing (const css::lang::EventObject &Source) override
 
virtual void impl_propertyChange (const css::beans::PropertyChangeEvent &evt) override
 
virtual void impl_vetoableChange (const css::beans::PropertyChangeEvent &aEvent) override
 
virtual OUString queryContentIdentifierStringImpl (std::unique_lock< std::mutex > &rGuard) 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 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

virtual void impl_initPropertySetInfo (std::unique_lock< std::mutex > &rGuard) override
 
bool applyPositionToOrigin (std::unique_lock< std::mutex > &rGuard, sal_Int32 nRow)
 
void impl_fetchData (std::unique_lock< std::mutex > &rGuard, sal_Int32 nRow, sal_Int32 nCount, sal_Int32 nFetchDirection)
 
bool impl_isKnownValidPosition (std::unique_lock< std::mutex > &rGuard, sal_Int32 nRow) const
 
bool impl_isKnownInvalidPosition (std::unique_lock< std::mutex > &rGuard, sal_Int32 nRow) const
 
void impl_changeRowCount (std::unique_lock< std::mutex > &rGuard, sal_Int32 nOld, sal_Int32 nNew)
 
void impl_changeIsRowCountFinal (std::unique_lock< std::mutex > &rGuard, bool bOld, bool bNew)
 
const css::uno::Reference< css::script::XTypeConverter > & getTypeConverter (std::unique_lock< std::mutex > &rGuard)
 
template<typename T >
rowOriginGet (T(SAL_CALL css::sdbc::XRow::*f)(sal_Int32), sal_Int32 columnIndex)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::ucb::XFetchProvider > m_xFetchProvider
 
css::uno::Reference< css::ucb::XFetchProviderForContentAccess > m_xFetchProviderForContentAccess
 
rtl::Reference< CCRS_PropertySetInfom_xMyPropertySetInfo
 
css::uno::Reference< css::ucb::XContentIdentifierMapping > m_xContentIdentifierMapping
 
sal_Int32 m_nRow
 
bool m_bAfterLast
 
sal_Int32 m_nLastAppliedPos
 
bool m_bAfterLastApplied
 
sal_Int32 m_nKnownCount
 
bool m_bFinalCount
 
sal_Int32 m_nFetchSize
 
sal_Int32 m_nFetchDirection
 
bool m_bLastReadWasFromCache
 
bool m_bLastCachedReadWasNull
 
CCRS_Cache m_aCache
 
CCRS_Cache m_aCacheContentIdentifierString
 
CCRS_Cache m_aCacheContentIdentifier
 
CCRS_Cache m_aCacheContent
 
bool m_bTriedToGetTypeConverter
 
css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter
 

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 41 of file cachedcontentresultset.hxx.

Constructor & Destructor Documentation

◆ CachedContentResultSet()

CachedContentResultSet::CachedContentResultSet ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::sdbc::XResultSet > &  xOrigin,
const css::uno::Reference< css::ucb::XContentIdentifierMapping > &  xContentIdentifierMapping 
)

◆ ~CachedContentResultSet()

CachedContentResultSet::~CachedContentResultSet ( )
overridevirtual

Member Function Documentation

◆ absolute()

sal_Bool SAL_CALL CachedContentResultSet::absolute ( sal_Int32  row)
overridevirtual

◆ acquire()

void SAL_CALL CachedContentResultSet::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 862 of file cachedcontentresultset.cxx.

◆ afterLast()

void SAL_CALL CachedContentResultSet::afterLast ( )
overridevirtual

◆ applyPositionToOrigin()

bool CachedContentResultSet::applyPositionToOrigin ( std::unique_lock< std::mutex > &  rGuard,
sal_Int32  nRow 
)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException
Returns
<TRUE> if the cursor is on a valid row; <FALSE> if it is off the result set.

Definition at line 660 of file cachedcontentresultset.cxx.

References ContentResultSetWrapper::impl_EnsureNotDisposed(), ContentResultSetWrapper::impl_isForwardOnly(), m_bAfterLast, m_bAfterLastApplied, ContentResultSetWrapper::m_nForwardOnly, m_nLastAppliedPos, and ContentResultSetWrapper::m_xResultSetOrigin.

Referenced by first(), getObject(), isFirst(), isLast(), next(), previous(), relative(), and rowOriginGet().

◆ beforeFirst()

void SAL_CALL CachedContentResultSet::beforeFirst ( )
overridevirtual

◆ first()

sal_Bool SAL_CALL CachedContentResultSet::first ( )
overridevirtual

◆ getArray()

Reference< XArray > SAL_CALL CachedContentResultSet::getArray ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1959 of file cachedcontentresultset.cxx.

◆ getBinaryStream()

Reference< css::io::XInputStream > SAL_CALL CachedContentResultSet::getBinaryStream ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1878 of file cachedcontentresultset.cxx.

◆ getBlob()

Reference< XBlob > SAL_CALL CachedContentResultSet::getBlob ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1943 of file cachedcontentresultset.cxx.

◆ getBoolean()

sal_Bool SAL_CALL CachedContentResultSet::getBoolean ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1796 of file cachedcontentresultset.cxx.

◆ getByte()

sal_Int8 SAL_CALL CachedContentResultSet::getByte ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1803 of file cachedcontentresultset.cxx.

◆ getBytes()

Sequence< sal_Int8 > SAL_CALL CachedContentResultSet::getBytes ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1845 of file cachedcontentresultset.cxx.

◆ getCharacterStream()

Reference< css::io::XInputStream > SAL_CALL CachedContentResultSet::getCharacterStream ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1887 of file cachedcontentresultset.cxx.

◆ getClob()

Reference< XClob > SAL_CALL CachedContentResultSet::getClob ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1951 of file cachedcontentresultset.cxx.

◆ getDate()

Date SAL_CALL CachedContentResultSet::getDate ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1853 of file cachedcontentresultset.cxx.

◆ getDouble()

double SAL_CALL CachedContentResultSet::getDouble ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1838 of file cachedcontentresultset.cxx.

◆ getFloat()

float SAL_CALL CachedContentResultSet::getFloat ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1831 of file cachedcontentresultset.cxx.

◆ getImplementationId()

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

◆ getImplementationName()

OUString SAL_CALL CachedContentResultSet::getImplementationName ( )
overridevirtual

Definition at line 913 of file cachedcontentresultset.cxx.

◆ getInt()

sal_Int32 SAL_CALL CachedContentResultSet::getInt ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1817 of file cachedcontentresultset.cxx.

◆ getLong()

sal_Int64 SAL_CALL CachedContentResultSet::getLong ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1824 of file cachedcontentresultset.cxx.

◆ getObject()

Any SAL_CALL CachedContentResultSet::getObject ( sal_Int32  columnIndex,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

◆ getPropertyValue()

Any SAL_CALL CachedContentResultSet::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getRef()

Reference< XRef > SAL_CALL CachedContentResultSet::getRef ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1935 of file cachedcontentresultset.cxx.

◆ getRow()

sal_Int32 SAL_CALL CachedContentResultSet::getRow ( )
overridevirtual

◆ getShort()

sal_Int16 SAL_CALL CachedContentResultSet::getShort ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1810 of file cachedcontentresultset.cxx.

◆ getStatement()

Reference< XInterface > SAL_CALL CachedContentResultSet::getStatement ( )
overridevirtual

◆ getString()

OUString SAL_CALL CachedContentResultSet::getString ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1789 of file cachedcontentresultset.cxx.

◆ getSupportedServiceNames()

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

Definition at line 923 of file cachedcontentresultset.cxx.

◆ getTime()

Time SAL_CALL CachedContentResultSet::getTime ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1861 of file cachedcontentresultset.cxx.

References Time.

◆ getTimestamp()

DateTime SAL_CALL CachedContentResultSet::getTimestamp ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from ContentResultSetWrapper.

Definition at line 1869 of file cachedcontentresultset.cxx.

◆ getTypeConverter()

const Reference< XTypeConverter > & CachedContentResultSet::getTypeConverter ( std::unique_lock< std::mutex > &  rGuard)
private

Definition at line 1970 of file cachedcontentresultset.cxx.

References m_bTriedToGetTypeConverter, m_xContext, and m_xTypeConverter.

Referenced by rowOriginGet().

◆ getTypes()

virtual css::uno::Sequence< css::uno::Type > SAL_CALL CachedContentResultSet::getTypes ( )
overridevirtual

◆ impl_changeIsRowCountFinal()

void CachedContentResultSet::impl_changeIsRowCountFinal ( std::unique_lock< std::mutex > &  rGuard,
bool  bOld,
bool  bNew 
)
private

◆ impl_changeRowCount()

void CachedContentResultSet::impl_changeRowCount ( std::unique_lock< std::mutex > &  rGuard,
sal_Int32  nOld,
sal_Int32  nNew 
)
private

◆ impl_disposing()

void CachedContentResultSet::impl_disposing ( const css::lang::EventObject &  Source)
overridevirtual

◆ impl_fetchData()

void CachedContentResultSet::impl_fetchData ( std::unique_lock< std::mutex > &  rGuard,
sal_Int32  nRow,
sal_Int32  nCount,
sal_Int32  nFetchDirection 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 783 of file cachedcontentresultset.cxx.

References FETCH_XXX, m_aCache, and m_xFetchProvider.

Referenced by getObject(), and rowOriginGet().

◆ impl_initPropertySetInfo()

void CachedContentResultSet::impl_initPropertySetInfo ( std::unique_lock< std::mutex > &  rGuard)
overrideprivatevirtual

◆ impl_isKnownInvalidPosition()

bool CachedContentResultSet::impl_isKnownInvalidPosition ( std::unique_lock< std::mutex > &  rGuard,
sal_Int32  nRow 
) const
private

Definition at line 837 of file cachedcontentresultset.cxx.

References m_bFinalCount, and m_nKnownCount.

Referenced by first(), and relative().

◆ impl_isKnownValidPosition()

bool CachedContentResultSet::impl_isKnownValidPosition ( std::unique_lock< std::mutex > &  rGuard,
sal_Int32  nRow 
) const
private

Definition at line 830 of file cachedcontentresultset.cxx.

References m_nKnownCount.

Referenced by first(), next(), previous(), and relative().

◆ impl_propertyChange()

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

◆ impl_vetoableChange()

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

Reimplemented from ContentResultSetWrapper.

Definition at line 1149 of file cachedcontentresultset.cxx.

References ContentResultSetWrapper::impl_EnsureNotDisposed(), ContentResultSetWrapper::impl_notifyVetoableChangeListeners(), ContentResultSetWrapper::m_aMutex, and XPropertySet.

◆ isAfterLast()

sal_Bool SAL_CALL CachedContentResultSet::isAfterLast ( )
overridevirtual

◆ isBeforeFirst()

sal_Bool SAL_CALL CachedContentResultSet::isBeforeFirst ( )
overridevirtual

◆ isFirst()

sal_Bool SAL_CALL CachedContentResultSet::isFirst ( )
overridevirtual

◆ isLast()

sal_Bool SAL_CALL CachedContentResultSet::isLast ( )
overridevirtual

◆ last()

sal_Bool SAL_CALL CachedContentResultSet::last ( )
overridevirtual

◆ next()

sal_Bool SAL_CALL CachedContentResultSet::next ( )
overridevirtual

◆ previous()

sal_Bool SAL_CALL CachedContentResultSet::previous ( )
overridevirtual

◆ queryContent()

Reference< XContent > SAL_CALL CachedContentResultSet::queryContent ( )
overridevirtual

◆ queryContentIdentifier()

Reference< XContentIdentifier > SAL_CALL CachedContentResultSet::queryContentIdentifier ( )
overridevirtual

◆ queryContentIdentifierStringImpl()

OUString CachedContentResultSet::queryContentIdentifierStringImpl ( std::unique_lock< std::mutex > &  rGuard)
overridevirtual

◆ queryInterface()

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

◆ refreshRow()

void SAL_CALL CachedContentResultSet::refreshRow ( )
overridevirtual

◆ relative()

sal_Bool SAL_CALL CachedContentResultSet::relative ( sal_Int32  rows)
overridevirtual

◆ release()

void SAL_CALL CachedContentResultSet::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 868 of file cachedcontentresultset.cxx.

◆ rowDeleted()

sal_Bool SAL_CALL CachedContentResultSet::rowDeleted ( )
overridevirtual

◆ rowInserted()

sal_Bool SAL_CALL CachedContentResultSet::rowInserted ( )
overridevirtual

◆ rowOriginGet()

template<typename T >
T CachedContentResultSet::rowOriginGet ( T(SAL_CALL css::sdbc::XRow::*)(sal_Int32)  f,
sal_Int32  columnIndex 
)
private

◆ rowUpdated()

sal_Bool SAL_CALL CachedContentResultSet::rowUpdated ( )
overridevirtual

◆ setPropertyValueImpl()

void CachedContentResultSet::setPropertyValueImpl ( std::unique_lock< std::mutex > &  rGuard,
const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ supportsService()

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

Definition at line 918 of file cachedcontentresultset.cxx.

References ServiceName, and cppu::supportsService().

◆ wasNull()

sal_Bool SAL_CALL CachedContentResultSet::wasNull ( )
overridevirtual

Member Data Documentation

◆ m_aCache

CCRS_Cache CachedContentResultSet::m_aCache
private

Definition at line 144 of file cachedcontentresultset.hxx.

Referenced by getObject(), impl_fetchData(), and rowOriginGet().

◆ m_aCacheContent

CCRS_Cache CachedContentResultSet::m_aCacheContent
private

Definition at line 147 of file cachedcontentresultset.hxx.

◆ m_aCacheContentIdentifier

CCRS_Cache CachedContentResultSet::m_aCacheContentIdentifier
private

Definition at line 146 of file cachedcontentresultset.hxx.

◆ m_aCacheContentIdentifierString

CCRS_Cache CachedContentResultSet::m_aCacheContentIdentifierString
private

Definition at line 145 of file cachedcontentresultset.hxx.

◆ m_bAfterLast

bool CachedContentResultSet::m_bAfterLast
private

◆ m_bAfterLastApplied

bool CachedContentResultSet::m_bAfterLastApplied
private

◆ m_bFinalCount

bool CachedContentResultSet::m_bFinalCount
private

◆ m_bLastCachedReadWasNull

bool CachedContentResultSet::m_bLastCachedReadWasNull
private

Definition at line 141 of file cachedcontentresultset.hxx.

Referenced by getObject(), rowOriginGet(), and wasNull().

◆ m_bLastReadWasFromCache

bool CachedContentResultSet::m_bLastReadWasFromCache
private

Definition at line 140 of file cachedcontentresultset.hxx.

Referenced by getObject(), rowOriginGet(), and wasNull().

◆ m_bTriedToGetTypeConverter

bool CachedContentResultSet::m_bTriedToGetTypeConverter
private

Definition at line 349 of file cachedcontentresultset.hxx.

Referenced by getTypeConverter().

◆ m_nFetchDirection

sal_Int32 CachedContentResultSet::m_nFetchDirection
private

◆ m_nFetchSize

sal_Int32 CachedContentResultSet::m_nFetchSize
private

◆ m_nKnownCount

sal_Int32 CachedContentResultSet::m_nKnownCount
private

◆ m_nLastAppliedPos

sal_Int32 CachedContentResultSet::m_nLastAppliedPos
private

Definition at line 131 of file cachedcontentresultset.hxx.

Referenced by absolute(), applyPositionToOrigin(), isBeforeFirst(), and last().

◆ m_nRow

sal_Int32 CachedContentResultSet::m_nRow
private

◆ m_xContentIdentifierMapping

css::uno::Reference< css::ucb::XContentIdentifierMapping > CachedContentResultSet::m_xContentIdentifierMapping
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > CachedContentResultSet::m_xContext
private

Definition at line 111 of file cachedcontentresultset.hxx.

Referenced by getTypeConverter().

◆ m_xFetchProvider

css::uno::Reference< css::ucb::XFetchProvider > CachedContentResultSet::m_xFetchProvider
private

◆ m_xFetchProviderForContentAccess

css::uno::Reference< css::ucb::XFetchProviderForContentAccess > CachedContentResultSet::m_xFetchProviderForContentAccess
private

Definition at line 118 of file cachedcontentresultset.hxx.

Referenced by CachedContentResultSet(), and impl_disposing().

◆ m_xMyPropertySetInfo

rtl::Reference< CCRS_PropertySetInfo > CachedContentResultSet::m_xMyPropertySetInfo
private

◆ m_xTypeConverter

css::uno::Reference< css::script::XTypeConverter > CachedContentResultSet::m_xTypeConverter
private

Definition at line 350 of file cachedcontentresultset.hxx.

Referenced by getTypeConverter().


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