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

Generated by: LCOV version 1.10