Yes. I have done that. :)

On Wed, Jun 12, 2013 at 12:42 PM, Jürgen Schmidt <[email protected]>wrote:

> On 6/12/13 9:04 AM, Rajath Shashidhara wrote:
> > Hello Juergen,
> >
> > I have already implemented my own XRow. I'm implementing the result set
> > service by defining a List<XRow> with each XRow containing the
> information
> > of a child object in case of a folder.
>
> good, keep in mind to return only the properties that the cmd ask for
>
> Juergen
>
>
> >
> >
> > On Wed, Jun 12, 2013 at 12:31 PM, Jürgen Schmidt <[email protected]
> >wrote:
> >
> >> On 6/12/13 8:45 AM, Rajath Shashidhara wrote:
> >>> Hello Juergen,
> >>>
> >>> I'm following this:
> >>>
> >>
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
> >>>  .
> >>> Is there any other revised source that I have to follow?
> >>
> >> ok, I see what you mean. You have to implement simply a UNO object
> >> implementing the XRow interface. And yes the docu say it is similar to a
> >> ResultSet.
> >>
> >> But is much easier than you expect, I have done this before and have to
> >> find the code ... will take some time, probably I can send you an
> >> example in the evening.
> >>
> >> Or you can implement an object supporting the XRow interface on your
> >> your own.
> >>
> >> See also the DevGuide
> >>
> >>
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Obtaining_Content_Properties
> >>
> >> And please don't ask me why it was designed this way ;-)
> >>
> >> Juergen
> >>
> >>
> >>>
> >>>
> >>> On Wed, Jun 12, 2013 at 12:10 PM, Rajath Shashidhara <
> >>> [email protected]> wrote:
> >>>
> >>>> Hello Juergen,
> >>>>
> >>>> But the return datatype of Open Command is a dynamic result set. So, a
> >>>> result set service must be implemented right?
> >>>>
> >>>>
> >>>> On Wed, Jun 12, 2013 at 11:44 AM, Jürgen Schmidt <
> [email protected]
> >>> wrote:
> >>>>
> >>>>> On 6/12/13 6:55 AM, Rajath Shashidhara wrote:
> >>>>>> Hello,
> >>>>>> Just a small doubt.
> >>>>>> I was looking at the methods to be implemented in ResultSet.
> >>>>>> m_RowCount stores the current row being accessed.
> >>>>>> I have a doubt in the following methods.
> >>>>>> Methods:
> >>>>>> next(),previous(),beforeFirst(),afterLast() .
> >>>>>>
> >>>>>> Initially when the resultset is constructed, m_RowCount will be zero
> >>>>>> according to the api reference.
> >>>>>> If there are 'X' Rows.
> >>>>>> So, m_RowCount can take 0,1,......,X,X+1 values only or can it take
> >> any
> >>>>>> value?
> >>>>>>
> >>>>>> Because even X+2 is afterLast() and -1 is beforeFirst().
> >>>>>>
> >>>>>
> >>>>> I would not use ResultSet in this context, it was mainly designed and
> >>>>> used in the context of databases.
> >>>>>
> >>>>> Internally you can use whatever you want and the return via the API
> is
> >>>>> just a property sequence. Use whatever you want and ensure that it
> can
> >>>>> be fast converted in a sequence (in Java array) of properties.
> >>>>>
> >>>>> 2 open commands have to update the values anyway because in the time
> >>>>> between both commands the values could have changed anyway, e.g. a
> file
> >>>>> got written/updated from somewhere else.
> >>>>>
> >>>>> Juergen
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: [email protected]
> >>>>> For additional commands, e-mail: [email protected]
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>> Rajath S,
> >>>> M.Sc(Hons.) Physics,
> >>>> Birla Institute of Technology and Science - Pilani,
> >>>> Pilani
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


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

Reply via email to