LCOV - code coverage report
Current view: top level - dbaccess/source/core/api - PrivateRow.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 59 0.0 %
Date: 2012-08-25 Functions: 0 20 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 12 0.0 %

           Branch data     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                 :            : #include "PrivateRow.hxx"
      21                 :            : 
      22                 :            : using namespace dbaccess;
      23                 :            : using namespace ::com::sun::star::uno;
      24                 :            : using namespace ::com::sun::star::beans;
      25                 :            : using namespace ::com::sun::star::sdbc;
      26                 :            : using namespace ::com::sun::star::sdb;
      27                 :            : using namespace ::com::sun::star::sdbcx;
      28                 :            : using namespace ::com::sun::star::container;
      29                 :            : using namespace ::com::sun::star::lang;
      30                 :            : using namespace ::com::sun::star::util;
      31                 :            : using namespace ::com::sun::star;
      32                 :            : 
      33                 :          0 : ::sal_Bool SAL_CALL OPrivateRow::wasNull(  ) throw (SQLException, RuntimeException)
      34                 :            :     {
      35                 :          0 :         return m_aRow[m_nPos].isNull();
      36                 :            :     }
      37                 :          0 :     ::rtl::OUString SAL_CALL OPrivateRow::getString( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      38                 :            :     {
      39                 :          0 :         m_nPos = columnIndex;
      40                 :          0 :         return m_aRow[m_nPos];
      41                 :            :     }
      42                 :          0 :     ::sal_Bool SAL_CALL OPrivateRow::getBoolean( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      43                 :            :     {
      44                 :          0 :         m_nPos = columnIndex;
      45                 :          0 :         return m_aRow[m_nPos];
      46                 :            :     }
      47                 :          0 :     ::sal_Int8 SAL_CALL OPrivateRow::getByte( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      48                 :            :     {
      49                 :          0 :         m_nPos = columnIndex;
      50                 :          0 :         return m_aRow[m_nPos];
      51                 :            :     }
      52                 :          0 :     ::sal_Int16 SAL_CALL OPrivateRow::getShort( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      53                 :            :     {
      54                 :          0 :         m_nPos = columnIndex;
      55                 :          0 :         return m_aRow[m_nPos];
      56                 :            :     }
      57                 :          0 :     ::sal_Int32 SAL_CALL OPrivateRow::getInt( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      58                 :            :     {
      59                 :          0 :         m_nPos = columnIndex;
      60                 :          0 :         return m_aRow[m_nPos];
      61                 :            :     }
      62                 :          0 :     ::sal_Int64 SAL_CALL OPrivateRow::getLong( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      63                 :            :     {
      64                 :          0 :         m_nPos = columnIndex;
      65                 :          0 :         return m_aRow[m_nPos];
      66                 :            :     }
      67                 :          0 :     float SAL_CALL OPrivateRow::getFloat( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      68                 :            :     {
      69                 :          0 :         m_nPos = columnIndex;
      70                 :          0 :         return m_aRow[m_nPos];
      71                 :            :     }
      72                 :          0 :     double SAL_CALL OPrivateRow::getDouble( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      73                 :            :     {
      74                 :          0 :         m_nPos = columnIndex;
      75                 :          0 :         return m_aRow[m_nPos];
      76                 :            :     }
      77                 :          0 :     Sequence< ::sal_Int8 > SAL_CALL OPrivateRow::getBytes( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      78                 :            :     {
      79                 :          0 :         m_nPos = columnIndex;
      80                 :          0 :         return m_aRow[m_nPos];
      81                 :            :     }
      82                 :          0 :     ::com::sun::star::util::Date SAL_CALL OPrivateRow::getDate( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      83                 :            :     {
      84                 :          0 :         m_nPos = columnIndex;
      85                 :          0 :         return m_aRow[m_nPos];
      86                 :            :     }
      87                 :          0 :     ::com::sun::star::util::Time SAL_CALL OPrivateRow::getTime( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      88                 :            :     {
      89                 :          0 :         m_nPos = columnIndex;
      90                 :          0 :         return m_aRow[m_nPos];
      91                 :            :     }
      92                 :          0 :     ::com::sun::star::util::DateTime SAL_CALL OPrivateRow::getTimestamp( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      93                 :            :     {
      94                 :          0 :         m_nPos = columnIndex;
      95                 :          0 :         return m_aRow[m_nPos];
      96                 :            :     }
      97                 :          0 :     Reference< ::com::sun::star::io::XInputStream > SAL_CALL OPrivateRow::getBinaryStream( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
      98                 :            :     {
      99                 :          0 :         m_nPos = columnIndex;
     100         [ #  # ]:          0 :         return Reference< ::com::sun::star::io::XInputStream >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
     101                 :            :     }
     102                 :          0 :     Reference< ::com::sun::star::io::XInputStream > SAL_CALL OPrivateRow::getCharacterStream( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
     103                 :            :     {
     104                 :          0 :         m_nPos = columnIndex;
     105         [ #  # ]:          0 :         return Reference< ::com::sun::star::io::XInputStream >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
     106                 :            :     }
     107                 :          0 :     Any SAL_CALL OPrivateRow::getObject( ::sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >&  ) throw (SQLException, RuntimeException)
     108                 :            :     {
     109                 :          0 :         m_nPos = columnIndex;
     110                 :          0 :         return m_aRow[m_nPos].makeAny();
     111                 :            :     }
     112                 :          0 :     Reference< XRef > SAL_CALL OPrivateRow::getRef( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
     113                 :            :     {
     114                 :          0 :         m_nPos = columnIndex;
     115         [ #  # ]:          0 :         return Reference< XRef >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
     116                 :            :     }
     117                 :          0 :     Reference< XBlob > SAL_CALL OPrivateRow::getBlob( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
     118                 :            :     {
     119                 :          0 :         m_nPos = columnIndex;
     120         [ #  # ]:          0 :         return Reference< XBlob >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
     121                 :            :     }
     122                 :          0 :     Reference< XClob > SAL_CALL OPrivateRow::getClob( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
     123                 :            :     {
     124                 :          0 :         m_nPos = columnIndex;
     125         [ #  # ]:          0 :         return Reference< XClob >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
     126                 :            :     }
     127                 :          0 :     Reference< XArray > SAL_CALL OPrivateRow::getArray( ::sal_Int32 columnIndex ) throw (SQLException, RuntimeException)
     128                 :            :     {
     129                 :          0 :         m_nPos = columnIndex;
     130         [ #  # ]:          0 :         return Reference< XArray >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
     131                 :            :     }
     132                 :            : 
     133                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10