LCOV - code coverage report
Current view: top level - libreoffice/connectivity/source/drivers/mysql - YColumns.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-12-27 Functions: 0 7 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             : #include "mysql/YColumns.hxx"
      21             : #include "TConnection.hxx"
      22             : 
      23             : 
      24             : using namespace ::comphelper;
      25             : using namespace connectivity::mysql;
      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           0 : OMySQLColumns::OMySQLColumns(   ::cppu::OWeakObject& _rParent
      36             :                                 ,sal_Bool _bCase
      37             :                                 ,::osl::Mutex& _rMutex
      38             :                                 ,const TStringVector &_rVector
      39             :                                 ,sal_Bool _bUseHardRef
      40           0 :             ) : OColumnsHelper(_rParent,_bCase,_rMutex,_rVector,_bUseHardRef)
      41             : {
      42           0 : }
      43             : // -----------------------------------------------------------------------------
      44           0 : Reference< XPropertySet > OMySQLColumns::createDescriptor()
      45             : {
      46           0 :     return new OMySQLColumn(sal_True);
      47             : }
      48             : // -----------------------------------------------------------------------------
      49             : // -----------------------------------------------------------------------------
      50           0 : OMySQLColumn::OMySQLColumn( sal_Bool    _bCase)
      51           0 :     : connectivity::sdbcx::OColumn( _bCase )
      52             : {
      53           0 :     construct();
      54           0 : }
      55             : // -------------------------------------------------------------------------
      56           0 : void OMySQLColumn::construct()
      57             : {
      58           0 :     m_sAutoIncrement = ::rtl::OUString("auto_increment");
      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* OMySQLColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
      63             : {
      64           0 :     return doCreateArrayHelper();
      65             : }
      66             : // -----------------------------------------------------------------------------
      67           0 : ::cppu::IPropertyArrayHelper & SAL_CALL OMySQLColumn::getInfoHelper()
      68             : {
      69           0 :     return *OMySQLColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
      70             : }
      71             : // -----------------------------------------------------------------------------
      72           0 : Sequence< ::rtl::OUString > SAL_CALL OMySQLColumn::getSupportedServiceNames(  ) throw(RuntimeException)
      73             : {
      74           0 :     Sequence< ::rtl::OUString > aSupported(1);
      75           0 :     aSupported[0] = ::rtl::OUString("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