23#include <com/sun/star/ucb/ContentResultSetCapability.hpp>
24#include <com/sun/star/ucb/SortedDynamicResultSetFactory.hpp>
25#include <osl/diagnose.h>
40 OSL_ENSURE(
m_xContext.is(),
"need Multiservicefactory to create stub" );
82 OWeakObject::acquire();
88 OWeakObject::release();
101 static_cast< XTypeProvider*
>(
this )
102 ,
static_cast< XServiceInfo*
>(
this )
104 return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
115 , XDynamicResultSetListener
116 , XSourceInitialization
124 return "com.sun.star.comp.ucb.CachedDynamicResultSetStub";
134 return {
"com.sun.star.ucb.CachedDynamicResultSetStub" };
155 return "com.sun.star.comp.ucb.CachedDynamicResultSetStubFactory";
163 return {
"com.sun.star.ucb.CachedDynamicResultSetStubFactory" };
170extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
172 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any>
const&)
199 OSL_ENSURE(
Source.is(),
"a Source is needed" );
200 OSL_ENSURE( TargetCache.is(),
"a TargetCache is needed" );
203 if( SortingInfo.hasElements() &&
204 !( xSource->getCapabilities() & ContentResultSetCapability::SORTED )
210 xSortFactory = SortedDynamicResultSetFactory::create(
m_xContext );
216 if( xSortFactory.is() )
219 xSortFactory->createSortedDynamicResultSet(
220 Source, SortingInfo, CompareFactory ) );
230 OSL_ENSURE(
xTarget.is(),
"Target must have interface XSourceInitialization" );
XTYPEPROVIDER_IMPL_5(CachedDynamicResultSetStub, XTypeProvider, XServiceInfo, XDynamicResultSet, XDynamicResultSetListener, XSourceInitialization)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * ucb_CachedDynamicResultSetStubFactory_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void SAL_CALL connectToCache(const css::uno::Reference< css::ucb::XDynamicResultSet > &Source, const css::uno::Reference< css::ucb::XDynamicResultSet > &TargetCache, const css::uno::Sequence< css::ucb::NumberedSortingInfo > &SortingInfo, const css::uno::Reference< css::ucb::XAnyCompareFactory > &CompareFactory) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
CachedDynamicResultSetStubFactory(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual ~CachedDynamicResultSetStubFactory() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL createCachedDynamicResultSetStub(const css::uno::Reference< css::ucb::XDynamicResultSet > &Source) override
virtual void impl_InitResultSetTwo(const css::uno::Reference< css::sdbc::XResultSet > &xResultSet) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL release() noexcept override
virtual ~CachedDynamicResultSetStub() override
virtual void impl_InitResultSetOne(const css::uno::Reference< css::sdbc::XResultSet > &xResultSet) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual void SAL_CALL acquire() noexcept override
virtual OUString SAL_CALL getImplementationName() override
CachedDynamicResultSetStub(css::uno::Reference< css::ucb::XDynamicResultSet > const &xOrigin, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void impl_InitResultSetTwo(const css::uno::Reference< css::sdbc::XResultSet > &xResultSet)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
css::uno::Reference< css::sdbc::XResultSet > m_xMyResultOne
css::uno::Reference< css::sdbc::XResultSet > m_xSourceResultTwo
css::uno::Reference< css::sdbc::XResultSet > m_xSourceResultOne
css::uno::Reference< css::sdbc::XResultSet > m_xMyResultTwo
virtual void impl_InitResultSetOne(const css::uno::Reference< css::sdbc::XResultSet > &xResultSet)
Reference< XInterface > xTarget
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)