LibreOffice Module ucb (master) 1
cacheddynamicresultset.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/lang/XTypeProvider.hpp>
25#include <com/sun/star/ucb/XContentIdentifierMapping.hpp>
26#include <com/sun/star/ucb/XCachedDynamicResultSetFactory.hpp>
28
29
32 , public css::lang::XTypeProvider
33 , public css::lang::XServiceInfo
34{
35 css::uno::Reference< css::ucb::XContentIdentifierMapping >
37
38protected:
39 virtual void
40 impl_InitResultSetOne( const css::uno::Reference< css::sdbc::XResultSet >& xResultSet ) override;
41 virtual void
42 impl_InitResultSetTwo( const css::uno::Reference< css::sdbc::XResultSet >& xResultSet ) override;
43
44public:
45 CachedDynamicResultSet( css::uno::Reference< css::ucb::XDynamicResultSet > const & xOrigin
46 , const css::uno::Reference< css::ucb::XContentIdentifierMapping > & xContentMapping
47 , const css::uno::Reference< css::uno::XComponentContext > & xContext );
48
49 virtual ~CachedDynamicResultSet() override;
50
51
52 // XInterface
53 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
54 virtual void SAL_CALL acquire()
55 noexcept override;
56 virtual void SAL_CALL release()
57 noexcept override;
58
59 // XTypeProvider
60
61 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
62 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
63
64 // XServiceInfo
65 virtual OUString SAL_CALL getImplementationName() override;
66 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
67 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
68
69 // own methods ( inherited )
70
71 virtual void
72 impl_disposing( const css::lang::EventObject& Source ) override;
73};
74
75
77 public cppu::WeakImplHelper<
78 css::lang::XServiceInfo,
79 css::ucb::XCachedDynamicResultSetFactory>
80{
81 css::uno::Reference< css::uno::XComponentContext > m_xContext;
82
83public:
84
86 const css::uno::Reference< css::uno::XComponentContext > & xContext);
87
88 virtual ~CachedDynamicResultSetFactory() override;
89
90 // XServiceInfo
91 virtual OUString SAL_CALL getImplementationName() override;
92 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
93 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
94
95 // XCachedDynamicResultSetFactory
96
97 virtual css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL
98 createCachedDynamicResultSet(
99 const css::uno::Reference< css::ucb::XDynamicResultSet > & SourceStub
100 , const css::uno::Reference< css::ucb::XContentIdentifierMapping > & ContentIdentifierMapping
101 ) override;
102};
103
104/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual ~CachedDynamicResultSet() override
css::uno::Reference< css::ucb::XContentIdentifierMapping > m_xContentIdentifierMapping
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL release() noexcept override
virtual void impl_disposing(const css::lang::EventObject &Source) 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
CachedDynamicResultSet(css::uno::Reference< css::ucb::XDynamicResultSet > const &xOrigin, const css::uno::Reference< css::ucb::XContentIdentifierMapping > &xContentMapping, const css::uno::Reference< css::uno::XComponentContext > &xContext)
virtual OUString SAL_CALL getImplementationName() override
virtual void impl_InitResultSetTwo(const css::uno::Reference< css::sdbc::XResultSet > &xResultSet) override
Type
unsigned char sal_Bool
signed char sal_Int8