summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-06-16 18:49:16 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-10-06 18:59:23 +0200
commit4f1787a5283876857dff391c827e7b454000ba0a (patch)
tree3c29bf057926e5c283d85930fba18a03ebc7b822 /connectivity
parent59accebda6a29307d8be9bc9be0c9fab141b4148 (diff)
ADO driver: don't pretend to implement an interface one does not
Change-Id: I6234974cfc1b7650a35b8f7b9a4132acf797c91b
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/APreparedStatement.cxx17
-rw-r--r--connectivity/source/inc/ado/APreparedStatement.hxx9
2 files changed, 4 insertions, 22 deletions
diff --git a/connectivity/source/drivers/ado/APreparedStatement.cxx b/connectivity/source/drivers/ado/APreparedStatement.cxx
index c862d05b694f..691408e1a9f1 100644
--- a/connectivity/source/drivers/ado/APreparedStatement.cxx
+++ b/connectivity/source/drivers/ado/APreparedStatement.cxx
@@ -98,7 +98,6 @@ Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(Runt
return aRet.hasValue() ? aRet : ::cppu::queryInterface( rType,
static_cast< XPreparedStatement*>(this),
static_cast< XParameters*>(this),
- static_cast< XPreparedBatchExecution*>(this),
static_cast< XResultSetMetaDataSupplier*>(this));
}
@@ -106,8 +105,7 @@ Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(Runt
{
::cppu::OTypeCollection aTypes( cppu::UnoType<XPreparedStatement>::get(),
cppu::UnoType<XParameters>::get(),
- cppu::UnoType<XResultSetMetaDataSupplier>::get(),
- cppu::UnoType<XPreparedBatchExecution>::get());
+ cppu::UnoType<XResultSetMetaDataSupplier>::get());
return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_Base::getTypes());
}
@@ -446,19 +444,6 @@ void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, Runtim
}
}
-void SAL_CALL OPreparedStatement::clearBatch( ) throw(SQLException, RuntimeException)
-{
-}
-
-void SAL_CALL OPreparedStatement::addBatch( ) throw(SQLException, RuntimeException)
-{
-}
-
-Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch( ) throw(SQLException, RuntimeException)
-{
- return Sequence< sal_Int32 > ();
-}
-
void SAL_CALL OPreparedStatement::acquire() throw()
{
OStatement_Base::acquire();
diff --git a/connectivity/source/inc/ado/APreparedStatement.hxx b/connectivity/source/inc/ado/APreparedStatement.hxx
index 40b5ddfbca0a..3a46f1faf509 100644
--- a/connectivity/source/inc/ado/APreparedStatement.hxx
+++ b/connectivity/source/inc/ado/APreparedStatement.hxx
@@ -24,10 +24,12 @@
#include <com/sun/star/sdbc/XPreparedStatement.hpp>
#include <com/sun/star/sdbc/XParameters.hpp>
#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
-#include <com/sun/star/sdbc/XPreparedBatchExecution.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
+// TODO: implement ::com::sun::star::sdbc::XPreparedBatchExecution
+// (empty implementations removed on 2014-06-16)
+
namespace connectivity
{
class OSQLParseNode;
@@ -37,7 +39,6 @@ namespace connectivity
class OPreparedStatement : public OStatement_Base,
public ::com::sun::star::sdbc::XPreparedStatement,
public ::com::sun::star::sdbc::XParameters,
- public ::com::sun::star::sdbc::XPreparedBatchExecution,
public ::com::sun::star::sdbc::XResultSetMetaDataSupplier,
public ::com::sun::star::lang::XServiceInfo
@@ -97,10 +98,6 @@ namespace connectivity
virtual void SAL_CALL setClob( sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob >& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setArray( sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray >& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL clearParameters( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- // XPreparedBatchExecution
- virtual void SAL_CALL addBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL clearBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
// XCloseable
virtual void SAL_CALL close( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
// XResultSetMetaDataSupplier