42#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
43#include <com/sun/star/sdbc/XRow.hpp>
44#include <com/sun/star/sdbc/XCloseable.hpp>
45#include <com/sun/star/sdbc/XColumnLocate.hpp>
59#define BASERESULTSET_SIZE 7
61typedef ::cppu::WeakComponentImplHelper< css::sdbc::XCloseable,
62 css::sdbc::XResultSetMetaDataSupplier,
63 css::sdbc::XResultSet,
65 css::sdbc::XColumnLocate
72 css::uno::Reference< css::uno::XInterface >
m_owner;
73 css::uno::Reference< css::script::XTypeConverter >
m_tc;
92 virtual css::uno::Any
getValue( sal_Int32 columnIndex ) = 0;
94 const css::uno::Any &str,
const css::uno::Type &
type );
98 const ::rtl::Reference< comphelper::RefCountedMutex > & mutex,
99 const css::uno::Reference< css::uno::XInterface > &owner,
101 sal_Int32 columnCount,
102 const css::uno::Reference< css::script::XTypeConverter > &tc );
106 virtual void SAL_CALL
acquire() noexcept
override { BaseResultSet_BASE::acquire(); }
107 virtual void SAL_CALL
release() noexcept
override { BaseResultSet_BASE::release(); }
109 const css::uno::Type & reqType )
override;
116 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
131 virtual void SAL_CALL
afterLast( )
override;
134 virtual sal_Int32 SAL_CALL
getRow( )
override;
142 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
getStatement()
override;
147 virtual OUString SAL_CALL
getString( sal_Int32 columnIndex )
override;
150 virtual sal_Int16 SAL_CALL
getShort( sal_Int32 columnIndex )
override;
151 virtual sal_Int32 SAL_CALL
getInt( sal_Int32 columnIndex )
override;
152 virtual sal_Int64 SAL_CALL
getLong( sal_Int32 columnIndex )
override;
153 virtual float SAL_CALL
getFloat( sal_Int32 columnIndex )
override;
154 virtual double SAL_CALL
getDouble( sal_Int32 columnIndex )
override;
155 virtual css::uno::Sequence< sal_Int8 > SAL_CALL
getBytes( sal_Int32 columnIndex )
override;
156 virtual css::util::Date SAL_CALL
getDate( sal_Int32 columnIndex )
override;
157 virtual css::util::Time SAL_CALL
getTime( sal_Int32 columnIndex )
override;
158 virtual css::util::DateTime SAL_CALL
getTimestamp( sal_Int32 columnIndex )
override;
159 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL
getBinaryStream( sal_Int32 columnIndex )
override;
160 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL
getCharacterStream( sal_Int32 columnIndex )
override;
161 virtual css::uno::Any SAL_CALL
getObject(
162 sal_Int32 columnIndex,
163 const css::uno::Reference< css::container::XNameAccess >& typeMap )
override;
164 virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL
getRef( sal_Int32 columnIndex )
override;
165 virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL
getBlob( sal_Int32 columnIndex )
override;
166 virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL
getClob( sal_Int32 columnIndex )
override;
167 virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL
getArray( sal_Int32 columnIndex )
override;
177 css::uno::Any & rConvertedValue,
178 css::uno::Any & rOldValue,
180 const css::uno::Any& rValue )
override;
184 const css::uno::Any& rValue )
override;
186 using ::cppu::OPropertySetHelper::getFastPropertyValue;
189 css::uno::Any& rValue,
190 sal_Int32 nHandle )
const override;
193 css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo()
override;
196 virtual void SAL_CALL
disposing()
override;
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL relative(sal_Int32 rows) override
css::uno::Reference< css::uno::XInterface > m_owner
virtual sal_Bool SAL_CALL getBoolean(sal_Int32 columnIndex) override
BaseResultSet(const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, sal_Int32 rowCount, sal_Int32 columnCount, const css::uno::Reference< css::script::XTypeConverter > &tc)
virtual sal_Bool SAL_CALL rowUpdated() override
virtual sal_Int64 SAL_CALL getLong(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL rowInserted() override
virtual css::util::Date SAL_CALL getDate(sal_Int32 columnIndex) override
virtual void checkClosed()=0
mutex should be locked before called
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement() override
virtual sal_Int16 SAL_CALL getShort(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL previous() override
virtual void SAL_CALL beforeFirst() override
virtual sal_Int32 SAL_CALL getRow() override
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob(sal_Int32 columnIndex) override
css::uno::Reference< css::script::XTypeConverter > m_tc
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef(sal_Int32 columnIndex) override
virtual sal_Int8 SAL_CALL getByte(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL isAfterLast() override
virtual sal_Int32 SAL_CALL getInt(sal_Int32 columnIndex) override
::rtl::Reference< comphelper::RefCountedMutex > m_xMutex
void checkColumnIndex(sal_Int32 index)
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual sal_Bool SAL_CALL rowDeleted() override
virtual css::uno::Any SAL_CALL getObject(sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL disposing() override
virtual double SAL_CALL getDouble(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL last() override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL wasNull() override
virtual css::util::DateTime SAL_CALL getTimestamp(sal_Int32 columnIndex) override
css::uno::Any convertTo(const css::uno::Any &str, const css::uno::Type &type)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::util::Time SAL_CALL getTime(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL isLast() override
virtual sal_Bool SAL_CALL next() override
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob(sal_Int32 columnIndex) override
virtual cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream(sal_Int32 columnIndex) override
virtual sal_Bool SAL_CALL absolute(sal_Int32 row) override
virtual float SAL_CALL getFloat(sal_Int32 columnIndex) override
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray(sal_Int32 columnIndex) override
virtual void SAL_CALL release() noexcept override
css::uno::Any m_props[BASERESULTSET_SIZE]
virtual void SAL_CALL refreshRow() 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 SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual ~BaseResultSet() override
virtual css::uno::Any getValue(sal_Int32 columnIndex)=0
virtual sal_Bool SAL_CALL first() override
virtual void SAL_CALL afterLast() override
virtual sal_Bool SAL_CALL isFirst() override
virtual sal_Bool SAL_CALL isBeforeFirst() override
virtual OUString SAL_CALL getString(sal_Int32 columnIndex) override
const sal_Int32 BASERESULTSET_RESULT_SET_CONCURRENCY
const sal_Int32 BASERESULTSET_FETCH_DIRECTION
const sal_Int32 BASERESULTSET_IS_BOOKMARKABLE
const sal_Int32 BASERESULTSET_RESULT_SET_TYPE
::cppu::WeakComponentImplHelper< css::sdbc::XCloseable, css::sdbc::XResultSetMetaDataSupplier, css::sdbc::XResultSet, css::sdbc::XRow, css::sdbc::XColumnLocate > BaseResultSet_BASE
const sal_Int32 BASERESULTSET_CURSOR_NAME
const sal_Int32 BASERESULTSET_ESCAPE_PROCESSING
const sal_Int32 BASERESULTSET_FETCH_SIZE
#define BASERESULTSET_SIZE