LCOV - code coverage report
Current view: top level - ucb/source/cacher - contentresultsetwrapper.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 16 0.0 %
Date: 2014-11-03 Functions: 0 4 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             : #ifndef INCLUDED_UCB_SOURCE_CACHER_CONTENTRESULTSETWRAPPER_HXX
      21             : #define INCLUDED_UCB_SOURCE_CACHER_CONTENTRESULTSETWRAPPER_HXX
      22             : 
      23             : #include <rtl/ustring.hxx>
      24             : #include <ucbhelper/macros.hxx>
      25             : #include <osl/mutex.hxx>
      26             : #include <cppuhelper/weak.hxx>
      27             : #include <com/sun/star/lang/XComponent.hpp>
      28             : #include <com/sun/star/sdbc/XCloseable.hpp>
      29             : #include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
      30             : #include <com/sun/star/sdbc/XResultSet.hpp>
      31             : #include <com/sun/star/sdbc/XRow.hpp>
      32             : #include <com/sun/star/ucb/XContentAccess.hpp>
      33             : #include <com/sun/star/beans/XPropertySet.hpp>
      34             : #include <com/sun/star/lang/DisposedException.hpp>
      35             : #include <cppuhelper/interfacecontainer.hxx>
      36             : 
      37             : 
      38             : 
      39             : class ContentResultSetWrapperListener;
      40             : class ContentResultSetWrapper
      41             :                 : public cppu::OWeakObject
      42             :                 , public com::sun::star::lang::XComponent
      43             :                 , public com::sun::star::sdbc::XCloseable
      44             :                 , public com::sun::star::sdbc::XResultSetMetaDataSupplier
      45             :                 , public com::sun::star::beans::XPropertySet
      46             :                 , public com::sun::star::ucb::XContentAccess
      47             :                 , public com::sun::star::sdbc::XResultSet
      48             :                 , public com::sun::star::sdbc::XRow
      49             : {
      50             : protected:
      51             :     typedef cppu::OMultiTypeInterfaceContainerHelperVar<OUString>
      52             :         PropertyChangeListenerContainer_Impl;
      53             : 
      54             :     class ReacquireableGuard
      55             :     {
      56             :     protected:
      57             :         osl::Mutex* pT;
      58             :     public:
      59             : 
      60             :         ReacquireableGuard(osl::Mutex * t) : pT(t)
      61             :         {
      62             :             pT->acquire();
      63             :         }
      64             : 
      65           0 :         ReacquireableGuard(osl::Mutex& t) : pT(&t)
      66             :         {
      67           0 :             pT->acquire();
      68           0 :         }
      69             : 
      70             :         /** Releases mutex. */
      71           0 :         ~ReacquireableGuard()
      72             :         {
      73           0 :             if (pT)
      74           0 :                 pT->release();
      75           0 :         }
      76             : 
      77             :         /** Releases mutex. */
      78           0 :         void clear()
      79             :         {
      80           0 :             if(pT)
      81             :             {
      82           0 :                 pT->release();
      83           0 :                 pT = NULL;
      84             :             }
      85           0 :         }
      86             : 
      87             :         /** Reacquire mutex. */
      88           0 :         void reacquire()
      89             :         {
      90           0 :             if(pT)
      91             :             {
      92           0 :                 pT->acquire();
      93             :             }
      94           0 :         }
      95             :     };
      96             : 
      97             : 
      98             :     //members
      99             : 
     100             :     //my Mutex
     101             :     osl::Mutex              m_aMutex;
     102             : 
     103             :     //different Interfaces from Origin:
     104             :     com::sun::star::uno::Reference< com::sun::star::sdbc::XResultSet >
     105             :                             m_xResultSetOrigin;
     106             :     com::sun::star::uno::Reference< com::sun::star::sdbc::XRow >
     107             :                             m_xRowOrigin; //XRow-interface from m_xOrigin
     108             :                             //!! call impl_init_xRowOrigin() bevor you access this member
     109             :     com::sun::star::uno::Reference< com::sun::star::ucb::XContentAccess >
     110             :                             m_xContentAccessOrigin; //XContentAccess-interface from m_xOrigin
     111             :                             //!! call impl_init_xContentAccessOrigin() bevor you access this member
     112             :     com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >
     113             :                             m_xPropertySetOrigin; //XPropertySet-interface from m_xOrigin
     114             :                             //!! call impl_init_xPropertySetOrigin() bevor you access this member
     115             : 
     116             :     com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo >
     117             :                             m_xPropertySetInfo;
     118             :                             //call impl_initPropertySetInfo() bevor you access this member
     119             : 
     120             :     sal_Int32               m_nForwardOnly;
     121             : 
     122             : private:
     123             :     com::sun::star::uno::Reference< com::sun::star::beans::XPropertyChangeListener >
     124             :                             m_xMyListenerImpl;
     125             :     ContentResultSetWrapperListener*
     126             :                             m_pMyListenerImpl;
     127             : 
     128             :     com::sun::star::uno::Reference< com::sun::star::sdbc::XResultSetMetaData >
     129             :                             m_xMetaDataFromOrigin; //XResultSetMetaData from m_xOrigin
     130             : 
     131             :     //management of listeners
     132             :     bool                m_bDisposed; ///Dispose call ready.
     133             :     bool                m_bInDispose;///In dispose call
     134             :     osl::Mutex              m_aContainerMutex;
     135             :     cppu::OInterfaceContainerHelper*
     136             :                             m_pDisposeEventListeners;
     137             :     PropertyChangeListenerContainer_Impl*
     138             :                             m_pPropertyChangeListeners;
     139             :     PropertyChangeListenerContainer_Impl*
     140             :                             m_pVetoableChangeListeners;
     141             : 
     142             : 
     143             :     //methods:
     144             : private:
     145             :     PropertyChangeListenerContainer_Impl* SAL_CALL
     146             :     impl_getPropertyChangeListenerContainer();
     147             : 
     148             :     PropertyChangeListenerContainer_Impl* SAL_CALL
     149             :     impl_getVetoableChangeListenerContainer();
     150             : 
     151             : protected:
     152             : 
     153             : 
     154             :     ContentResultSetWrapper( com::sun::star::uno::Reference<
     155             :                         com::sun::star::sdbc::XResultSet > xOrigin );
     156             : 
     157             :     virtual ~ContentResultSetWrapper();
     158             : 
     159             :     void SAL_CALL impl_init();
     160             :     void SAL_CALL impl_deinit();
     161             : 
     162             :     //--
     163             : 
     164             :     void SAL_CALL impl_init_xRowOrigin();
     165             :     void SAL_CALL impl_init_xContentAccessOrigin();
     166             :     void SAL_CALL impl_init_xPropertySetOrigin();
     167             : 
     168             :     //--
     169             : 
     170             :     virtual void SAL_CALL impl_initPropertySetInfo(); //helping XPropertySet
     171             : 
     172             :     void SAL_CALL
     173             :     impl_EnsureNotDisposed()
     174             :         throw( com::sun::star::lang::DisposedException,
     175             :                com::sun::star::uno::RuntimeException );
     176             : 
     177             :     void SAL_CALL
     178             :     impl_notifyPropertyChangeListeners(
     179             :             const com::sun::star::beans::PropertyChangeEvent& rEvt );
     180             : 
     181             :     void SAL_CALL
     182             :     impl_notifyVetoableChangeListeners(
     183             :             const com::sun::star::beans::PropertyChangeEvent& rEvt )
     184             :             throw( com::sun::star::beans::PropertyVetoException,
     185             :                    com::sun::star::uno::RuntimeException );
     186             : 
     187             :     bool SAL_CALL impl_isForwardOnly();
     188             : 
     189             : public:
     190             : 
     191             : 
     192             :     // XInterface
     193             : 
     194             :     virtual com::sun::star::uno::Any SAL_CALL
     195             :     queryInterface( const com::sun::star::uno::Type & rType )
     196             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     197             : 
     198             : 
     199             :     // XComponent
     200             : 
     201             :     virtual void SAL_CALL
     202             :     dispose() throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     203             : 
     204             :     virtual void SAL_CALL
     205             :     addEventListener( const com::sun::star::uno::Reference<
     206             :         com::sun::star::lang::XEventListener >& Listener )
     207             :             throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     208             : 
     209             :     virtual void SAL_CALL
     210             :     removeEventListener( const com::sun::star::uno::Reference<
     211             :         com::sun::star::lang::XEventListener >& Listener )
     212             :             throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     213             : 
     214             : 
     215             :     //XCloseable
     216             : 
     217             :     virtual void SAL_CALL
     218             :     close()
     219             :         throw( com::sun::star::sdbc::SQLException,
     220             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     221             : 
     222             : 
     223             :     //XResultSetMetaDataSupplier
     224             : 
     225             :     virtual com::sun::star::uno::Reference<
     226             :                 com::sun::star::sdbc::XResultSetMetaData > SAL_CALL
     227             :     getMetaData()
     228             :         throw( com::sun::star::sdbc::SQLException,
     229             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     230             : 
     231             : 
     232             :     // XPropertySet
     233             : 
     234             :     virtual com::sun::star::uno::Reference<
     235             :                 com::sun::star::beans::XPropertySetInfo > SAL_CALL
     236             :     getPropertySetInfo()
     237             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     238             : 
     239             :     virtual void SAL_CALL
     240             :     setPropertyValue( const OUString& aPropertyName,
     241             :                       const com::sun::star::uno::Any& aValue )
     242             :         throw( com::sun::star::beans::UnknownPropertyException,
     243             :                com::sun::star::beans::PropertyVetoException,
     244             :                com::sun::star::lang::IllegalArgumentException,
     245             :                com::sun::star::lang::WrappedTargetException,
     246             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     247             : 
     248             :     virtual com::sun::star::uno::Any SAL_CALL
     249             :     getPropertyValue( const OUString& PropertyName )
     250             :         throw( com::sun::star::beans::UnknownPropertyException,
     251             :         com::sun::star::lang::WrappedTargetException,
     252             :         com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     253             : 
     254             :     virtual void SAL_CALL
     255             :     addPropertyChangeListener( const OUString& aPropertyName,
     256             :                                const com::sun::star::uno::Reference<
     257             :                                        com::sun::star::beans::XPropertyChangeListener >& xListener )
     258             :         throw( com::sun::star::beans::UnknownPropertyException,
     259             :                com::sun::star::lang::WrappedTargetException,
     260             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     261             : 
     262             :     virtual void SAL_CALL
     263             :     removePropertyChangeListener( const OUString& aPropertyName,
     264             :                                   const com::sun::star::uno::Reference<
     265             :                                       com::sun::star::beans::XPropertyChangeListener >& aListener )
     266             :         throw( com::sun::star::beans::UnknownPropertyException,
     267             :                com::sun::star::lang::WrappedTargetException,
     268             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     269             : 
     270             :     virtual void SAL_CALL
     271             :     addVetoableChangeListener( const OUString& PropertyName,
     272             :                                const com::sun::star::uno::Reference<
     273             :                                        com::sun::star::beans::XVetoableChangeListener >& aListener )
     274             :         throw( com::sun::star::beans::UnknownPropertyException,
     275             :                com::sun::star::lang::WrappedTargetException,
     276             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     277             : 
     278             :     virtual void SAL_CALL
     279             :     removeVetoableChangeListener( const OUString& PropertyName,
     280             :                                   const com::sun::star::uno::Reference<
     281             :                                       com::sun::star::beans::XVetoableChangeListener >& aListener )
     282             :         throw( com::sun::star::beans::UnknownPropertyException,
     283             :                com::sun::star::lang::WrappedTargetException,
     284             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     285             : 
     286             : 
     287             :     // own methods
     288             : 
     289             :     virtual void SAL_CALL
     290             :         impl_disposing( const com::sun::star::lang::EventObject& Source )
     291             :         throw( com::sun::star::uno::RuntimeException );
     292             : 
     293             :     virtual void SAL_CALL
     294             :     impl_propertyChange( const com::sun::star::beans::PropertyChangeEvent& evt )
     295             :         throw( com::sun::star::uno::RuntimeException );
     296             : 
     297             :     virtual void SAL_CALL
     298             :     impl_vetoableChange( const com::sun::star::beans::PropertyChangeEvent& aEvent )
     299             :         throw( com::sun::star::beans::PropertyVetoException,
     300             :                com::sun::star::uno::RuntimeException );
     301             : 
     302             : 
     303             :     // XContentAccess
     304             : 
     305             :     virtual OUString SAL_CALL
     306             :     queryContentIdentifierString()
     307             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     308             : 
     309             :     virtual com::sun::star::uno::Reference<
     310             :                 com::sun::star::ucb::XContentIdentifier > SAL_CALL
     311             :     queryContentIdentifier()
     312             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     313             : 
     314             :     virtual com::sun::star::uno::Reference<
     315             :                 com::sun::star::ucb::XContent > SAL_CALL
     316             :     queryContent()
     317             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     318             : 
     319             : 
     320             :     // XResultSet
     321             : 
     322             :     virtual sal_Bool SAL_CALL
     323             :     next()
     324             :         throw( com::sun::star::sdbc::SQLException,
     325             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     326             :     virtual sal_Bool SAL_CALL
     327             :     isBeforeFirst()
     328             :         throw( com::sun::star::sdbc::SQLException,
     329             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     330             :     virtual sal_Bool SAL_CALL
     331             :     isAfterLast()
     332             :         throw( com::sun::star::sdbc::SQLException,
     333             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     334             :     virtual sal_Bool SAL_CALL
     335             :     isFirst()
     336             :         throw( com::sun::star::sdbc::SQLException,
     337             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     338             :     virtual sal_Bool SAL_CALL
     339             :     isLast()
     340             :         throw( com::sun::star::sdbc::SQLException,
     341             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     342             :     virtual void SAL_CALL
     343             :     beforeFirst()
     344             :         throw( com::sun::star::sdbc::SQLException,
     345             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     346             :     virtual void SAL_CALL
     347             :     afterLast()
     348             :         throw( com::sun::star::sdbc::SQLException,
     349             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     350             :     virtual sal_Bool SAL_CALL
     351             :     first()
     352             :         throw( com::sun::star::sdbc::SQLException,
     353             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     354             :     virtual sal_Bool SAL_CALL
     355             :     last()
     356             :         throw( com::sun::star::sdbc::SQLException,
     357             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     358             :     virtual sal_Int32 SAL_CALL
     359             :     getRow()
     360             :         throw( com::sun::star::sdbc::SQLException,
     361             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     362             :     virtual sal_Bool SAL_CALL
     363             :     absolute( sal_Int32 row )
     364             :         throw( com::sun::star::sdbc::SQLException,
     365             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     366             :     virtual sal_Bool SAL_CALL
     367             :     relative( sal_Int32 rows )
     368             :         throw( com::sun::star::sdbc::SQLException,
     369             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     370             :     virtual sal_Bool SAL_CALL
     371             :     previous()
     372             :         throw( com::sun::star::sdbc::SQLException,
     373             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     374             :     virtual void SAL_CALL
     375             :     refreshRow()
     376             :         throw( com::sun::star::sdbc::SQLException,
     377             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     378             :     virtual sal_Bool SAL_CALL
     379             :     rowUpdated()
     380             :         throw( com::sun::star::sdbc::SQLException,
     381             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     382             :     virtual sal_Bool SAL_CALL
     383             :     rowInserted()
     384             :         throw( com::sun::star::sdbc::SQLException,
     385             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     386             :     virtual sal_Bool SAL_CALL
     387             :     rowDeleted()
     388             :         throw( com::sun::star::sdbc::SQLException,
     389             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     390             :     virtual com::sun::star::uno::Reference<
     391             :                 com::sun::star::uno::XInterface > SAL_CALL
     392             :     getStatement()
     393             :         throw( com::sun::star::sdbc::SQLException,
     394             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     395             : 
     396             : 
     397             :     // XRow
     398             : 
     399             :     virtual sal_Bool SAL_CALL
     400             :     wasNull()
     401             :         throw( com::sun::star::sdbc::SQLException,
     402             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     403             : 
     404             :     virtual OUString SAL_CALL
     405             :     getString( sal_Int32 columnIndex )
     406             :         throw( com::sun::star::sdbc::SQLException,
     407             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     408             : 
     409             :     virtual sal_Bool SAL_CALL
     410             :     getBoolean( sal_Int32 columnIndex )
     411             :         throw( com::sun::star::sdbc::SQLException,
     412             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     413             : 
     414             :     virtual sal_Int8 SAL_CALL
     415             :     getByte( sal_Int32 columnIndex )
     416             :         throw( com::sun::star::sdbc::SQLException,
     417             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     418             : 
     419             :     virtual sal_Int16 SAL_CALL
     420             :     getShort( sal_Int32 columnIndex )
     421             :         throw( com::sun::star::sdbc::SQLException,
     422             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     423             : 
     424             :     virtual sal_Int32 SAL_CALL
     425             :     getInt( sal_Int32 columnIndex )
     426             :         throw( com::sun::star::sdbc::SQLException,
     427             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     428             : 
     429             :     virtual sal_Int64 SAL_CALL
     430             :     getLong( sal_Int32 columnIndex )
     431             :         throw( com::sun::star::sdbc::SQLException,
     432             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     433             : 
     434             :     virtual float SAL_CALL
     435             :     getFloat( sal_Int32 columnIndex )
     436             :         throw( com::sun::star::sdbc::SQLException,
     437             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     438             : 
     439             :     virtual double SAL_CALL
     440             :     getDouble( sal_Int32 columnIndex )
     441             :         throw( com::sun::star::sdbc::SQLException,
     442             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     443             : 
     444             :     virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
     445             :     getBytes( sal_Int32 columnIndex )
     446             :         throw( com::sun::star::sdbc::SQLException,
     447             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     448             : 
     449             :     virtual com::sun::star::util::Date SAL_CALL
     450             :     getDate( sal_Int32 columnIndex )
     451             :         throw( com::sun::star::sdbc::SQLException,
     452             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     453             : 
     454             :     virtual com::sun::star::util::Time SAL_CALL
     455             :     getTime( sal_Int32 columnIndex )
     456             :         throw( com::sun::star::sdbc::SQLException,
     457             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     458             : 
     459             :     virtual com::sun::star::util::DateTime SAL_CALL
     460             :     getTimestamp( sal_Int32 columnIndex )
     461             :         throw( com::sun::star::sdbc::SQLException,
     462             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     463             : 
     464             :     virtual com::sun::star::uno::Reference<
     465             :                 com::sun::star::io::XInputStream > SAL_CALL
     466             :     getBinaryStream( sal_Int32 columnIndex )
     467             :         throw( com::sun::star::sdbc::SQLException,
     468             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     469             : 
     470             :     virtual com::sun::star::uno::Reference<
     471             :                 com::sun::star::io::XInputStream > SAL_CALL
     472             :     getCharacterStream( sal_Int32 columnIndex )
     473             :         throw( com::sun::star::sdbc::SQLException,
     474             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     475             : 
     476             :     virtual com::sun::star::uno::Any SAL_CALL
     477             :     getObject( sal_Int32 columnIndex,
     478             :                const com::sun::star::uno::Reference<
     479             :                    com::sun::star::container::XNameAccess >& typeMap )
     480             :         throw( com::sun::star::sdbc::SQLException,
     481             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     482             : 
     483             :     virtual com::sun::star::uno::Reference<
     484             :                 com::sun::star::sdbc::XRef > SAL_CALL
     485             :     getRef( sal_Int32 columnIndex )
     486             :         throw( com::sun::star::sdbc::SQLException,
     487             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     488             : 
     489             :     virtual com::sun::star::uno::Reference<
     490             :                 com::sun::star::sdbc::XBlob > SAL_CALL
     491             :     getBlob( sal_Int32 columnIndex )
     492             :         throw( com::sun::star::sdbc::SQLException,
     493             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     494             : 
     495             :     virtual com::sun::star::uno::Reference<
     496             :                 com::sun::star::sdbc::XClob > SAL_CALL
     497             :     getClob( sal_Int32 columnIndex )
     498             :         throw( com::sun::star::sdbc::SQLException,
     499             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     500             : 
     501             :     virtual com::sun::star::uno::Reference<
     502             :                 com::sun::star::sdbc::XArray > SAL_CALL
     503             :     getArray( sal_Int32 columnIndex )
     504             :         throw( com::sun::star::sdbc::SQLException,
     505             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     506             : };
     507             : 
     508             : 
     509             : 
     510             : class ContentResultSetWrapperListener
     511             :         : public cppu::OWeakObject
     512             :         , public com::sun::star::beans::XPropertyChangeListener
     513             :         , public com::sun::star::beans::XVetoableChangeListener
     514             : {
     515             : protected:
     516             :     ContentResultSetWrapper*    m_pOwner;
     517             : 
     518             : public:
     519             :     ContentResultSetWrapperListener( ContentResultSetWrapper* pOwner );
     520             : 
     521             :     virtual ~ContentResultSetWrapperListener();
     522             : 
     523             : 
     524             :     // XInterface
     525             :     virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
     526             :         throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     527             :     virtual void SAL_CALL acquire()
     528             :         throw() SAL_OVERRIDE;
     529             :     virtual void SAL_CALL release()
     530             :         throw() SAL_OVERRIDE;
     531             : 
     532             :     //XEventListener
     533             : 
     534             :     virtual void SAL_CALL
     535             :         disposing( const com::sun::star::lang::EventObject& Source )
     536             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     537             : 
     538             : 
     539             :     //XPropertyChangeListener
     540             : 
     541             :     virtual void SAL_CALL
     542             :     propertyChange( const com::sun::star::beans::PropertyChangeEvent& evt )
     543             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     544             : 
     545             : 
     546             :     //XVetoableChangeListener
     547             : 
     548             :     virtual void SAL_CALL
     549             :     vetoableChange( const com::sun::star::beans::PropertyChangeEvent& aEvent )
     550             :         throw( com::sun::star::beans::PropertyVetoException,
     551             :                com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     552             : 
     553             : 
     554             :     // own methods:
     555             :     void SAL_CALL impl_OwnerDies();
     556             : };
     557             : 
     558             : #endif
     559             : 
     560             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10