LibreOffice Module ucb (master)  1
Classes | Macros | Functions | Variables
cachedcontentresultset.cxx File Reference
#include "cachedcontentresultset.hxx"
#include <com/sun/star/sdbc/FetchDirection.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/ucb/FetchError.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/script/CannotConvertException.hpp>
#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <rtl/ustring.hxx>
#include <o3tl/any.hxx>
#include <osl/diagnose.h>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <ucbhelper/macros.hxx>
#include <optional>
#include <string_view>
Include dependency graph for cachedcontentresultset.cxx:

Go to the source code of this file.

Classes

class  CCRS_PropertySetInfo
 

Macros

#define COMSUNSTARUCBCCRS_DEFAULT_FETCH_SIZE   256
 
#define COMSUNSTARUCBCCRS_DEFAULT_FETCH_DIRECTION   FetchDirection::FORWARD
 
#define FETCH_XXX(aCache, fetchInterface, fetchMethod)
 
#define XCONTENTACCESS_queryXXX(queryXXX, XXX, TYPE)
 

Functions

constexpr OUStringLiteral g_sPropertyNameForFetchSize (u"FetchSize")
 
constexpr OUStringLiteral g_sPropertyNameForFetchDirection (u"FetchDirection")
 
 XTYPEPROVIDER_IMPL_2 (CCRS_PropertySetInfo, XTypeProvider, XPropertySetInfo)
 
 XTYPEPROVIDER_IMPL_11 (CachedContentResultSet, XTypeProvider, XServiceInfo, XComponent, XCloseable, XResultSetMetaDataSupplier, XPropertySet, XPropertyChangeListener, XVetoableChangeListener, XContentAccess, XResultSet, XRow)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * ucb_CachedContentResultSetFactory_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 

Variables

const char16_t g_sPropertyNameForCount [] = u"RowCount"
 
const char16_t g_sPropertyNameForFinalCount [] = u"IsRowCountFinal"
 

Macro Definition Documentation

#define COMSUNSTARUCBCCRS_DEFAULT_FETCH_DIRECTION   FetchDirection::FORWARD

Definition at line 49 of file cachedcontentresultset.cxx.

Referenced by CachedContentResultSet::setPropertyValue().

#define COMSUNSTARUCBCCRS_DEFAULT_FETCH_SIZE   256

Definition at line 48 of file cachedcontentresultset.cxx.

Referenced by CachedContentResultSet::setPropertyValue().

#define FETCH_XXX (   aCache,
  fetchInterface,
  fetchMethod 
)
Value:
bool bDirection = !!( \
nFetchDirection != FetchDirection::REVERSE ); \
FetchResult aResult = \
fetchInterface->fetchMethod( nRow, nFetchSize, bDirection ); \
osl::ClearableGuard< osl::Mutex > aGuard2( m_aMutex ); \
aCache.loadData( aResult ); \
sal_Int32 nMax = aCache.getMaxRow(); \
sal_Int32 nCurCount = m_nKnownCount; \
bool bIsFinalCount = aCache.hasKnownLast(); \
bool bCurIsFinalCount = m_bFinalCount; \
aGuard2.clear(); \
if( nMax > nCurCount ) \
impl_changeRowCount( nCurCount, nMax ); \
if( bIsFinalCount && !bCurIsFinalCount ) \
impl_changeIsRowCountFinal( bCurIsFinalCount, bIsFinalCount );
std::mutex m_aMutex

Definition at line 776 of file cachedcontentresultset.cxx.

Referenced by CachedContentResultSet::impl_fetchData().

#define XCONTENTACCESS_queryXXX (   queryXXX,
  XXX,
  TYPE 
)

Function Documentation

constexpr OUStringLiteral g_sPropertyNameForFetchDirection ( u"FetchDirection"  )
constexpr OUStringLiteral g_sPropertyNameForFetchSize ( u"FetchSize"  )
SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_CachedContentResultSetFactory_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 2079 of file cachedcontentresultset.cxx.

XTYPEPROVIDER_IMPL_11 ( CachedContentResultSet  ,
XTypeProvider  ,
XServiceInfo  ,
XComponent  ,
XCloseable  ,
XResultSetMetaDataSupplier  ,
XPropertySet  ,
XPropertyChangeListener  ,
XVetoableChangeListener  ,
XContentAccess  ,
XResultSet  ,
XRow   
)
XTYPEPROVIDER_IMPL_2 ( CCRS_PropertySetInfo  ,
XTypeProvider  ,
XPropertySetInfo   
)

Variable Documentation

const char16_t g_sPropertyNameForCount[] = u"RowCount"
const char16_t g_sPropertyNameForFinalCount[] = u"IsRowCountFinal"