LCOV - code coverage report
Current view: top level - libreoffice/connectivity/source/drivers/postgresql - pq_xkey.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-12-27 Functions: 0 8 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             :  *
       4             :  *  Effective License of whole file:
       5             :  *
       6             :  *    This library is free software; you can redistribute it and/or
       7             :  *    modify it under the terms of the GNU Lesser General Public
       8             :  *    License version 2.1, as published by the Free Software Foundation.
       9             :  *
      10             :  *    This library is distributed in the hope that it will be useful,
      11             :  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
      12             :  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      13             :  *    Lesser General Public License for more details.
      14             :  *
      15             :  *    You should have received a copy of the GNU Lesser General Public
      16             :  *    License along with this library; if not, write to the Free Software
      17             :  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
      18             :  *    MA  02111-1307  USA
      19             :  *
      20             :  *  Parts "Copyright by Sun Microsystems, Inc" prior to August 2011:
      21             :  *
      22             :  *    The Contents of this file are made available subject to the terms of
      23             :  *    the GNU Lesser General Public License Version 2.1
      24             :  *
      25             :  *    Copyright: 2000 by Sun Microsystems, Inc.
      26             :  *
      27             :  *    Contributor(s): Joerg Budischewski
      28             :  *
      29             :  *  All parts contributed on or after August 2011:
      30             :  *
      31             :  *    Version: MPL 1.1 / GPLv3+ / LGPLv2.1+
      32             :  *
      33             :  *    The contents of this file are subject to the Mozilla Public License Version
      34             :  *    1.1 (the "License"); you may not use this file except in compliance with
      35             :  *    the License or as specified alternatively below. You may obtain a copy of
      36             :  *    the License at http://www.mozilla.org/MPL/
      37             :  *
      38             :  *    Software distributed under the License is distributed on an "AS IS" basis,
      39             :  *    WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      40             :  *    for the specific language governing rights and limitations under the
      41             :  *    License.
      42             :  *
      43             :  *    Major Contributor(s):
      44             :  *    [ Copyright (C) 2011 Lionel Elie Mamane <lionel@mamane.lu> ]
      45             :  *
      46             :  *    All Rights Reserved.
      47             :  *
      48             :  *    For minor contributions see the git repository.
      49             :  *
      50             :  *    Alternatively, the contents of this file may be used under the terms of
      51             :  *    either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      52             :  *    the GNU Lesser General Public License Version 2.1 or later (the "LGPLv2.1+"),
      53             :  *    in which case the provisions of the GPLv3+ or the LGPLv2.1+ are applicable
      54             :  *    instead of those above.
      55             :  *
      56             :  ************************************************************************/
      57             : 
      58             : #ifndef HEADER_PQ_KEY_HXX_
      59             : #define HEADER_PQ_KEY_HXX_
      60             : 
      61             : #include <cppuhelper/component.hxx>
      62             : #include <cppuhelper/propshlp.hxx>
      63             : 
      64             : #include <com/sun/star/lang/XServiceInfo.hpp>
      65             : #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
      66             : #include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
      67             : 
      68             : #include "pq_connection.hxx"
      69             : #include "pq_xbase.hxx"
      70             : 
      71             : namespace pq_sdbc_driver
      72             : {
      73             : 
      74           0 : class Key : public ReflectionBase,
      75             :             public com::sun::star::sdbcx::XColumnsSupplier
      76             : {
      77             :     ::com::sun::star::uno::Reference< com::sun::star::sdbc::XDatabaseMetaData > m_meta;
      78             :     ::com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > m_keyColumns;
      79             : 
      80             :     rtl::OUString m_schemaName;
      81             :     rtl::OUString m_tableName;
      82             : 
      83             : public:
      84             :     Key( const ::rtl::Reference< RefCountedMutex > & refMutex,
      85             :          const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & connection,
      86             :          ConnectionSettings *pSettings,
      87             :          const rtl::OUString &schemaName,
      88             :          const rtl::OUString &tableName);
      89             : 
      90             : public: // XInterface
      91           0 :     virtual void SAL_CALL acquire() throw() { OComponentHelper::acquire(); }
      92           0 :     virtual void SAL_CALL release() throw() { OComponentHelper::release(); }
      93             :     virtual com::sun::star::uno::Any  SAL_CALL queryInterface(
      94             :         const com::sun::star::uno::Type & reqType )
      95             :         throw (com::sun::star::uno::RuntimeException);
      96             : 
      97             : public: // XColumnsSupplier
      98             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL
      99             :     getColumns(  ) throw (::com::sun::star::uno::RuntimeException);
     100             : 
     101             : public: // XTypeProvider, first implemented by OPropertySetHelper
     102             :     virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL getTypes()
     103             :         throw( com::sun::star::uno::RuntimeException );
     104             :     virtual com::sun::star::uno::Sequence< sal_Int8> SAL_CALL getImplementationId()
     105             :         throw( com::sun::star::uno::RuntimeException );
     106             : 
     107             : public: // XDataDescriptorFactory
     108             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
     109             :     createDataDescriptor(  ) throw (::com::sun::star::uno::RuntimeException);
     110             : 
     111             : };
     112             : 
     113             : 
     114           0 : class KeyDescriptor : public ReflectionBase, public com::sun::star::sdbcx::XColumnsSupplier
     115             : {
     116             :     ::com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > m_keyColumns;
     117             : 
     118             : public:
     119             :     KeyDescriptor( const ::rtl::Reference< RefCountedMutex > & refMutex,
     120             :          const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & connection,
     121             :          ConnectionSettings *pSettings );
     122             : 
     123             : public: // XInterface
     124           0 :     virtual void SAL_CALL acquire() throw() { OComponentHelper::acquire(); }
     125           0 :     virtual void SAL_CALL release() throw() { OComponentHelper::release(); }
     126             :     virtual com::sun::star::uno::Any  SAL_CALL queryInterface(
     127             :         const com::sun::star::uno::Type & reqType )
     128             :         throw (com::sun::star::uno::RuntimeException);
     129             : 
     130             : public: // XColumnsSupplier
     131             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL
     132             :     getColumns(  ) throw (::com::sun::star::uno::RuntimeException);
     133             : 
     134             : public: // XTypeProvider, first implemented by OPropertySetHelper
     135             :     virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL getTypes()
     136             :         throw( com::sun::star::uno::RuntimeException );
     137             :     virtual com::sun::star::uno::Sequence< sal_Int8> SAL_CALL getImplementationId()
     138             :         throw( com::sun::star::uno::RuntimeException );
     139             : 
     140             : public: // XDataDescriptorFactory
     141             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
     142             :     createDataDescriptor(  ) throw (::com::sun::star::uno::RuntimeException);
     143             : };
     144             : 
     145             : }
     146             : 
     147             : 
     148             : #endif

Generated by: LCOV version 1.10