build fix
[LibreOffice.git] / connectivity / source / drivers / firebird / Statement.hxx
blob308d2f9ae478e3a22492489c2c8c6af41d68f928
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
21 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
23 #include "StatementCommonBase.hxx"
25 #include <cppuhelper/implbase1.hxx>
27 namespace connectivity
29 namespace firebird
32 typedef ::cppu::ImplHelper1< css::sdbc::XStatement >
33 OStatement_Base;
35 class OStatement : public OStatementCommonBase,
36 public OStatement_Base,
37 public css::sdbc::XBatchExecution,
38 public css::lang::XServiceInfo
40 protected:
41 virtual ~OStatement() override {}
43 XSQLDA* m_pSqlda;
45 public:
46 // a constructor, which is required for returning objects:
47 explicit OStatement( Connection* _pConnection)
48 : OStatementCommonBase( _pConnection),
49 m_pSqlda(nullptr)
52 virtual void disposeResultSet() override;
54 DECLARE_SERVICE_INFO();
56 virtual void SAL_CALL acquire() throw() override;
57 virtual void SAL_CALL release() throw() override;
59 // XStatement
60 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
61 executeQuery(const ::rtl::OUString& sql)
62 throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
63 virtual sal_Int32 SAL_CALL executeUpdate(const ::rtl::OUString& sqlIn)
64 throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
65 virtual sal_Bool SAL_CALL
66 execute(const ::rtl::OUString& sql)
67 throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
68 virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL
69 getConnection()
70 throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
72 // XBatchExecution - UNSUPPORTED
73 virtual void SAL_CALL addBatch( const ::rtl::OUString& sql ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
74 virtual void SAL_CALL clearBatch( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
75 virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
77 // XInterface
78 virtual css::uno::Any SAL_CALL
79 queryInterface(const css::uno::Type & rType)
80 throw(css::uno::RuntimeException, std::exception) override;
82 //XTypeProvider
83 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
84 getTypes()
85 throw(css::uno::RuntimeException, std::exception) override;
86 // OComponentHelper
87 virtual void SAL_CALL disposing() override;
93 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */