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/getcomponentcontext.hxx>
#include <ucbhelper/macros.hxx>
#include <memory>
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

 XTYPEPROVIDER_IMPL_2 (CCRS_PropertySetInfo, XTypeProvider, XPropertySetInfo)
 
 XTYPEPROVIDER_IMPL_11 (CachedContentResultSet, XTypeProvider, XServiceInfo, XComponent, XCloseable, XResultSetMetaDataSupplier, XPropertySet, XPropertyChangeListener, XVetoableChangeListener, XContentAccess, XResultSet, XRow)
 
 XSERVICEINFO_COMMOM_IMPL (CachedContentResultSetFactory,"com.sun.star.comp.ucb.CachedContentResultSetFactory") static css
 
 ONE_INSTANCE_SERVICE_FACTORY_IMPL (CachedContentResultSetFactory)
 

Variables

static const char g_sPropertyNameForCount [] = "RowCount"
 
static const char g_sPropertyNameForFinalCount [] = "IsRowCountFinal"
 
static const char g_sPropertyNameForFetchSize [] = "FetchSize"
 
static const char g_sPropertyNameForFetchDirection [] = "FetchDirection"
 

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 );

Definition at line 782 of file cachedcontentresultset.cxx.

Referenced by CachedContentResultSet::impl_fetchData().

#define XCONTENTACCESS_queryXXX (   queryXXX,
  XXX,
  TYPE 
)

Function Documentation

ONE_INSTANCE_SERVICE_FACTORY_IMPL ( CachedContentResultSetFactory  )
XSERVICEINFO_COMMOM_IMPL ( CachedContentResultSetFactory  ,
"com.sun.star.comp.ucb.CachedContentResultSetFactory"   
)
Exceptions
css::uno::Exception

Definition at line 2069 of file cachedcontentresultset.cxx.

References ucbhelper::getComponentContext().

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 char g_sPropertyNameForCount[] = "RowCount"
static
const char g_sPropertyNameForFetchDirection[] = "FetchDirection"
static
const char g_sPropertyNameForFetchSize[] = "FetchSize"
static
const char g_sPropertyNameForFinalCount[] = "IsRowCountFinal"
static