25#include <com/sun/star/sdbc/SQLException.hpp>
26#include <com/sun/star/sdbc/XConnection.hpp>
35 typedef ::cppu::WeakComponentImplHelper< css::sdbc::XConnection
44 virtual void SAL_CALL
disposing()
override;
47 explicit OSharedConnection(css::uno::Reference< css::uno::XAggregation >& _rxProxyConnection);
51 virtual void SAL_CALL
acquire() noexcept
override { OSharedConnection_BASE::acquire(); }
52 virtual void SAL_CALL
release() noexcept
override { OSharedConnection_BASE::release(); }
53 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes( )
override
55 return ::comphelper::concatSequences(
56 OSharedConnection_BASE::getTypes(),
61 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& _rType )
override
63 css::uno::Any aReturn = OSharedConnection_BASE::queryInterface(_rType);
64 if ( !aReturn.hasValue() )
70 virtual void SAL_CALL
close( )
override
73 ::osl::MutexGuard aGuard(
m_aMutex );
74 ::connectivity::checkDisposed(rBHelper.bDisposed);
82 throw css::sdbc::SQLException(
"This call is not allowed when sharing connections.",*
this,
"S10000",0,css::uno::Any());
86 throw css::sdbc::SQLException(
"This call is not allowed when sharing connections.",*
this,
"S10000",0,css::uno::Any());
88 virtual void SAL_CALL
setCatalog(
const OUString& )
override
90 throw css::sdbc::SQLException(
"This call is not allowed when sharing connections.",*
this,
"S10000",0,css::uno::Any());
94 throw css::sdbc::SQLException(
"This call is not allowed when sharing connections.",*
this,
"S10000",0,css::uno::Any());
96 virtual void SAL_CALL
setTypeMap(
const css::uno::Reference< css::container::XNameAccess >& )
override
98 throw css::sdbc::SQLException(
"This call is not allowed when sharing connections.",*
this,
"S10000",0,css::uno::Any());
101 virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL
createStatement( )
override;
102 virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL
prepareStatement(
const OUString&
sql )
override;
103 virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL
prepareCall(
const OUString&
sql )
override;
104 virtual OUString SAL_CALL
nativeSQL(
const OUString&
sql )
override;
106 virtual void SAL_CALL
commit( )
override;
107 virtual void SAL_CALL
rollback( )
override;
109 virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL
getMetaData( )
override;
111 virtual OUString SAL_CALL
getCatalog( )
override;
113 virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL
getTypeMap( )
override;
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &_rType) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
mutable::osl::Mutex m_aMutex
virtual OUString SAL_CALL nativeSQL(const OUString &sql) override
virtual void SAL_CALL setTransactionIsolation(sal_Int32) override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTypeMap() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &_rType) override
virtual sal_Bool SAL_CALL isReadOnly() override
virtual void SAL_CALL setCatalog(const OUString &) override
virtual void SAL_CALL commit() override
virtual OUString SAL_CALL getCatalog() override
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareCall(const OUString &sql) override
virtual void SAL_CALL disposing() override
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareStatement(const OUString &sql) override
virtual sal_Bool SAL_CALL getAutoCommit() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual sal_Bool SAL_CALL isClosed() override
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData() override
virtual ~OSharedConnection() override
OSharedConnection(css::uno::Reference< css::uno::XAggregation > &_rxProxyConnection)
virtual void SAL_CALL close() override
virtual void SAL_CALL rollback() override
virtual sal_Int32 SAL_CALL getTransactionIsolation() override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL setTypeMap(const css::uno::Reference< css::container::XNameAccess > &) override
virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL createStatement() override
virtual void SAL_CALL setReadOnly(sal_Bool) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL setAutoCommit(sal_Bool) override
virtual void SAL_CALL release() noexcept override
::connectivity::OConnectionWrapper OSharedConnection_BASE2
::cppu::WeakComponentImplHelper< css::sdbc::XConnection > OSharedConnection_BASE