LCOV - code coverage report
Current view: top level - connectivity/source/drivers/firebird - ResultSetMetaData.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 3 0.0 %
Date: 2014-04-14 Functions: 0 1 0.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 CONNECTIVITY_FIREBIRD_RESULTSETMETADATA_HXX
      21             : #define CONNECTIVITY_FIREBIRD_RESULTSETMETADATA_HXX
      22             : 
      23             : #include "Connection.hxx"
      24             : 
      25             : #include <ibase.h>
      26             : 
      27             : #include <cppuhelper/implbase1.hxx>
      28             : 
      29             : #include <com/sun/star/sdbc/XResultSetMetaData.hpp>
      30             : 
      31             : namespace connectivity
      32             : {
      33             :     namespace firebird
      34             :     {
      35             :         typedef ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XResultSetMetaData>
      36             :                 OResultSetMetaData_BASE;
      37             : 
      38             :         class OResultSetMetaData :  public  OResultSetMetaData_BASE
      39             :         {
      40             :         protected:
      41             :             Connection*     m_pConnection;
      42             :             XSQLDA*         m_pSqlda;
      43             : 
      44             :             virtual ~OResultSetMetaData();
      45             : 
      46             :             void verifyValidColumn(sal_Int32 column) throw(::com::sun::star::sdbc::SQLException);
      47             :         public:
      48             :             // a constructor, which is required for returning objects:
      49           0 :             OResultSetMetaData(Connection* pConnection,
      50             :                                XSQLDA* pSqlda)
      51             :                 : m_pConnection(pConnection)
      52           0 :                 , m_pSqlda(pSqlda)
      53           0 :             {}
      54             : 
      55             :             /// Avoid ambigous cast error from the compiler.
      56             :             inline operator ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > () throw()
      57             :             { return this; }
      58             : 
      59             :             virtual sal_Int32 SAL_CALL getColumnCount()
      60             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      61             :             virtual sal_Bool SAL_CALL isAutoIncrement(sal_Int32 column)
      62             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      63             :             virtual sal_Bool SAL_CALL isCaseSensitive(sal_Int32 column)
      64             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      65             :             virtual sal_Bool SAL_CALL isSearchable(sal_Int32 column)
      66             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      67             :             virtual sal_Bool SAL_CALL isCurrency(sal_Int32 column)
      68             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      69             :             virtual sal_Int32 SAL_CALL isNullable(sal_Int32 column)
      70             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             :             virtual sal_Bool SAL_CALL isSigned(sal_Int32 column)
      72             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             :             virtual sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column)
      74             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             :             virtual ::rtl::OUString SAL_CALL getColumnLabel(sal_Int32 column)
      76             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      77             :             virtual ::rtl::OUString SAL_CALL getColumnName(sal_Int32 column)
      78             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             :             virtual ::rtl::OUString SAL_CALL getSchemaName(sal_Int32 column)
      80             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      81             :             virtual sal_Int32 SAL_CALL getPrecision(sal_Int32 column)
      82             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      83             :             virtual sal_Int32 SAL_CALL getScale(sal_Int32 column)
      84             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             :             virtual ::rtl::OUString SAL_CALL getTableName(sal_Int32 column)
      86             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      87             :             virtual ::rtl::OUString SAL_CALL getCatalogName(sal_Int32 column)
      88             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      89             :             virtual sal_Int32 SAL_CALL getColumnType(sal_Int32 column)
      90             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      91             :             virtual ::rtl::OUString SAL_CALL getColumnTypeName(sal_Int32 column)
      92             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      93             :             virtual sal_Bool SAL_CALL isReadOnly(sal_Int32 column)
      94             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      95             :             virtual sal_Bool SAL_CALL isWritable(sal_Int32 column)
      96             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      97             :             virtual sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column)
      98             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      99             :             virtual ::rtl::OUString SAL_CALL getColumnServiceName(sal_Int32 column)
     100             :                 throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     101             :         };
     102             :     }
     103             : }
     104             : 
     105             : #endif // CONNECTIVITY_FIREBIRD_RESULTSETMETADATA_HXX
     106             : 
     107             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10