diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-01-22 06:24:53 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-01-22 06:24:53 +0000 |
commit | f915c6e17da63cf3eed6697db88c6d68af8ef3c5 (patch) | |
tree | 736f043ad0169b9a11ff3fe3c8b6d1740210b783 /connectivity/source/drivers/adabas/BConnection.cxx | |
parent | 5399b56034402829b2bc6db9aee2d8b95c5dc400 (diff) |
#82632# fetchscroll
Diffstat (limited to 'connectivity/source/drivers/adabas/BConnection.cxx')
-rw-r--r-- | connectivity/source/drivers/adabas/BConnection.cxx | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/connectivity/source/drivers/adabas/BConnection.cxx b/connectivity/source/drivers/adabas/BConnection.cxx index d491ff5f26..3159b0bb6d 100644 --- a/connectivity/source/drivers/adabas/BConnection.cxx +++ b/connectivity/source/drivers/adabas/BConnection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: BConnection.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: oj $ $Date: 2000-11-03 14:08:03 $ + * last change: $Author: oj $ $Date: 2001-01-22 07:21:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -76,7 +76,12 @@ #ifndef _CONNECTIVITY_ODBC_ODATABASEMETADATA_HXX_ #include "adabas/BDatabaseMetaData.hxx" #endif - +#ifndef CONNECTIVITY_ADABAS_STATEMENT_HXX +#include "adabas/BStatement.hxx" +#endif +#ifndef CONNECTIVITY_ADABAS_PREPAREDSTATEMENT_HXX +#include "adabas/BPreparedStatement.hxx" +#endif #ifndef _COM_SUN_STAR_LANG_DISPOSEDEXCEPTION_HPP_ #include <com/sun/star/lang/DisposedException.hpp> #endif @@ -234,4 +239,30 @@ sal_Bool OAdabasConnection::isStarted() return sal_True; } +// -------------------------------------------------------------------------------- +Reference< XStatement > SAL_CALL OAdabasConnection::createStatement( ) throw(SQLException, RuntimeException) +{ + ::osl::MutexGuard aGuard( m_aMutex ); + if (OConnection_BASE2::rBHelper.bDisposed) + throw DisposedException(); + Reference< XStatement > xReturn = new OAdabasStatement(this); + m_aStatements.push_back(WeakReferenceHelper(xReturn)); + return xReturn; +} +// -------------------------------------------------------------------------------- +Reference< XPreparedStatement > SAL_CALL OAdabasConnection::prepareStatement( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) +{ + ::osl::MutexGuard aGuard( m_aMutex ); + if (OConnection_BASE2::rBHelper.bDisposed) + throw DisposedException(); + if(m_aTypeInfo.empty()) + buildTypeInfo(); + + Reference< XPreparedStatement > xReturn = new OAdabasPreparedStatement(this,m_aTypeInfo,sql); + m_aStatements.push_back(WeakReferenceHelper(xReturn)); + return xReturn; +} +// ----------------------------------------------------------------------------- + + |