20#ifndef INCLUDED_UCBHELPER_RESULTSET_HXX
21#define INCLUDED_UCBHELPER_RESULTSET_HXX
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/lang/XComponent.hpp>
25#include <com/sun/star/ucb/XContentAccess.hpp>
26#include <com/sun/star/sdbc/XResultSet.hpp>
27#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
28#include <com/sun/star/sdbc/XRow.hpp>
29#include <com/sun/star/sdbc/XCloseable.hpp>
30#include <com/sun/star/beans/XPropertySet.hpp>
60 public cppu::WeakImplHelper<
61 css::lang::XServiceInfo,
62 css::lang::XComponent,
63 css::ucb::XContentAccess,
64 css::sdbc::XResultSet,
65 css::sdbc::XResultSetMetaDataSupplier,
67 css::sdbc::XCloseable,
68 css::beans::XPropertySet>
82 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
83 const css::uno::Sequence< css::beans::Property >& rProperties,
96 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
97 const css::uno::Sequence< css::beans::Property >& rProperties,
99 const css::uno::Reference< css::ucb::XCommandEnvironment >& rxEnv );
108 virtual void SAL_CALL
110 virtual void SAL_CALL
111 addEventListener(
const css::uno::Reference< css::lang::XEventListener >& Listener )
override;
112 virtual void SAL_CALL
113 removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& Listener )
override;
116 virtual OUString SAL_CALL
117 queryContentIdentifierString()
override;
118 virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL
119 queryContentIdentifier()
override;
120 virtual css::uno::Reference< css::ucb::XContent > SAL_CALL
121 queryContent()
override;
124 virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL
125 getMetaData()
override;
131 isBeforeFirst()
override;
133 isAfterLast()
override;
138 virtual void SAL_CALL
139 beforeFirst()
override;
140 virtual void SAL_CALL
141 afterLast()
override;
146 virtual sal_Int32 SAL_CALL
151 relative( sal_Int32 rows )
override;
154 virtual void SAL_CALL
155 refreshRow()
override;
157 rowUpdated()
override;
159 rowInserted()
override;
161 rowDeleted()
override;
162 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
163 getStatement()
override;
168 virtual OUString SAL_CALL
169 getString( sal_Int32 columnIndex )
override;
171 getBoolean( sal_Int32 columnIndex )
override;
173 getByte( sal_Int32 columnIndex )
override;
174 virtual sal_Int16 SAL_CALL
175 getShort( sal_Int32 columnIndex )
override;
176 virtual sal_Int32 SAL_CALL
177 getInt( sal_Int32 columnIndex )
override;
178 virtual sal_Int64 SAL_CALL
179 getLong( sal_Int32 columnIndex )
override;
180 virtual float SAL_CALL
181 getFloat( sal_Int32 columnIndex )
override;
182 virtual double SAL_CALL
183 getDouble( sal_Int32 columnIndex )
override;
184 virtual css::uno::Sequence< sal_Int8 > SAL_CALL
185 getBytes( sal_Int32 columnIndex )
override;
186 virtual css::util::Date SAL_CALL
187 getDate( sal_Int32 columnIndex )
override;
188 virtual css::util::Time SAL_CALL
189 getTime( sal_Int32 columnIndex )
override;
190 virtual css::util::DateTime SAL_CALL
191 getTimestamp( sal_Int32 columnIndex )
override;
192 virtual css::uno::Reference<
193 css::io::XInputStream > SAL_CALL
194 getBinaryStream( sal_Int32 columnIndex )
override;
195 virtual css::uno::Reference<
196 css::io::XInputStream > SAL_CALL
197 getCharacterStream( sal_Int32 columnIndex )
override;
198 virtual css::uno::Any SAL_CALL
199 getObject( sal_Int32 columnIndex,
200 const css::uno::Reference< css::container::XNameAccess >& typeMap )
override;
201 virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL
202 getRef( sal_Int32 columnIndex )
override;
203 virtual css::uno::Reference<
204 css::sdbc::XBlob > SAL_CALL
205 getBlob( sal_Int32 columnIndex )
override;
206 virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL
207 getClob( sal_Int32 columnIndex )
override;
208 virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL
209 getArray( sal_Int32 columnIndex )
override;
212 virtual void SAL_CALL
216 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
217 getPropertySetInfo()
override;
218 virtual void SAL_CALL
220 const css::uno::Any& aValue )
override;
221 virtual css::uno::Any SAL_CALL
223 virtual void SAL_CALL
224 addPropertyChangeListener(
const OUString& aPropertyName,
225 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
226 virtual void SAL_CALL
227 removePropertyChangeListener(
const OUString& aPropertyName,
228 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
229 virtual void SAL_CALL
230 addVetoableChangeListener(
const OUString& PropertyName,
231 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
232 virtual void SAL_CALL
233 removeVetoableChangeListener(
const OUString& PropertyName,
234 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
246 void propertyChanged(
247 const css::beans::PropertyChangeEvent& rEvt )
const;
256 void rowCountChanged( sal_uInt32 nOld, sal_uInt32 nNew );
262 void rowCountFinal();
270 const css::uno::Sequence< css::beans::Property >&
271 getProperties()
const;
279 const css::uno::Reference< css::ucb::XCommandEnvironment >&
324 virtual css::uno::Reference< css::ucb::XContentIdentifier >
334 virtual css::uno::Reference< css::ucb::XContent >
392 virtual css::uno::Reference< css::sdbc::XRow >
This is the base class for an object that supplies data to a result set.
virtual void close()=0
This method will be called by the resultset implementation in order to instruct the data supplier to ...
virtual css::uno::Reference< css::ucb::XContent > queryContent(sal_uInt32 nIndex)=0
This method returns the content at the specified index.
virtual css::uno::Reference< css::ucb::XContentIdentifier > queryContentIdentifier(sal_uInt32 nIndex)=0
This method returns the identifier of the content at the specified index.
virtual sal_uInt32 totalCount()=0
This method returns the total count of objects in the logical data array of the supplier.
virtual OUString queryContentIdentifierString(sal_uInt32 nIndex)=0
This method returns the identifier string of the content at the specified index.
virtual css::uno::Reference< css::sdbc::XRow > queryPropertyValues(sal_uInt32 nIndex)=0
This method returns an object for accessing the property values at the specified index.
rtl::Reference< ResultSet > getResultSet() const
This method returns the resultset this supplier belongs to.
virtual bool getResult(sal_uInt32 nIndex)=0
This method returns whether there is a content at the specified index.
virtual sal_uInt32 currentCount()=0
This method returns the count of objects obtained so far.
virtual void validate()=0
This method will be called by the resultset implementation in order check, whether an error has occur...
virtual void releasePropertyValues(sal_uInt32 nIndex)=0
This method is called to instruct the supplier to release the (possibly present) property values at t...
virtual bool isCountFinal()=0
This method returns whether the value returned by currentCount() is "final".
This is an implementation of the service com.sun.star.ucb.ContentResultSet.
ResultSet(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProperties, const rtl::Reference< ResultSetDataSupplier > &rDataSupplier)
Construction.
std::unique_ptr< ResultSet_Impl > m_pImpl
ResultSet(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProperties, const rtl::Reference< ResultSetDataSupplier > &rDataSupplier, const css::uno::Reference< css::ucb::XCommandEnvironment > &rxEnv)
Construction.
B2DTuple absolute(const B2DTuple &rTup)
double getDouble(const Any &_rAny)
float getFloat(const Any &_rAny)
OUString getString(const Any &_rAny)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
css::uno::Environment getEnvironment(OUString const &name, std::u16string_view implementation)
constexpr OUStringLiteral first
constexpr OUStringLiteral last
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
constexpr OUStringLiteral RESULTSET_SERVICE_NAME
#define UCBHELPER_DLLPUBLIC