50#include <com/sun/star/sdbc/XMultipleResults.hpp>
51#include <com/sun/star/sdbc/XGeneratedResultSet.hpp>
52#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
67#define STATEMENT_SIZE 9
69typedef ::cppu::WeakComponentImplHelper< css::sdbc::XStatement,
70 css::sdbc::XCloseable,
71 css::sdbc::XWarningsSupplier,
72 css::sdbc::XMultipleResults,
73 css::sdbc::XGeneratedResultSet,
74 css::sdbc::XResultSetMetaDataSupplier
98 const css::uno::Reference< css::sdbc::XConnection> & con,
103 virtual void SAL_CALL
acquire() noexcept
override { Statement_BASE::acquire(); }
104 virtual void SAL_CALL
release() noexcept
override { Statement_BASE::release(); }
105 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & reqType )
override;
108 virtual void SAL_CALL
close( )
override;
111 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
executeQuery(
112 const OUString&
sql )
override;
115 virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL
getConnection( )
override;
118 virtual css::uno::Any SAL_CALL
getWarnings( )
override;
122 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
129 css::uno::Any & rConvertedValue,
130 css::uno::Any & rOldValue,
132 const css::uno::Any& rValue )
override;
136 const css::uno::Any& rValue )
override;
138 using ::cppu::OPropertySetHelper::getFastPropertyValue;
141 css::uno::Any& rValue,
142 sal_Int32 nHandle )
const override;
145 css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo()
override;
148 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
152 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
getResultSet( )
override;
157 virtual void SAL_CALL
disposing()
override;
161 virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL
getMetaData( )
override;
182 css::uno::Reference< css::uno::XInterface >
owner;
190 const css::uno::Reference< css::sdbc::XConnection > &connection,
192 std::u16string_view lastTableInserted,
193 const OString & lastQuery );
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSet() override
virtual void SAL_CALL release() noexcept override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &reqType) override
virtual void SAL_CALL close() override
sal_Int32 m_multipleResultUpdateCount
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData() override
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
css::uno::Reference< css::sdbc::XCloseable > m_lastResultset
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL disposing() override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
ConnectionSettings * m_pSettings
virtual ~Statement() override
::rtl::Reference< comphelper::RefCountedMutex > m_xMutex
Statement(const rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &con, struct ConnectionSettings *pSettings)
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL clearWarnings() override
OUString m_lastTableInserted
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getGeneratedValues() override
sal_Int32 m_lastOidInserted
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual sal_Int32 SAL_CALL getUpdateCount() override
virtual sal_Bool SAL_CALL execute(const OUString &sql) override
css::uno::Any m_props[STATEMENT_SIZE]
virtual cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Any SAL_CALL getWarnings() override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
void raiseSQLException(std::u16string_view sql, const char *errorMsg)
virtual sal_Int32 SAL_CALL executeUpdate(const OUString &sql) override
void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery(const OUString &sql) override
virtual sal_Bool SAL_CALL getMoreResults() override
css::uno::Reference< css::sdbc::XConnection > m_connection
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection() override
bool m_multipleResultAvailable
const sal_Int32 STATEMENT_RESULT_SET_TYPE
const sal_Int32 STATEMENT_FETCH_SIZE
const sal_Int32 STATEMENT_CURSOR_NAME
::cppu::WeakComponentImplHelper< css::sdbc::XStatement, css::sdbc::XCloseable, css::sdbc::XWarningsSupplier, css::sdbc::XMultipleResults, css::sdbc::XGeneratedResultSet, css::sdbc::XResultSetMetaDataSupplier > Statement_BASE
const sal_Int32 STATEMENT_RESULT_SET_CONCURRENCY
const sal_Int32 STATEMENT_MAX_FIELD_SIZE
const sal_Int32 STATEMENT_ESCAPE_PROCESSING
const sal_Int32 STATEMENT_FETCH_DIRECTION
Reference< XResultSet > getGeneratedValuesFromLastInsert(ConnectionSettings *pConnectionSettings, const Reference< XConnection > &connection, sal_Int32 nLastOid, std::u16string_view lastTableInserted, const OString &lastQuery)
bool executePostgresCommand(const OString &cmd, struct CommandData *data)
const sal_Int32 STATEMENT_QUERY_TIME_OUT
const sal_Int32 STATEMENT_MAX_ROWS
OUString * pLastTableInserted
css::uno::Reference< css::uno::XInterface > owner
sal_Int32 * pMultipleResultUpdateCount
css::uno::Reference< css::sdbc::XCloseable > * pLastResultset
sal_Int32 * pLastOidInserted
::rtl::Reference< comphelper::RefCountedMutex > refMutex
bool * pMultipleResultAvailable
ConnectionSettings ** ppSettings
css::uno::Reference< css::sdbcx::XTablesSupplier > tableSupplier