diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2014-10-06 19:39:51 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2014-10-06 19:39:51 +0200 |
commit | bf9339718984fc88e3f1cd3174b61eda5c13933b (patch) | |
tree | 6e53d762af702f5e6ba5db34df11f41478bf9e1d /connectivity/source | |
parent | fa8f2fdf45c168a25dd955ebd24780b4863d6cde (diff) |
Revert "ADO: don't override a virtual method to call the one of the parent"
This reverts commit fa8f2fdf45c168a25dd955ebd24780b4863d6cde.
Change-Id: I252e29648fb59a15379ba2f3b63d6914a7fc3a93
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/ado/ACallableStatement.cxx | 12 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AStatement.cxx | 15 | ||||
-rw-r--r-- | connectivity/source/inc/ado/ACallableStatement.hxx | 2 | ||||
-rw-r--r-- | connectivity/source/inc/ado/AStatement.hxx | 3 |
4 files changed, 32 insertions, 0 deletions
diff --git a/connectivity/source/drivers/ado/ACallableStatement.cxx b/connectivity/source/drivers/ado/ACallableStatement.cxx index abc2fb3413e1..8e0c51081725 100644 --- a/connectivity/source/drivers/ado/ACallableStatement.cxx +++ b/connectivity/source/drivers/ado/ACallableStatement.cxx @@ -210,4 +210,16 @@ Reference< XRef > SAL_CALL OCallableStatement::getRef( sal_Int32 /*columnIndex*/ } +void SAL_CALL OCallableStatement::acquire() throw() +{ + OPreparedStatement::acquire(); +} + +void SAL_CALL OCallableStatement::release() throw() +{ + OPreparedStatement::release(); +} + + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/connectivity/source/drivers/ado/AStatement.cxx b/connectivity/source/drivers/ado/AStatement.cxx index 733db83d58d1..ad4244e69272 100644 --- a/connectivity/source/drivers/ado/AStatement.cxx +++ b/connectivity/source/drivers/ado/AStatement.cxx @@ -817,6 +817,21 @@ OStatement::~OStatement() } IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.AStatement","com.sun.star.sdbc.Statement"); +void SAL_CALL OStatement_Base::acquire() throw() +{ + OStatement_BASE::acquire(); +} + +void SAL_CALL OStatement::acquire() throw() +{ + OStatement_Base::acquire(); +} + +void SAL_CALL OStatement::release() throw() +{ + OStatement_Base::release(); +} + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException) { return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper()); diff --git a/connectivity/source/inc/ado/ACallableStatement.hxx b/connectivity/source/inc/ado/ACallableStatement.hxx index eabdc3cc4111..02569ae985e6 100644 --- a/connectivity/source/inc/ado/ACallableStatement.hxx +++ b/connectivity/source/inc/ado/ACallableStatement.hxx @@ -45,6 +45,8 @@ namespace connectivity OCallableStatement( OConnection* _pConnection,const OTypeInfoMap& _TypeInfo,const OUString& sql ); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL acquire() throw(); + virtual void SAL_CALL release() throw(); // XRow virtual sal_Bool SAL_CALL wasNull( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); diff --git a/connectivity/source/inc/ado/AStatement.hxx b/connectivity/source/inc/ado/AStatement.hxx index 6724e94a78ee..356a37a80e7b 100644 --- a/connectivity/source/inc/ado/AStatement.hxx +++ b/connectivity/source/inc/ado/AStatement.hxx @@ -140,6 +140,7 @@ namespace connectivity // OComponentHelper virtual void SAL_CALL disposing(void); // XInterface + virtual void SAL_CALL acquire() throw(); virtual void SAL_CALL release() throw(); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); //XTypeProvider @@ -176,6 +177,8 @@ namespace connectivity DECLARE_SERVICE_INFO(); + virtual void SAL_CALL acquire() throw(); + virtual void SAL_CALL release() throw(); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); // XBatchExecution virtual void SAL_CALL addBatch( const OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); |