LCOV - code coverage report
Current view: top level - connectivity/source/drivers/hsqldb - HColumns.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 3 21 14.3 %
Date: 2014-11-03 Functions: 1 7 14.3 %
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             : #include "hsqldb/HColumns.hxx"
      21             : #include "TConnection.hxx"
      22             : 
      23             : 
      24             : using namespace ::comphelper;
      25             : using namespace connectivity::hsqldb;
      26             : using namespace connectivity::sdbcx;
      27             : using namespace connectivity;
      28             : using namespace ::com::sun::star::uno;
      29             : using namespace ::com::sun::star::beans;
      30             : using namespace ::com::sun::star::sdbcx;
      31             : using namespace ::com::sun::star::sdbc;
      32             : using namespace ::com::sun::star::container;
      33             : using namespace ::com::sun::star::lang;
      34             : 
      35           2 : OHSQLColumns::OHSQLColumns( ::cppu::OWeakObject& _rParent
      36             :                                 ,bool _bCase
      37             :                                 ,::osl::Mutex& _rMutex
      38             :                                 ,const TStringVector &_rVector
      39             :                                 ,bool _bUseHardRef
      40           2 :             ) : OColumnsHelper(_rParent,_bCase,_rMutex,_rVector,_bUseHardRef)
      41             : {
      42           2 : }
      43             : 
      44           0 : Reference< XPropertySet > OHSQLColumns::createDescriptor()
      45             : {
      46           0 :     return new OHSQLColumn(true);
      47             : }
      48             : 
      49             : 
      50           0 : OHSQLColumn::OHSQLColumn(   bool    _bCase)
      51           0 :     : connectivity::sdbcx::OColumn( _bCase )
      52             : {
      53           0 :     construct();
      54           0 : }
      55             : 
      56           0 : void OHSQLColumn::construct()
      57             : {
      58           0 :     m_sAutoIncrement = "IDENTITY";
      59           0 :     registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AUTOINCREMENTCREATION),PROPERTY_ID_AUTOINCREMENTCREATION,0,&m_sAutoIncrement, ::getCppuType(&m_sAutoIncrement));
      60           0 : }
      61             : 
      62           0 : ::cppu::IPropertyArrayHelper* OHSQLColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
      63             : {
      64           0 :     return doCreateArrayHelper();
      65             : }
      66             : 
      67           0 : ::cppu::IPropertyArrayHelper & SAL_CALL OHSQLColumn::getInfoHelper()
      68             : {
      69           0 :     return *OHSQLColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
      70             : }
      71             : 
      72           0 : Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames(  ) throw(RuntimeException, std::exception)
      73             : {
      74           0 :     Sequence< OUString > aSupported(1);
      75           0 :     aSupported[0] = "com.sun.star.sdbcx.Column";
      76             : 
      77           0 :     return aSupported;
      78             : }
      79             : 
      80             : 
      81             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10