LCOV - code coverage report
Current view: top level - connectivity/source/drivers/mork - MTable.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 6 10 60.0 %
Date: 2015-06-13 12:38:46 Functions: 2 4 50.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 "MTable.hxx"
      21             : #include "MTables.hxx"
      22             : #include "MColumns.hxx"
      23             : #include <com/sun/star/sdbc/XRow.hpp>
      24             : #include <com/sun/star/sdbc/XResultSet.hpp>
      25             : #include <com/sun/star/sdbcx/KeyType.hpp>
      26             : #include <com/sun/star/sdbc/KeyRule.hpp>
      27             : #include <cppuhelper/typeprovider.hxx>
      28             : #include <com/sun/star/lang/DisposedException.hpp>
      29             : #include <com/sun/star/sdbc/ColumnValue.hpp>
      30             : #include <comphelper/sequence.hxx>
      31             : #include <comphelper/extract.hxx>
      32             : #include <comphelper/types.hxx>
      33             : #include <connectivity/dbtools.hxx>
      34             : #include <connectivity/TKeys.hxx>
      35             : #include <connectivity/TIndexes.hxx>
      36             : #include "MCatalog.hxx"
      37             : 
      38             : 
      39             : using namespace ::comphelper;
      40             : using namespace connectivity::mork;
      41             : using namespace connectivity;
      42             : using namespace ::com::sun::star::uno;
      43             : using namespace ::com::sun::star::beans;
      44             : using namespace ::com::sun::star::sdbcx;
      45             : using namespace ::com::sun::star::sdbc;
      46             : using namespace ::com::sun::star::container;
      47             : using namespace ::com::sun::star::lang;
      48             : 
      49             : 
      50           2 : OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
      51             :                 const OUString& _Name, const OUString& _Type, const OUString& _Description )
      52             :     :OTable_Base(_pTables, _pConnection, true, _Name, _Type, _Description )
      53           2 :     ,m_pConnection( _pConnection )
      54             : {
      55           2 :     construct();
      56           2 : }
      57             : 
      58             : 
      59           2 : sdbcx::OCollection* OTable::createColumns( const TStringVector& _rNames )
      60             : {
      61           2 :     return new OColumns( this, m_aMutex, _rNames );
      62             : }
      63             : 
      64             : 
      65           0 : sdbcx::OCollection* OTable::createKeys(const TStringVector& _rNames)
      66             : {
      67           0 :     return new OKeysHelper( this, m_aMutex, _rNames );
      68             : }
      69             : 
      70             : 
      71           0 : sdbcx::OCollection* OTable::createIndexes(const TStringVector& _rNames)
      72             : {
      73           0 :     return new OIndexesHelper( this, m_aMutex, _rNames );
      74             : }
      75             : 
      76             : 
      77             : 
      78             : 
      79             : 
      80             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11