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

◆ COMSUNSTARUCBCCRS_DEFAULT_FETCH_DIRECTION

#define COMSUNSTARUCBCCRS_DEFAULT_FETCH_DIRECTION   FetchDirection::FORWARD

Definition at line 49 of file cachedcontentresultset.cxx.

◆ COMSUNSTARUCBCCRS_DEFAULT_FETCH_SIZE

#define COMSUNSTARUCBCCRS_DEFAULT_FETCH_SIZE   256

Definition at line 48 of file cachedcontentresultset.cxx.

◆ FETCH_XXX

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

Definition at line 768 of file cachedcontentresultset.cxx.

◆ XCONTENTACCESS_queryXXX

#define XCONTENTACCESS_queryXXX (   queryXXX,
  XXX,
  TYPE 
)

Definition at line 1174 of file cachedcontentresultset.cxx.

Function Documentation

◆ g_sPropertyNameForFetchDirection()

constexpr OUStringLiteral g_sPropertyNameForFetchDirection ( u"FetchDirection"  )
constexpr

◆ g_sPropertyNameForFetchSize()

constexpr OUStringLiteral g_sPropertyNameForFetchSize ( u"FetchSize"  )
constexpr

◆ ucb_CachedContentResultSetFactory_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * ucb_CachedContentResultSetFactory_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 2017 of file cachedcontentresultset.cxx.

◆ XTYPEPROVIDER_IMPL_11()

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

◆ XTYPEPROVIDER_IMPL_2()

XTYPEPROVIDER_IMPL_2 ( CCRS_PropertySetInfo  ,
XTypeProvider  ,
XPropertySetInfo   
)

Variable Documentation

◆ g_sPropertyNameForCount

const char16_t g_sPropertyNameForCount[] = u"RowCount"

◆ g_sPropertyNameForFinalCount

const char16_t g_sPropertyNameForFinalCount[] = u"IsRowCountFinal"