LCOV - code coverage report
Current view: top level - connectivity/source/drivers/firebird - Statement.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 4 4 100.0 %
Date: 2014-11-03 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      20             : #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
      21             : #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
      22             : 
      23             : #include "StatementCommonBase.hxx"
      24             : 
      25             : #include <cppuhelper/implbase1.hxx>
      26             : 
      27             : namespace connectivity
      28             : {
      29             :     namespace firebird
      30             :     {
      31             : 
      32             :         typedef ::cppu::ImplHelper1< ::com::sun::star::sdbc::XStatement >
      33             :             OStatement_Base;
      34             : 
      35             :         class OStatement :  public OStatementCommonBase,
      36             :                             public OStatement_Base,
      37             :                             public ::com::sun::star::sdbc::XBatchExecution,
      38             :                             public ::com::sun::star::lang::XServiceInfo
      39             :         {
      40             :         protected:
      41          44 :             virtual ~OStatement(){}
      42             : 
      43             :             XSQLDA* m_pSqlda;
      44             : 
      45             :         public:
      46             :             // a constructor, which is required for returning objects:
      47          22 :             OStatement( Connection* _pConnection)
      48             :                 : OStatementCommonBase( _pConnection),
      49          22 :                   m_pSqlda(0)
      50          22 :             {}
      51             : 
      52             :             virtual void disposeResultSet() SAL_OVERRIDE;
      53             : 
      54             :             DECLARE_SERVICE_INFO();
      55             : 
      56             :             virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
      57             :             virtual void SAL_CALL release() throw() SAL_OVERRIDE;
      58             : 
      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;
      71             : 
      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;
      76             : 
      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;
      81             : 
      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;
      92             : 
      93             : 
      94             :         };
      95             :     }
      96             : }
      97             : #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_STATEMENT_HXX
      98             : 
      99             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10