1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
32 typedef ::cppu::ImplHelper1
< css::sdbc::XStatement
>
35 class OStatement
: public OStatementCommonBase
,
36 public OStatement_Base
,
37 public css::sdbc::XBatchExecution
,
38 public css::lang::XServiceInfo
41 virtual ~OStatement() override
{}
46 // a constructor, which is required for returning objects:
47 explicit OStatement( Connection
* _pConnection
)
48 : OStatementCommonBase( _pConnection
),
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
;
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
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
;
78 virtual css::uno::Any SAL_CALL
79 queryInterface(const css::uno::Type
& rType
)
80 throw(css::uno::RuntimeException
, std::exception
) override
;
83 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
85 throw(css::uno::RuntimeException
, std::exception
) override
;
87 virtual void SAL_CALL
disposing() override
;
93 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */