LibreOffice Module ucbhelper (master)  1
Public Member Functions | Private Attributes | List of all members
ucbhelper::ResultSet Class Referencefinal

This is an implementation of the service com.sun.star.ucb.ContentResultSet. More...

#include <resultset.hxx>

Inheritance diagram for ucbhelper::ResultSet:
[legend]
Collaboration diagram for ucbhelper::ResultSet:
[legend]

Public Member Functions

 ResultSet (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProperties, const rtl::Reference< ResultSetDataSupplier > &rDataSupplier)
 Construction. More...
 
 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. More...
 
virtual ~ResultSet () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual OUString SAL_CALL queryContentIdentifierString () override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL queryContentIdentifier () override
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent () override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
virtual sal_Bool SAL_CALL next () override
 
virtual sal_Bool SAL_CALL isBeforeFirst () override
 
virtual sal_Bool SAL_CALL isAfterLast () override
 
virtual sal_Bool SAL_CALL isFirst () override
 
virtual sal_Bool SAL_CALL isLast () override
 
virtual void SAL_CALL beforeFirst () override
 
virtual void SAL_CALL afterLast () override
 
virtual sal_Bool SAL_CALL first () override
 
virtual sal_Bool SAL_CALL last () override
 
virtual sal_Int32 SAL_CALL getRow () override
 
virtual sal_Bool SAL_CALL absolute (sal_Int32 row) override
 
virtual sal_Bool SAL_CALL relative (sal_Int32 rows) override
 
virtual sal_Bool SAL_CALL previous () override
 
virtual void SAL_CALL refreshRow () override
 
virtual sal_Bool SAL_CALL rowUpdated () override
 
virtual sal_Bool SAL_CALL rowInserted () override
 
virtual sal_Bool SAL_CALL rowDeleted () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement () override
 
virtual sal_Bool SAL_CALL wasNull () override
 
virtual OUString SAL_CALL getString (sal_Int32 columnIndex) override
 
virtual sal_Bool SAL_CALL getBoolean (sal_Int32 columnIndex) override
 
virtual sal_Int8 SAL_CALL getByte (sal_Int32 columnIndex) override
 
virtual sal_Int16 SAL_CALL getShort (sal_Int32 columnIndex) override
 
virtual sal_Int32 SAL_CALL getInt (sal_Int32 columnIndex) override
 
virtual sal_Int64 SAL_CALL getLong (sal_Int32 columnIndex) override
 
virtual float SAL_CALL getFloat (sal_Int32 columnIndex) override
 
virtual double SAL_CALL getDouble (sal_Int32 columnIndex) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes (sal_Int32 columnIndex) override
 
virtual css::util::Date SAL_CALL getDate (sal_Int32 columnIndex) override
 
virtual css::util::Time SAL_CALL getTime (sal_Int32 columnIndex) override
 
virtual css::util::DateTime SAL_CALL getTimestamp (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream (sal_Int32 columnIndex) override
 
virtual css::uno::Any SAL_CALL getObject (sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray (sal_Int32 columnIndex) override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
void propertyChanged (const css::beans::PropertyChangeEvent &rEvt) const
 This method propagates property value changes to all registered listeners. More...
 
void rowCountChanged (sal_uInt32 nOld, sal_uInt32 nNew)
 This method should be called by the data supplier for the result set to indicate that there were new data obtained from the data source. More...
 
void rowCountFinal ()
 This method should be called by the data supplier for the result set to indicate that there were all rows obtained from the data source. More...
 
const css::uno::Sequence< css::beans::Property > & getProperties () const
 This method returns a sequence containing all properties ( not the values! ) of the result set. More...
 
const css::uno::Reference< css::ucb::XCommandEnvironment > & getEnvironment () const
 This method returns the environment to use for interactions, progress propagation, ... More...
 

Private Attributes

std::unique_ptr< ResultSet_Implm_pImpl
 

Detailed Description

This is an implementation of the service com.sun.star.ucb.ContentResultSet.

It can be used to implement the method XDynamicResultSet::getStaticResultSet, which needs to be implemented for instance to implement the command "open" at folder objects. This class uses a user supplied ResultSetDataSupplier object to request data on demand.

See also
ResultSetDataSupplier

Definition at line 59 of file resultset.hxx.

Constructor & Destructor Documentation

ucbhelper::ResultSet::ResultSet ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Sequence< css::beans::Property > &  rProperties,
const rtl::Reference< ResultSetDataSupplier > &  rDataSupplier 
)

Construction.

Parameters
rxSMgris a Service Manager.
rPropertiesis a sequence of properties for that the resultset shall be able to obtain the values.
rDataSupplieris a supplier for the resultset data.
ucbhelper::ResultSet::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.

Parameters
rxSMgris a Service Manager.
rPropertiesis a sequence of properties for that the resultset shall be able to obtain the values.
rDataSupplieris a supplier for the resultset data.
rxEnvis the environment for interactions, progress propagation, ...
ucbhelper::ResultSet::~ResultSet ( )
overridevirtual

Definition at line 216 of file resultset.cxx.

Member Function Documentation

sal_Bool SAL_CALL ucbhelper::ResultSet::absolute ( sal_Int32  row)
overridevirtual

Definition at line 472 of file resultset.cxx.

References m_pImpl, and nCount.

void SAL_CALL ucbhelper::ResultSet::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

Definition at line 267 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 1254 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 1296 of file resultset.cxx.

void SAL_CALL ucbhelper::ResultSet::afterLast ( )
overridevirtual

Definition at line 413 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::beforeFirst ( )
overridevirtual

Definition at line 403 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::close ( )
overridevirtual

Definition at line 1148 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::dispose ( void  )
overridevirtual

Definition at line 243 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::first ( )
overridevirtual

Definition at line 422 of file resultset.cxx.

References m_pImpl.

uno::Reference< sdbc::XArray > SAL_CALL ucbhelper::ResultSet::getArray ( sal_Int32  columnIndex)
overridevirtual

Definition at line 1123 of file resultset.cxx.

References m_pImpl.

uno::Reference< io::XInputStream > SAL_CALL ucbhelper::ResultSet::getBinaryStream ( sal_Int32  columnIndex)
overridevirtual

Definition at line 984 of file resultset.cxx.

References m_pImpl.

uno::Reference< sdbc::XBlob > SAL_CALL ucbhelper::ResultSet::getBlob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 1077 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::getBoolean ( sal_Int32  columnIndex)
overridevirtual

Definition at line 739 of file resultset.cxx.

References m_pImpl.

sal_Int8 SAL_CALL ucbhelper::ResultSet::getByte ( sal_Int32  columnIndex)
overridevirtual

Definition at line 761 of file resultset.cxx.

References m_pImpl.

uno::Sequence< sal_Int8 > SAL_CALL ucbhelper::ResultSet::getBytes ( sal_Int32  columnIndex)
overridevirtual

Definition at line 894 of file resultset.cxx.

References m_pImpl.

uno::Reference< io::XInputStream > SAL_CALL ucbhelper::ResultSet::getCharacterStream ( sal_Int32  columnIndex)
overridevirtual

Definition at line 1007 of file resultset.cxx.

References m_pImpl.

uno::Reference< sdbc::XClob > SAL_CALL ucbhelper::ResultSet::getClob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 1100 of file resultset.cxx.

References m_pImpl.

util::Date SAL_CALL ucbhelper::ResultSet::getDate ( sal_Int32  columnIndex)
overridevirtual

Definition at line 916 of file resultset.cxx.

References m_pImpl.

double SAL_CALL ucbhelper::ResultSet::getDouble ( sal_Int32  columnIndex)
overridevirtual

Definition at line 871 of file resultset.cxx.

References m_pImpl.

const uno::Reference< css::ucb::XCommandEnvironment > & ucbhelper::ResultSet::getEnvironment ( ) const

This method returns the environment to use for interactions, progress propagation, ...

It can by empty.

Returns
an environment or an empty reference.

Definition at line 1388 of file resultset.cxx.

float SAL_CALL ucbhelper::ResultSet::getFloat ( sal_Int32  columnIndex)
overridevirtual

Definition at line 849 of file resultset.cxx.

References m_pImpl.

OUString SAL_CALL ucbhelper::ResultSet::getImplementationName ( )
overridevirtual

Definition at line 223 of file resultset.cxx.

sal_Int32 SAL_CALL ucbhelper::ResultSet::getInt ( sal_Int32  columnIndex)
overridevirtual

Definition at line 805 of file resultset.cxx.

References m_pImpl.

sal_Int64 SAL_CALL ucbhelper::ResultSet::getLong ( sal_Int32  columnIndex)
overridevirtual

Definition at line 827 of file resultset.cxx.

References m_pImpl.

uno::Reference< sdbc::XResultSetMetaData > SAL_CALL ucbhelper::ResultSet::getMetaData ( )
overridevirtual

Definition at line 295 of file resultset.cxx.

References m_pImpl.

uno::Any SAL_CALL ucbhelper::ResultSet::getObject ( sal_Int32  columnIndex,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

Definition at line 1029 of file resultset.cxx.

References m_pImpl.

const uno::Sequence< beans::Property > & ucbhelper::ResultSet::getProperties ( ) const

This method returns a sequence containing all properties ( not the values! ) of the result set.

Returns
a sequence of properties.

Definition at line 1381 of file resultset.cxx.

uno::Reference< beans::XPropertySetInfo > SAL_CALL ucbhelper::ResultSet::getPropertySetInfo ( )
overridevirtual

Definition at line 1197 of file resultset.cxx.

References m_pImpl, and RESULTSET_PROPERTY_COUNT.

uno::Any SAL_CALL ucbhelper::ResultSet::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 1231 of file resultset.cxx.

References m_pImpl.

uno::Reference< sdbc::XRef > SAL_CALL ucbhelper::ResultSet::getRef ( sal_Int32  columnIndex)
overridevirtual

Definition at line 1054 of file resultset.cxx.

References m_pImpl.

sal_Int32 SAL_CALL ucbhelper::ResultSet::getRow ( )
overridevirtual

Definition at line 458 of file resultset.cxx.

References m_pImpl.

sal_Int16 SAL_CALL ucbhelper::ResultSet::getShort ( sal_Int32  columnIndex)
overridevirtual

Definition at line 783 of file resultset.cxx.

References m_pImpl.

uno::Reference< uno::XInterface > SAL_CALL ucbhelper::ResultSet::getStatement ( )
overridevirtual

Definition at line 678 of file resultset.cxx.

References m_pImpl.

OUString SAL_CALL ucbhelper::ResultSet::getString ( sal_Int32  columnIndex)
overridevirtual

Definition at line 717 of file resultset.cxx.

References m_pImpl.

css::uno::Sequence< OUString > SAL_CALL ucbhelper::ResultSet::getSupportedServiceNames ( )
overridevirtual

Definition at line 233 of file resultset.cxx.

References RESULTSET_SERVICE_NAME.

util::Time SAL_CALL ucbhelper::ResultSet::getTime ( sal_Int32  columnIndex)
overridevirtual

Definition at line 938 of file resultset.cxx.

References m_pImpl.

util::DateTime SAL_CALL ucbhelper::ResultSet::getTimestamp ( sal_Int32  columnIndex)
overridevirtual

Definition at line 961 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::isAfterLast ( )
overridevirtual

Definition at line 360 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::isBeforeFirst ( )
overridevirtual

Definition at line 339 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::isFirst ( )
overridevirtual

Definition at line 368 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::isLast ( )
overridevirtual

Definition at line 382 of file resultset.cxx.

References m_pImpl, and nCount.

sal_Bool SAL_CALL ucbhelper::ResultSet::last ( )
overridevirtual

Definition at line 440 of file resultset.cxx.

References m_pImpl, and nCount.

sal_Bool SAL_CALL ucbhelper::ResultSet::next ( )
overridevirtual

Definition at line 311 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::previous ( )
overridevirtual

Definition at line 613 of file resultset.cxx.

References m_pImpl, and nCount.

void ucbhelper::ResultSet::propertyChanged ( const css::beans::PropertyChangeEvent &  rEvt) const

This method propagates property value changes to all registered listeners.

Parameters
rEvtis a property change event.

Definition at line 1316 of file resultset.cxx.

References cppu::OInterfaceIteratorHelper::hasMoreElements(), m_pImpl, cppu::OInterfaceIteratorHelper::next(), and cppu::OInterfaceContainerHelper::notifyEach().

uno::Reference< css::ucb::XContent > SAL_CALL ucbhelper::ResultSet::queryContent ( )
overridevirtual

Definition at line 1183 of file resultset.cxx.

References m_pImpl.

uno::Reference< css::ucb::XContentIdentifier > SAL_CALL ucbhelper::ResultSet::queryContentIdentifier ( )
overridevirtual

Definition at line 1171 of file resultset.cxx.

References m_pImpl.

OUString SAL_CALL ucbhelper::ResultSet::queryContentIdentifierString ( )
overridevirtual

Definition at line 1159 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::refreshRow ( )
overridevirtual

Definition at line 642 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::relative ( sal_Int32  rows)
overridevirtual

Definition at line 544 of file resultset.cxx.

References m_pImpl, and nCount.

void SAL_CALL ucbhelper::ResultSet::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

Definition at line 281 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 1277 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 1305 of file resultset.cxx.

void ucbhelper::ResultSet::rowCountChanged ( sal_uInt32  nOld,
sal_uInt32  nNew 
)

This method should be called by the data supplier for the result set to indicate that there were new data obtained from the data source.

Parameters
nOldis the old count of rows; must be non-negative.
nnewis the new count of rows; must be non-negative.

Definition at line 1347 of file resultset.cxx.

References RowCount.

void ucbhelper::ResultSet::rowCountFinal ( )

This method should be called by the data supplier for the result set to indicate that there were all rows obtained from the data source.

Definition at line 1365 of file resultset.cxx.

sal_Bool SAL_CALL ucbhelper::ResultSet::rowDeleted ( )
overridevirtual

Definition at line 670 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::rowInserted ( )
overridevirtual

Definition at line 662 of file resultset.cxx.

References m_pImpl.

sal_Bool SAL_CALL ucbhelper::ResultSet::rowUpdated ( )
overridevirtual

Definition at line 654 of file resultset.cxx.

References m_pImpl.

void SAL_CALL ucbhelper::ResultSet::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 1210 of file resultset.cxx.

sal_Bool SAL_CALL ucbhelper::ResultSet::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 228 of file resultset.cxx.

References cppu::supportsService().

sal_Bool SAL_CALL ucbhelper::ResultSet::wasNull ( )
overridevirtual

Definition at line 693 of file resultset.cxx.

References m_pImpl.

Member Data Documentation

std::unique_ptr<ResultSet_Impl> ucbhelper::ResultSet::m_pImpl
private

The documentation for this class was generated from the following files: