42#include <com/sun/star/sdbc/FetchDirection.hpp>
43#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
44#include <com/sun/star/sdbc/ResultSetType.hpp>
45#include <com/sun/star/sdbc/XResultSetUpdate.hpp>
46#include <com/sun/star/sdbc/XRowUpdate.hpp>
65 public css::sdbc::XResultSetUpdate,
66 public css::sdbc::XRowUpdate
77 const ::rtl::Reference< comphelper::RefCountedMutex > & mutex,
78 const css::uno::Reference< css::uno::XInterface > &owner,
79 std::vector< OUString >&& colNames,
80 std::vector< std::vector< css::uno::Any > >&& data,
84 std::vector< OUString >&& primaryKey)
106 css::sdbc::ResultSetConcurrency::UPDATABLE;
108 css::sdbc::ResultSetType::SCROLL_INSENSITIVE;
116 const ::rtl::Reference< comphelper::RefCountedMutex > & mutex,
117 const css::uno::Reference< css::uno::XInterface > &owner,
120 const OUString &schema,
121 const OUString &table,
122 std::vector< OUString > && primaryKey );
128 const css::uno::Type & reqType )
override;
131 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
135 virtual void SAL_CALL
insertRow( )
override;
136 virtual void SAL_CALL
updateRow( )
override;
137 virtual void SAL_CALL
deleteRow( )
override;
143 virtual void SAL_CALL
updateNull( sal_Int32 columnIndex )
override;
146 virtual void SAL_CALL
updateShort( sal_Int32 columnIndex, sal_Int16 x )
override;
147 virtual void SAL_CALL
updateInt( sal_Int32 columnIndex, sal_Int32 x )
override;
148 virtual void SAL_CALL
updateLong( sal_Int32 columnIndex, sal_Int64 x )
override;
149 virtual void SAL_CALL
updateFloat( sal_Int32 columnIndex,
float x )
override;
150 virtual void SAL_CALL
updateDouble( sal_Int32 columnIndex,
double x )
override;
151 virtual void SAL_CALL
updateString( sal_Int32 columnIndex,
const OUString& x )
override;
152 virtual void SAL_CALL
updateBytes( sal_Int32 columnIndex,
const css::uno::Sequence< sal_Int8 >& x )
override;
153 virtual void SAL_CALL
updateDate( sal_Int32 columnIndex,
const css::util::Date& x )
override;
154 virtual void SAL_CALL
updateTime( sal_Int32 columnIndex,
const css::util::Time& x )
override;
155 virtual void SAL_CALL
updateTimestamp( sal_Int32 columnIndex,
const css::util::DateTime& x )
override;
156 virtual void SAL_CALL
updateBinaryStream( sal_Int32 columnIndex,
const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length )
override;
157 virtual void SAL_CALL
updateCharacterStream( sal_Int32 columnIndex,
const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length )
override;
158 virtual void SAL_CALL
updateObject( sal_Int32 columnIndex,
const css::uno::Any& x )
override;
159 virtual void SAL_CALL
updateNumericObject( sal_Int32 columnIndex,
const css::uno::Any& x, sal_Int32
scale )
override;
163 static css::uno::Sequence< css::uno::Type >
getStaticTypes(
bool updateable );
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL release() noexcept override
css::uno::Any m_props[BASERESULTSET_SIZE]
static css::uno::Reference< css::sdbc::XCloseable > createFromPGResultSet(const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, ConnectionSettings **ppSettings, PGresult *result, const OUString &schema, const OUString &table, std::vector< OUString > &&primaryKey)
virtual void SAL_CALL updateString(sal_Int32 columnIndex, const OUString &x) override
ConnectionSettings ** m_ppSettings
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &reqType) override
void checkUpdate(sal_Int32 column)
virtual void SAL_CALL updateDouble(sal_Int32 columnIndex, double x) override
virtual void SAL_CALL updateRow() override
virtual void SAL_CALL updateNumericObject(sal_Int32 columnIndex, const css::uno::Any &x, sal_Int32 scale) override
virtual void SAL_CALL moveToCurrentRow() override
UpdateableResultSet(const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, std::vector< OUString > &&colNames, std::vector< std::vector< css::uno::Any > > &&data, ConnectionSettings **ppSettings, OUString schema, OUString table, std::vector< OUString > &&primaryKey)
virtual void SAL_CALL updateByte(sal_Int32 columnIndex, sal_Int8 x) override
static css::uno::Sequence< css::uno::Type > getStaticTypes(bool updateable)
virtual void SAL_CALL updateTimestamp(sal_Int32 columnIndex, const css::util::DateTime &x) override
virtual void SAL_CALL updateCharacterStream(sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
virtual void SAL_CALL updateObject(sal_Int32 columnIndex, const css::uno::Any &x) override
virtual void SAL_CALL deleteRow() override
virtual void SAL_CALL cancelRowUpdates() override
virtual void SAL_CALL updateDate(sal_Int32 columnIndex, const css::util::Date &x) override
virtual void SAL_CALL updateBoolean(sal_Int32 columnIndex, sal_Bool x) override
virtual void SAL_CALL updateInt(sal_Int32 columnIndex, sal_Int32 x) override
virtual void SAL_CALL insertRow() override
OUString buildWhereClause()
UpdateableFieldVector m_updateableField
virtual void SAL_CALL updateLong(sal_Int32 columnIndex, sal_Int64 x) override
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL updateFloat(sal_Int32 columnIndex, float x) override
virtual void SAL_CALL updateShort(sal_Int32 columnIndex, sal_Int16 x) override
std::vector< OUString > m_primaryKey
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL moveToInsertRow() override
virtual void SAL_CALL updateBinaryStream(sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
virtual void SAL_CALL updateTime(sal_Int32 columnIndex, const css::util::Time &x) override
virtual void SAL_CALL updateNull(sal_Int32 columnIndex) override
virtual void SAL_CALL updateBytes(sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 > &x) override
const sal_Int32 BASERESULTSET_RESULT_SET_CONCURRENCY
const sal_Int32 BASERESULTSET_FETCH_DIRECTION
const sal_Int32 BASERESULTSET_IS_BOOKMARKABLE
std::vector< UpdateableField > UpdateableFieldVector
const sal_Int32 BASERESULTSET_RESULT_SET_TYPE
const sal_Int32 BASERESULTSET_ESCAPE_PROCESSING