LibreOffice Module connectivity (master) 1
DResultSet.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
26namespace connectivity::dbase
27 {
28 class ODbaseResultSet;
29 // these typedef's are only necessary for the compiler
30 typedef ::cppu::ImplHelper2< css::sdbcx::XRowLocate,
31 css::sdbcx::XDeleteRows> ODbaseResultSet_BASE;
33 typedef ::comphelper::OPropertyArrayUsageHelper<ODbaseResultSet> ODbaseResultSet_BASE3;
34
35
39 {
41 protected:
42 // OPropertyArrayUsageHelper
43 virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const override;
44 // OPropertySetHelper
45 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
46 virtual bool fillIndexValues(const css::uno::Reference< css::sdbcx::XColumnsSupplier> &_xIndex) override;
47 public:
49
51
52 // XInterface
53 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
54 virtual void SAL_CALL acquire() noexcept override;
55 virtual void SAL_CALL release() noexcept override;
56 //XTypeProvider
57 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
58 // XPropertySet
59 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
60
61 // XRowLocate
62 virtual css::uno::Any SAL_CALL getBookmark( ) override;
63 virtual sal_Bool SAL_CALL moveToBookmark( const css::uno::Any& bookmark ) override;
64 virtual sal_Bool SAL_CALL moveRelativeToBookmark( const css::uno::Any& bookmark, sal_Int32 rows ) override;
65 virtual sal_Int32 SAL_CALL compareBookmarks( const css::uno::Any& first, const css::uno::Any& second ) override;
66 virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) override;
67 virtual sal_Int32 SAL_CALL hashBookmark( const css::uno::Any& bookmark ) override;
68 // XDeleteRows
69 virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const css::uno::Sequence< css::uno::Any >& rows ) override;
70
71 // own methods
72 sal_Int32 getCurrentFilePos() const;
73
74 };
75
76}
77
78/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL moveToBookmark(const css::uno::Any &bookmark) override
Definition: DResultSet.cxx:87
virtual bool fillIndexValues(const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_xIndex) override
Definition: DResultSet.cxx:156
ODbaseResultSet(file::OStatement_Base *pStmt, connectivity::OSQLParseTreeIterator &_aSQLIterator)
Definition: DResultSet.cxx:43
virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows(const css::uno::Sequence< css::uno::Any > &rows) override
Definition: DResultSet.cxx:147
virtual sal_Int32 SAL_CALL hashBookmark(const css::uno::Any &bookmark) override
Definition: DResultSet.cxx:137
virtual css::uno::Any SAL_CALL getBookmark() override
Definition: DResultSet.cxx:78
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: DResultSet.cxx:200
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
Definition: DResultSet.cxx:183
virtual sal_Int32 SAL_CALL compareBookmarks(const css::uno::Any &first, const css::uno::Any &second) override
Definition: DResultSet.cxx:112
virtual void SAL_CALL acquire() noexcept override
Definition: DResultSet.cxx:190
virtual sal_Bool SAL_CALL moveRelativeToBookmark(const css::uno::Any &bookmark, sal_Int32 rows) override
Definition: DResultSet.cxx:98
virtual void SAL_CALL release() noexcept override
Definition: DResultSet.cxx:195
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: DResultSet.cxx:71
virtual sal_Bool SAL_CALL hasOrderedBookmarks() override
Definition: DResultSet.cxx:132
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: DResultSet.cxx:65
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
Definition: DResultSet.cxx:178
virtual sal_Bool SAL_CALL first() override
Definition: FResultSet.cxx:393
Type
file::OResultSet ODbaseResultSet_BASE2
Definition: DResultSet.hxx:32
::comphelper::OPropertyArrayUsageHelper< ODbaseResultSet > ODbaseResultSet_BASE3
Definition: DResultSet.hxx:33
::cppu::ImplHelper2< css::sdbcx::XRowLocate, css::sdbcx::XDeleteRows > ODbaseResultSet_BASE
Definition: DResultSet.hxx:28
unsigned char sal_Bool