User: rt      
Date: 2008-01-30 07:47:06+0000
Modified:
   dba/connectivity/source/commontools/TConnection.cxx

Log:
 INTEGRATION: CWS dba24d (1.7.152); FILE MERGED
 2007/11/21 12:38:41 oj 1.7.152.1: #i68854# impl TypeSettingInfo for Oracle and 
some clean up

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: TConnection.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/TConnection.cxx?r1=1.7&r2=1.8
Delta lines:  +20 -0
--------------------
--- TConnection.cxx     2006-09-17 01:59:05+0000        1.7
+++ TConnection.cxx     2008-01-30 07:47:03+0000        1.8
@@ -41,12 +41,32 @@
 #ifndef _CPPUHELPER_TYPEPROVIDER_HXX_
 #include <cppuhelper/typeprovider.hxx>
 #endif
+#include <comphelper/types.hxx>
 
 using namespace connectivity;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
+using namespace com::sun::star::sdbc;
 using namespace::osl;
 
+//------------------------------------------------------------------------------
+void OMetaConnection::disposing()
+{
+       ::osl::MutexGuard aGuard(m_aMutex);
+    m_xMetaData = WeakReference< XDatabaseMetaData>();
+    for (OWeakRefArray::iterator i = m_aStatements.begin(); 
m_aStatements.end() != i; ++i)
+    {
+        try 
+        {
+            Reference< XInterface > xStatement( i->get() );
+            ::comphelper::disposeComponent( xStatement );
+        }
+               catch (DisposedException)
+        {
+               }
+    }
+       m_aStatements.clear();
+}
 //XUnoTunnel
 sal_Int64 SAL_CALL OMetaConnection::getSomething( const 
::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw 
(::com::sun::star::uno::RuntimeException)
 {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to