Kaydet (Commit) 4f1787a5 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

ADO driver: don't pretend to implement an interface one does not

Change-Id: I6234974cfc1b7650a35b8f7b9a4132acf797c91b
üst 59accebd
......@@ -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();
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment