Amita,

I guess what you're asking for is support for something like this:

  List customers = rootDo.getList("customer[name='patrick']");

which would return a list containing the 0 or more matching customers. 
There is currently discussion underway within the SDO specification 
working group to better align SDO's XPath (SDOPath) with real XML XPath. 
Ideally SDOPath will be a compatible subset of full XPath having the same 
core behavior. I'll add this to the list of issues.

Thanks,
Frank

"kelvin goodson" <[EMAIL PROTECTED]> wrote on 02/27/2007 08:00:28 
AM:

> Hi Amita,
> 
>   I'm pretty sure when you say "the current SDO" you are meaning the 
Tuscany
> implementation.  The SDO spec allows for extensibility here in that it
> includes a "scheme" prefix to the path syntax, which if  left out is
> implicitly "sdo:".  Tuscany only has the default scheme implemented.  So 
one
> way forward might be to  implement an alternative scheme.  However,  I'm 
not
> sure that would work,  since the interfaces which would permit the 
return of
> a collection (get(),getList()) have javadoc documentation which 
constrain
> them to return the "value of a Property".   A long while back I heard 
talk
> of an XPathHelper I think,  but I don't have a notion of any current
> activity in that direction at the spec or implementation level.  Is this
> something you feel you'd like to get involved with?
> 
> Best Regards, Kelvin.
> 
> 
> On 27/02/07, Amita Vadhavkar <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > In the current SDO, the support is provided for
> > do.getDataObject(xpath)
> > and
> > rootDo.getList(property)
> >
> > But there is no way to get multiple DOs from evaluating xpath.
> > i.e. expression like rootDo.getDataObject("customer[name='patrick']")
> > returns the first
> > matching row and not all matching rows.
> > And expression like rootDo.getList("customer") gets all customers, but
> > does
> > not support
> > xpath syntax to tailor the list for a selective (name='patrick')
> > condition.
> > If the user wants a convenient way to get all customers with
> > name='patrick',
> > he needs to get this with recursion over root DO and using detach()
> > method. Is there any helper method available in Tuscany-SDO for this 
kind
> > of operation as it will be a basic requirement for any batch 
select/update
> > etc.
> > operations on a data source?
> >
> > Regards,
> > Amita
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to