LCOV - code coverage report
Current view: top level - dbaccess/source/core/api - CRowSetColumn.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 35 35 100.0 %
Date: 2012-08-25 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 54 108 50.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                 :            : 
      21                 :            : #include "dbastrings.hrc"
      22                 :            : #include "apitools.hxx"
      23                 :            : #include "CRowSetColumn.hxx"
      24                 :            : 
      25                 :            : #include <com/sun/star/sdb/XColumn.hpp>
      26                 :            : #include <com/sun/star/beans/PropertyAttribute.hpp>
      27                 :            : 
      28                 :            : #include <comphelper/types.hxx>
      29                 :            : #include <cppuhelper/typeprovider.hxx>
      30                 :            : 
      31                 :            : using namespace ::com::sun::star::uno;
      32                 :            : using namespace ::com::sun::star::sdbc;
      33                 :            : using namespace ::com::sun::star::sdb;
      34                 :            : using namespace ::com::sun::star::beans;
      35                 :            : 
      36                 :            : namespace dbaccess
      37                 :            : {
      38                 :            : 
      39                 :         84 : ORowSetColumn::ORowSetColumn(   const Reference < XResultSetMetaData >& _xMetaData, const Reference < XRow >& _xRow, sal_Int32 _nPos,
      40                 :            :                 const Reference< XDatabaseMetaData >& _rxDBMeta, const ::rtl::OUString& _rDescription, const ::rtl::OUString& i_sLabel,ORowSetCacheIterator& _rColumnValue )
      41 [ +  - ][ +  - ]:         84 :     :ORowSetDataColumn( _xMetaData, _xRow, NULL, _nPos, _rxDBMeta, _rDescription, i_sLabel,_rColumnValue )
      42                 :            : {
      43                 :         84 : }
      44                 :            : 
      45                 :          2 : ::cppu::IPropertyArrayHelper* ORowSetColumn::createArrayHelper( ) const
      46                 :            : {
      47 [ +  - ][ +  - ]:          2 :     BEGIN_PROPERTY_SEQUENCE(21)
      48                 :            : 
      49 [ +  - ][ +  - ]:          2 :     DECL_PROP1( CATALOGNAME,                ::rtl::OUString,    READONLY );
      50 [ +  - ][ +  - ]:          2 :     DECL_PROP1( DISPLAYSIZE,                sal_Int32,          READONLY );
      51 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISAUTOINCREMENT,                           READONLY );
      52 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISCASESENSITIVE,                           READONLY );
      53 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISCURRENCY,                                READONLY );
      54 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISDEFINITELYWRITABLE,                      READONLY );
      55 [ +  - ][ +  - ]:          2 :     DECL_PROP1( ISNULLABLE,                 sal_Int32,          READONLY );
      56 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISREADONLY,                                BOUND );
      57 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISROWVERSION,                              READONLY );
      58 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISSEARCHABLE,                              READONLY );
      59 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISSIGNED,                                  READONLY );
      60 [ +  - ][ +  - ]:          2 :     DECL_PROP1_BOOL( ISWRITABLE,                                READONLY );
      61 [ +  - ][ +  - ]:          2 :     DECL_PROP1( LABEL,                      ::rtl::OUString,    READONLY );
      62 [ +  - ][ +  - ]:          2 :     DECL_PROP1( PRECISION,                  sal_Int32,          READONLY );
      63 [ +  - ][ +  - ]:          2 :     DECL_PROP1( SCALE,                      sal_Int32,          READONLY );
      64 [ +  - ][ +  - ]:          2 :     DECL_PROP1( SCHEMANAME,                 ::rtl::OUString,    READONLY );
      65 [ +  - ][ +  - ]:          2 :     DECL_PROP1( SERVICENAME,                ::rtl::OUString,    READONLY );
      66 [ +  - ][ +  - ]:          2 :     DECL_PROP1( TABLENAME,                  ::rtl::OUString,    READONLY );
      67 [ +  - ][ +  - ]:          2 :     DECL_PROP1( TYPE,                       sal_Int32,          READONLY );
      68 [ +  - ][ +  - ]:          2 :     DECL_PROP1( TYPENAME,                   ::rtl::OUString,    READONLY );
      69 [ +  - ][ +  - ]:          2 :     DECL_PROP2( VALUE,                      Any,                READONLY, BOUND );
      70                 :            : 
      71                 :            :     END_PROPERTY_SEQUENCE()
      72                 :            : 
      73         [ +  - ]:          2 :     Sequence< Property > aRegisteredProperties;
      74         [ +  - ]:          2 :     describeProperties( aRegisteredProperties );
      75                 :            : 
      76 [ +  - ][ +  - ]:          2 :     return new ::cppu::OPropertyArrayHelper( ::comphelper::concatSequences( aDescriptor, aRegisteredProperties ), sal_False );
         [ +  - ][ +  - ]
                 [ +  - ]
      77                 :            : }
      78                 :            : 
      79                 :       2174 : ::cppu::IPropertyArrayHelper& ORowSetColumn::getInfoHelper()
      80                 :            : {
      81                 :       2174 :     return *static_cast< ::comphelper::OPropertyArrayUsageHelper< ORowSetColumn >* >(this)->getArrayHelper();
      82                 :            : }
      83                 :            : 
      84                 :        672 : void SAL_CALL ORowSetColumn::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue )throw (Exception)
      85                 :            : {
      86                 :            :     OSL_ENSURE( nHandle != PROPERTY_ID_VALUE, "ORowSetColumn::setFastPropertyValue_NoBroadcast: hmm? This property is marked as READONLY!" );
      87         [ +  - ]:        672 :     if ( nHandle != PROPERTY_ID_VALUE )
      88                 :        672 :         ORowSetDataColumn::setFastPropertyValue_NoBroadcast( nHandle, rValue );
      89                 :        672 : }
      90                 :            : 
      91                 :            : }   // namespace dbaccess
      92                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10