You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Rajath Shashidhara <ra...@gmail.com> on 2013/06/17 18:58:56 UTC

XRowUpdate interface in service ResultSet

Hello,

I have a few questions here:

XRowUpdate has a few methods like update<Type>(int columnindex, <type>
variable).

This is similar to "setPropertyValues" command. Should these command be
linked to the execute() - "setPropertyValues" command?
Or should this even be implemented?

-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani

Re: XRowUpdate interface in service ResultSet

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Rajath,

On Mon, Jun 17, 2013 at 10:28:56PM +0530, Rajath Shashidhara wrote:
> Hello,
> 
> I have a few questions here:
> 
> XRowUpdate has a few methods like update<Type>(int columnindex, <type>
> variable).
> 
> This is similar to "setPropertyValues" command. Should these command be
> linked to the execute() - "setPropertyValues" command?
> Or should this even be implemented?

Although the API documentation says that css.ucb.ContentResultSet
"includes" the service css.sdbc.ResultSet, which "exportes" the
css.sdbc.XRowUpdate interface, you do not have to implement this
interface; look at this as a documentation bug. You just have to
implement the interfaces listed under "Exported Interfaces" in
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/ContentResultSet.html

see ucbhelper::ResultSet
ucbhelper/inc/ucbhelper/resultset.hxx

class UCBHELPER_DLLPUBLIC ResultSet :
                public cppu::OWeakObject,
                public com::sun::star::lang::XTypeProvider,
                public com::sun::star::lang::XServiceInfo,
                public com::sun::star::lang::XComponent,
                public com::sun::star::ucb::XContentAccess,
                public com::sun::star::sdbc::XResultSet,
                public com::sun::star::sdbc::XResultSetMetaDataSupplier,
                public com::sun::star::sdbc::XRow,
                public com::sun::star::sdbc::XCloseable,
                public com::sun::star::beans::XPropertySet


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina