1*2e2212a7SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2e2212a7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2e2212a7SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2e2212a7SAndrew Rist * distributed with this work for additional information 6*2e2212a7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2e2212a7SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2e2212a7SAndrew Rist * "License"); you may not use this file except in compliance 9*2e2212a7SAndrew Rist * with the License. You may obtain a copy of the License at 10*2e2212a7SAndrew Rist * 11*2e2212a7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2e2212a7SAndrew Rist * 13*2e2212a7SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2e2212a7SAndrew Rist * software distributed under the License is distributed on an 15*2e2212a7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2e2212a7SAndrew Rist * KIND, either express or implied. See the License for the 17*2e2212a7SAndrew Rist * specific language governing permissions and limitations 18*2e2212a7SAndrew Rist * under the License. 19*2e2212a7SAndrew Rist * 20*2e2212a7SAndrew Rist *************************************************************/ 21*2e2212a7SAndrew Rist 22*2e2212a7SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _DBA_COREDATAACCESS_DATASOURCE_HXX_ 25cdf0e10cSrcweir #define _DBA_COREDATAACCESS_DATASOURCE_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATSSUPPLIER_HPP_ 28cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormatsSupplier.hpp> 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_ 31cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 32cdf0e10cSrcweir #endif 33cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_ 34cdf0e10cSrcweir #include <com/sun/star/sdbc/XDataSource.hpp> 35cdf0e10cSrcweir #endif 36cdf0e10cSrcweir #ifndef _COM_SUN_STAR_CONTAINER_XCONTAINERLISTENER_HPP_ 37cdf0e10cSrcweir #include <com/sun/star/container/XContainerListener.hpp> 38cdf0e10cSrcweir #endif 39cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDB_XBOOKMARKSSUPPLIER_HPP_ 40cdf0e10cSrcweir #include <com/sun/star/sdb/XBookmarksSupplier.hpp> 41cdf0e10cSrcweir #endif 42cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDB_XQUERYDEFINITIONSSUPPLIER_HPP_ 43cdf0e10cSrcweir #include <com/sun/star/sdb/XQueryDefinitionsSupplier.hpp> 44cdf0e10cSrcweir #endif 45cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDBC_XISOLATEDCONNECTION_HPP_ 46cdf0e10cSrcweir #include <com/sun/star/sdbc/XIsolatedConnection.hpp> 47cdf0e10cSrcweir #endif 48cdf0e10cSrcweir #ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATTER_HPP_ 49cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormatter.hpp> 50cdf0e10cSrcweir #endif 51cdf0e10cSrcweir #ifndef _COM_SUN_STAR_DOCUMENT_XEVENTLISTENER_HPP_ 52cdf0e10cSrcweir #include <com/sun/star/document/XEventListener.hpp> 53cdf0e10cSrcweir #endif 54cdf0e10cSrcweir #ifndef _COM_SUN_STAR_UTIL_XFLUSHABLE_HPP_ 55cdf0e10cSrcweir #include <com/sun/star/util/XFlushable.hpp> 56cdf0e10cSrcweir #endif 57cdf0e10cSrcweir #ifndef _CPPUHELPER_PROPSHLP_HXX 58cdf0e10cSrcweir #include <cppuhelper/propshlp.hxx> 59cdf0e10cSrcweir #endif 60cdf0e10cSrcweir #ifndef _COMPHELPER_PROPERTY_ARRAY_HELPER_HXX_ 61cdf0e10cSrcweir #include <comphelper/proparrhlp.hxx> 62cdf0e10cSrcweir #endif 63cdf0e10cSrcweir #ifndef _CPPUHELPER_WEAKREF_HXX_ 64cdf0e10cSrcweir #include <cppuhelper/weakref.hxx> 65cdf0e10cSrcweir #endif 66cdf0e10cSrcweir #ifndef _CPPUHELPER_COMPBASE11_HXX_ 67cdf0e10cSrcweir #include <cppuhelper/compbase11.hxx> 68cdf0e10cSrcweir #endif 69cdf0e10cSrcweir #ifndef _COM_SUN_STAR_EMBED_XTRANSACTIONLISTENER_HPP_ 70cdf0e10cSrcweir #include <com/sun/star/embed/XTransactionListener.hpp> 71cdf0e10cSrcweir #endif 72cdf0e10cSrcweir #ifndef _DBASHARED_APITOOLS_HXX_ 73cdf0e10cSrcweir #include "apitools.hxx" 74cdf0e10cSrcweir #endif 75cdf0e10cSrcweir #ifndef _DBA_CORE_BOOKMARKCONTAINER_HXX_ 76cdf0e10cSrcweir #include "bookmarkcontainer.hxx" 77cdf0e10cSrcweir #endif 78cdf0e10cSrcweir #ifndef _VOS_REF_HXX_ 79cdf0e10cSrcweir #include <vos/ref.hxx> 80cdf0e10cSrcweir #endif 81cdf0e10cSrcweir #ifndef _STRING_HXX 82cdf0e10cSrcweir #include <tools/string.hxx> 83cdf0e10cSrcweir #endif 84cdf0e10cSrcweir #ifndef _CONNECTIVITY_COMMONTOOLS_HXX_ 85cdf0e10cSrcweir #include <connectivity/CommonTools.hxx> 86cdf0e10cSrcweir #endif 87cdf0e10cSrcweir #ifndef _COMPHELPER_BROADCASTHELPER_HXX_ 88cdf0e10cSrcweir #include <comphelper/broadcasthelper.hxx> 89cdf0e10cSrcweir #endif 90cdf0e10cSrcweir #ifndef _COM_SUN_STAR_BEANS_PROPERTYATTRIBUTE_HPP_ 91cdf0e10cSrcweir #include <com/sun/star/beans/PropertyAttribute.hpp> 92cdf0e10cSrcweir #endif 93cdf0e10cSrcweir #ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_ 94cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp> 95cdf0e10cSrcweir #endif 96cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDB_XCOMPLETEDCONNECTION_HPP_ 97cdf0e10cSrcweir #include <com/sun/star/sdb/XCompletedConnection.hpp> 98cdf0e10cSrcweir #endif 99cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_ 100cdf0e10cSrcweir #include <com/sun/star/sdbcx/XTablesSupplier.hpp> 101cdf0e10cSrcweir #endif 102cdf0e10cSrcweir #ifndef _COM_SUN_STAR_EMBED_XSTORAGE_HPP_ 103cdf0e10cSrcweir #include <com/sun/star/embed/XStorage.hpp> 104cdf0e10cSrcweir #endif 105cdf0e10cSrcweir #ifndef DBA_CONTENTHELPER_HXX 106cdf0e10cSrcweir #include "ContentHelper.hxx" 107cdf0e10cSrcweir #endif 108cdf0e10cSrcweir #ifndef _COM_SUN_STAR_DOCUMENT_XSTORAGEBASEDDOCUMENT_HPP_ 109cdf0e10cSrcweir #include <com/sun/star/document/XStorageBasedDocument.hpp> 110cdf0e10cSrcweir #endif 111cdf0e10cSrcweir #ifndef _COM_SUN_STAR_EMBED_ELEMENTMODES_HPP_ 112cdf0e10cSrcweir #include <com/sun/star/embed/ElementModes.hpp> 113cdf0e10cSrcweir #endif 114cdf0e10cSrcweir #ifndef _COM_SUN_STAR_UTIL_XREFRESHABLE_HPP_ 115cdf0e10cSrcweir #include <com/sun/star/util/XRefreshable.hpp> 116cdf0e10cSrcweir #endif 117cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDB_XDOCUMENTDATASOURCE_HPP_ 118cdf0e10cSrcweir #include <com/sun/star/sdb/XDocumentDataSource.hpp> 119cdf0e10cSrcweir #endif 120cdf0e10cSrcweir #ifndef _DBA_COREDATAACCESS_MODELIMPL_HXX_ 121cdf0e10cSrcweir #include "ModelImpl.hxx" 122cdf0e10cSrcweir #endif 123cdf0e10cSrcweir 124cdf0e10cSrcweir //........................................................................ 125cdf0e10cSrcweir namespace dbaccess 126cdf0e10cSrcweir { 127cdf0e10cSrcweir //........................................................................ 128cdf0e10cSrcweir 129cdf0e10cSrcweir class OSharedConnectionManager; 130cdf0e10cSrcweir class OChildCommitListen_Impl; 131cdf0e10cSrcweir 132cdf0e10cSrcweir //============================================================ 133cdf0e10cSrcweir //= ODatabaseSource 134cdf0e10cSrcweir //============================================================ 135cdf0e10cSrcweir typedef ::cppu::WeakComponentImplHelper11 < ::com::sun::star::lang::XServiceInfo 136cdf0e10cSrcweir , ::com::sun::star::sdbc::XDataSource 137cdf0e10cSrcweir , ::com::sun::star::sdb::XBookmarksSupplier 138cdf0e10cSrcweir , ::com::sun::star::sdb::XQueryDefinitionsSupplier 139cdf0e10cSrcweir , ::com::sun::star::sdb::XCompletedConnection 140cdf0e10cSrcweir , ::com::sun::star::container::XContainerListener 141cdf0e10cSrcweir , ::com::sun::star::sdbc::XIsolatedConnection 142cdf0e10cSrcweir , ::com::sun::star::sdbcx::XTablesSupplier 143cdf0e10cSrcweir , ::com::sun::star::util::XFlushable 144cdf0e10cSrcweir , ::com::sun::star::util::XFlushListener 145cdf0e10cSrcweir , ::com::sun::star::sdb::XDocumentDataSource 146cdf0e10cSrcweir > ODatabaseSource_Base; 147cdf0e10cSrcweir 148cdf0e10cSrcweir 149cdf0e10cSrcweir class ODatabaseSource :public ModelDependentComponent // must be first 150cdf0e10cSrcweir ,public ODatabaseSource_Base 151cdf0e10cSrcweir ,public ::cppu::OPropertySetHelper 152cdf0e10cSrcweir ,public ::comphelper::OPropertyArrayUsageHelper < ODatabaseSource > 153cdf0e10cSrcweir { 154cdf0e10cSrcweir friend class ODatabaseContext; 155cdf0e10cSrcweir friend class OConnection; 156cdf0e10cSrcweir friend class OSharedConnectionManager; 157cdf0e10cSrcweir 158cdf0e10cSrcweir private: 159cdf0e10cSrcweir using ODatabaseSource_Base::rBHelper; 160cdf0e10cSrcweir OBookmarkContainer m_aBookmarks; 161cdf0e10cSrcweir ::cppu::OInterfaceContainerHelper m_aFlushListeners; 162cdf0e10cSrcweir 163cdf0e10cSrcweir private: 164cdf0e10cSrcweir virtual ~ODatabaseSource(); 165cdf0e10cSrcweir 166cdf0e10cSrcweir public: 167cdf0e10cSrcweir ODatabaseSource( const ::rtl::Reference< ODatabaseModelImpl >& _pImpl ); 168cdf0e10cSrcweir DBContextAccessdbaccess::ODatabaseSource::DBContextAccess169cdf0e10cSrcweir struct DBContextAccess { friend class ODatabaseContext; private: DBContextAccess() { } }; 170cdf0e10cSrcweir 171cdf0e10cSrcweir /** sets a new name for the data source 172cdf0e10cSrcweir 173cdf0e10cSrcweir The name of a data source (our m_sName member) is the registration name, *if* the 174cdf0e10cSrcweir data source actually *is* registered at the database context. 175cdf0e10cSrcweir 176cdf0e10cSrcweir Normally, this name is passed at time of creation of the ODatabaseModelImpl instance, 177cdf0e10cSrcweir but if a newly creaed data source is registered, then it must be possible to propagate 178cdf0e10cSrcweir the new trgistration name. 179cdf0e10cSrcweir */ 180cdf0e10cSrcweir static void setName( 181cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XDocumentDataSource >& _rxDocument, 182cdf0e10cSrcweir const ::rtl::OUString& _rNewName, 183cdf0e10cSrcweir DBContextAccess 184cdf0e10cSrcweir ); 185cdf0e10cSrcweir 186cdf0e10cSrcweir // XContainerListener 187cdf0e10cSrcweir virtual void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException); 188cdf0e10cSrcweir virtual void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException); 189cdf0e10cSrcweir virtual void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException); 190cdf0e10cSrcweir // ::com::sun::star::sdbcx::XTablesSupplier 191cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getTables( ) throw(::com::sun::star::uno::RuntimeException); 192cdf0e10cSrcweir 193cdf0e10cSrcweir // com::sun::star::lang::XTypeProvider 194cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException); 195cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException); 196cdf0e10cSrcweir 197cdf0e10cSrcweir // com::sun::star::uno::XInterface 198cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException); 199cdf0e10cSrcweir virtual void SAL_CALL acquire() throw( ); 200cdf0e10cSrcweir virtual void SAL_CALL release() throw( ); 201cdf0e10cSrcweir 202cdf0e10cSrcweir // ::com::sun::star::lang::XServiceInfo 203cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); 204cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException); 205cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException); 206cdf0e10cSrcweir 207cdf0e10cSrcweir // ::com::sun::star::lang::XServiceInfo - static methods 208cdf0e10cSrcweir static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException ); 209cdf0e10cSrcweir static ::rtl::OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException ); 210cdf0e10cSrcweir static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 211cdf0e10cSrcweir SAL_CALL Create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&); 212cdf0e10cSrcweir 213cdf0e10cSrcweir // OComponentHelper 214cdf0e10cSrcweir virtual void SAL_CALL disposing(void); 215cdf0e10cSrcweir 216cdf0e10cSrcweir // com::sun::star::beans::XPropertySet 217cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 218cdf0e10cSrcweir // XEventListener 219cdf0e10cSrcweir virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException); 220cdf0e10cSrcweir 221cdf0e10cSrcweir // comphelper::OPropertyArrayUsageHelper 222cdf0e10cSrcweir virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const; 223cdf0e10cSrcweir 224cdf0e10cSrcweir // cppu::OPropertySetHelper 225cdf0e10cSrcweir virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); 226cdf0e10cSrcweir 227cdf0e10cSrcweir virtual sal_Bool SAL_CALL convertFastPropertyValue( 228cdf0e10cSrcweir ::com::sun::star::uno::Any & rConvertedValue, 229cdf0e10cSrcweir ::com::sun::star::uno::Any & rOldValue, 230cdf0e10cSrcweir sal_Int32 nHandle, 231cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue ) 232cdf0e10cSrcweir throw (::com::sun::star::lang::IllegalArgumentException); 233cdf0e10cSrcweir virtual void SAL_CALL setFastPropertyValue_NoBroadcast( 234cdf0e10cSrcweir sal_Int32 nHandle, 235cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue 236cdf0e10cSrcweir ) 237cdf0e10cSrcweir throw (::com::sun::star::uno::Exception); 238cdf0e10cSrcweir virtual void SAL_CALL getFastPropertyValue( ::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const; 239cdf0e10cSrcweir 240cdf0e10cSrcweir // ::com::sun::star::sdb::XCompletedConnection 241cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL connectWithCompletion( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& handler ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 242cdf0e10cSrcweir 243cdf0e10cSrcweir // ::com::sun::star::sdbc::XDataSource 244cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getConnection( const ::rtl::OUString& user, const ::rtl::OUString& password ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 245cdf0e10cSrcweir virtual void SAL_CALL setLoginTimeout( sal_Int32 seconds ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 246cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getLoginTimeout( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 247cdf0e10cSrcweir 248cdf0e10cSrcweir // :: com::sun::star::sdb::XBookmarksSupplier 249cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getBookmarks( ) throw (::com::sun::star::uno::RuntimeException); 250cdf0e10cSrcweir 251cdf0e10cSrcweir // :: com::sun::star::sdb::XQueryDefinitionsSupplier 252cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getQueryDefinitions( ) throw(::com::sun::star::uno::RuntimeException); 253cdf0e10cSrcweir 254cdf0e10cSrcweir // ::com::sun::star::sdbc::XIsolatedConnection 255cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getIsolatedConnection( const ::rtl::OUString& user, const ::rtl::OUString& password ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 256cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getIsolatedConnectionWithCompletion( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& handler ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 257cdf0e10cSrcweir 258cdf0e10cSrcweir // XFlushable 259cdf0e10cSrcweir virtual void SAL_CALL flush( ) throw (::com::sun::star::uno::RuntimeException); 260cdf0e10cSrcweir virtual void SAL_CALL addFlushListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XFlushListener >& l ) throw (::com::sun::star::uno::RuntimeException); 261cdf0e10cSrcweir virtual void SAL_CALL removeFlushListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XFlushListener >& l ) throw (::com::sun::star::uno::RuntimeException); 262cdf0e10cSrcweir 263cdf0e10cSrcweir // XFlushListener 264cdf0e10cSrcweir virtual void SAL_CALL flushed( const ::com::sun::star::lang::EventObject& rEvent ) throw (::com::sun::star::uno::RuntimeException); 265cdf0e10cSrcweir 266cdf0e10cSrcweir // XDocumentDataSource 267cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XOfficeDatabaseDocument > SAL_CALL getDatabaseDocument() throw (::com::sun::star::uno::RuntimeException); 268cdf0e10cSrcweir 269cdf0e10cSrcweir protected: 270cdf0e10cSrcweir // ModelDependentComponent overridables 271cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > getThis() const; 272cdf0e10cSrcweir 273cdf0e10cSrcweir private: 274cdf0e10cSrcweir // helper 275cdf0e10cSrcweir /** open a connection for the current settings. this is the simple connection we get from the driver 276cdf0e10cSrcweir manager, so it can be used as a master for a "high level" sdb connection. 277cdf0e10cSrcweir */ 278cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > buildLowLevelConnection( 279cdf0e10cSrcweir const ::rtl::OUString& _rUid, const ::rtl::OUString& _rPwd 280cdf0e10cSrcweir ); 281cdf0e10cSrcweir 282cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > buildIsolatedConnection( 283cdf0e10cSrcweir const rtl::OUString& user, const rtl::OUString& password 284cdf0e10cSrcweir ); 285cdf0e10cSrcweir 286cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getConnection( const ::rtl::OUString& user, const ::rtl::OUString& password , sal_Bool _bIsolated) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 287cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL connectWithCompletion( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& handler , sal_Bool _bIsolated) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 288cdf0e10cSrcweir 289cdf0e10cSrcweir void clearConnections(); 290cdf0e10cSrcweir 291cdf0e10cSrcweir protected: 292cdf0e10cSrcweir using ::cppu::OPropertySetHelper::getFastPropertyValue; 293cdf0e10cSrcweir }; 294cdf0e10cSrcweir 295cdf0e10cSrcweir //........................................................................ 296cdf0e10cSrcweir } // namespace dbaccess 297cdf0e10cSrcweir //........................................................................ 298cdf0e10cSrcweir 299cdf0e10cSrcweir #endif // _DBA_COREDATAACCESS_DATALINK_HXX_ 300cdf0e10cSrcweir 301cdf0e10cSrcweir 302