update emoji autocorrect entries from po-files
[LibreOffice.git] / connectivity / source / drivers / firebird / Statement.hxx
blobcf785b612cde9119a0ebae08dfea1a68d3c1782e
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< ::com::sun::star::sdbc::XStatement >
33 OStatement_Base;
35 class OStatement : public OStatementCommonBase,
36 public OStatement_Base,
37 public ::com::sun::star::sdbc::XBatchExecution,
38 public ::com::sun::star::lang::XServiceInfo
40 protected:
41 virtual ~OStatement(){}
43 XSQLDA* m_pSqlda;
45 public:
46 // a constructor, which is required for returning objects:
47 OStatement( Connection* _pConnection)
48 : OStatementCommonBase( _pConnection),
49 m_pSqlda(0)
52 virtual void disposeResultSet() SAL_OVERRIDE;
54 DECLARE_SERVICE_INFO();
56 virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
57 virtual void SAL_CALL release() throw() SAL_OVERRIDE;
59 // XStatement
60 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL
61 executeQuery(const ::rtl::OUString& sql)
62 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 virtual sal_Int32 SAL_CALL executeUpdate(const ::rtl::OUString& sqlIn)
64 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
65 virtual sal_Bool SAL_CALL
66 execute(const ::rtl::OUString& sql)
67 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
68 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL
69 getConnection()
70 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
72 // XBatchExecution - UNSUPPORTED
73 virtual void SAL_CALL addBatch( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
74 virtual void SAL_CALL clearBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
75 virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
77 // XInterface
78 virtual ::com::sun::star::uno::Any SAL_CALL
79 queryInterface(const ::com::sun::star::uno::Type & rType)
80 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
82 //XTypeProvider
83 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
84 getTypes()
85 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
86 // XCloseable
87 virtual void SAL_CALL close()
88 throw(::com::sun::star::sdbc::SQLException,
89 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
90 // OComponentHelper
91 virtual void SAL_CALL disposing() SAL_OVERRIDE;
97 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */