LCOV - code coverage report
Current view: top level - libreoffice/connectivity/source/drivers/postgresql - pq_xkeycolumns.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 2 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_KEYCOLUMNS_HXX
      59             : #define HEADER_PQ_KEYCOLUMNS_HXX
      60             : 
      61             : #include "pq_xcontainer.hxx"
      62             : 
      63             : namespace pq_sdbc_driver
      64             : {
      65             : 
      66             : class KeyColumns : public Container
      67             : {
      68             :     rtl::OUString m_schemaName;
      69             :     rtl::OUString m_tableName;
      70             :     com::sun::star::uno::Sequence< rtl::OUString > m_columnNames;
      71             :     com::sun::star::uno::Sequence< rtl::OUString > m_foreignColumnNames;
      72             : 
      73             : public: // instances KeyColumns 'exception safe'
      74             :     static com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > create(
      75             :         const ::rtl::Reference< RefCountedMutex > & refMutex,
      76             :         const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection >  & origin,
      77             :         ConnectionSettings *pSettings,
      78             :         const rtl::OUString &schemaName,
      79             :         const rtl::OUString &tableName,
      80             :         const com::sun::star::uno::Sequence< rtl::OUString > &keyColumns,
      81             :         const com::sun::star::uno::Sequence< rtl::OUString > &foreignColumnNames );
      82             : 
      83             : protected:
      84             :     KeyColumns(
      85             :         const ::rtl::Reference< RefCountedMutex > & refMutex,
      86             :         const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection >  & origin,
      87             :         ConnectionSettings *pSettings,
      88             :         const rtl::OUString &schemaName,
      89             :         const rtl::OUString &tableName,
      90             :         const com::sun::star::uno::Sequence< rtl::OUString > &keyColumns,
      91             :         const com::sun::star::uno::Sequence< rtl::OUString > &foreignColumnNames);
      92             : 
      93             :     virtual ~KeyColumns();
      94             : 
      95             : public: // XAppend
      96             :     virtual void SAL_CALL appendByDescriptor(
      97             :         const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor )
      98             :         throw (::com::sun::star::sdbc::SQLException,
      99             :                ::com::sun::star::container::ElementExistException,
     100             :                ::com::sun::star::uno::RuntimeException);
     101             : 
     102             : public: // XDrop
     103             :     virtual void SAL_CALL dropByIndex( sal_Int32 index )
     104             :         throw (::com::sun::star::sdbc::SQLException,
     105             :                ::com::sun::star::lang::IndexOutOfBoundsException,
     106             :                ::com::sun::star::uno::RuntimeException);
     107             : 
     108             : public: // XRefreshable
     109             :     virtual void SAL_CALL refresh(  ) throw (::com::sun::star::uno::RuntimeException);
     110             : 
     111             : public: // XDataDescriptorFactory
     112             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL createDataDescriptor(  )
     113             :         throw (::com::sun::star::uno::RuntimeException);
     114             : };
     115             : 
     116             : 
     117           0 : class KeyColumnDescriptors : public Container
     118             : {
     119             : public:
     120             :     KeyColumnDescriptors(
     121             :         const ::rtl::Reference< RefCountedMutex > & refMutex,
     122             :         const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection >  & origin,
     123             :         ConnectionSettings *pSettings);
     124             : 
     125             : public: // XDataDescriptorFactory
     126             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL createDataDescriptor(  )
     127             :         throw (::com::sun::star::uno::RuntimeException);
     128             : };
     129             : }
     130             : #endif

Generated by: LCOV version 1.10