LibreOffice Module connectivity (master) 1
CResultSet.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#pragma once
20
21#include <file/FResultSet.hxx>
22#include <com/sun/star/sdbcx/XRowLocate.hpp>
23#include <com/sun/star/sdbcx/XDeleteRows.hpp>
25
27 {
28 class OComponentResultSet;
29 // these typedef's are only necessary for the compiler
30 typedef ::cppu::ImplHelper2< css::sdbcx::XRowLocate,
31 css::sdbcx::XDeleteRows> OComponentResultSet_BASE;
33 typedef ::comphelper::OPropertyArrayUsageHelper<OComponentResultSet> OComponentResultSet_BASE3;
34
35
40 {
42 protected:
43 // OPropertyArrayUsageHelper
44 virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const override;
45 // OPropertySetHelper
46 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
47 virtual bool fillIndexValues(const css::uno::Reference< css::sdbcx::XColumnsSupplier> &_xIndex) override;
48 public:
50
52
53 private:
54 // XInterface
55 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
56 virtual void SAL_CALL acquire() noexcept override;
57 virtual void SAL_CALL release() noexcept override;
58 //XTypeProvider
59 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
60 // XPropertySet
61 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
62
63 // XRowLocate
64 virtual css::uno::Any SAL_CALL getBookmark( ) override;
65 virtual sal_Bool SAL_CALL moveToBookmark( const css::uno::Any& bookmark ) override;
66 virtual sal_Bool SAL_CALL moveRelativeToBookmark( const css::uno::Any& bookmark, sal_Int32 rows ) override;
67 virtual sal_Int32 SAL_CALL compareBookmarks( const css::uno::Any& first, const css::uno::Any& second ) override;
68 virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) override;
69 virtual sal_Int32 SAL_CALL hashBookmark( const css::uno::Any& bookmark ) override;
70 // XDeleteRows
71 virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const css::uno::Sequence< css::uno::Any >& rows ) override;
72
73 virtual bool isRowDeleted() const override { return false; }
74
75 };
76
77}
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ResultSet implementation for Writer tables and Calc sheets.
Definition: CResultSet.hxx:40
OComponentResultSet(file::OStatement_Base *pStmt, connectivity::OSQLParseTreeIterator &_aSQLIterator)
Definition: CResultSet.cxx:39
virtual sal_Bool SAL_CALL moveRelativeToBookmark(const css::uno::Any &bookmark, sal_Int32 rows) override
Definition: CResultSet.cxx:94
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: CResultSet.cxx:61
virtual bool isRowDeleted() const override
Definition: CResultSet.hxx:73
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
Definition: CResultSet.cxx:143
virtual sal_Bool SAL_CALL hasOrderedBookmarks() override
Definition: CResultSet.cxx:113
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: CResultSet.cxx:67
virtual sal_Int32 SAL_CALL compareBookmarks(const css::uno::Any &first, const css::uno::Any &second) override
Definition: CResultSet.cxx:108
virtual void SAL_CALL release() noexcept override
Definition: CResultSet.cxx:161
virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows(const css::uno::Sequence< css::uno::Any > &rows) override
Definition: CResultSet.cxx:128
virtual bool fillIndexValues(const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_xIndex) override
Definition: CResultSet.cxx:137
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
Definition: CResultSet.cxx:148
virtual css::uno::Any SAL_CALL getBookmark() override
Definition: CResultSet.cxx:74
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: CResultSet.cxx:166
virtual sal_Int32 SAL_CALL hashBookmark(const css::uno::Any &bookmark) override
Definition: CResultSet.cxx:118
virtual void SAL_CALL acquire() noexcept override
Definition: CResultSet.cxx:156
virtual sal_Bool SAL_CALL moveToBookmark(const css::uno::Any &bookmark) override
Definition: CResultSet.cxx:83
virtual sal_Bool SAL_CALL first() override
Definition: FResultSet.cxx:393
Type
::comphelper::OPropertyArrayUsageHelper< OComponentResultSet > OComponentResultSet_BASE3
Definition: CResultSet.hxx:33
file::OResultSet OComponentResultSet_BASE2
Definition: CResultSet.hxx:32
::cppu::ImplHelper2< css::sdbcx::XRowLocate, css::sdbcx::XDeleteRows > OComponentResultSet_BASE
Definition: CResultSet.hxx:28
unsigned char sal_Bool