Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [cdo] Options for searching the CDO store
[cdo] Options for searching the CDO store [message #868403] Tue, 01 May 2012 22:31 Go to next message
Warwick Burrows is currently offline Warwick BurrowsFriend
Messages: 132
Registered: July 2009
Location: Austin, TX
Senior Member
Hi,

What options are there for searching the CDO store? We would like to fetch a set of objects based on characteristics in the object properties e.g. like string tags identifying the purpose of the object. Does the CDO client have search capabilities, or is there an alternative way to do this?

Thanks,
Warwick
Re: [cdo] Options for searching the CDO store [message #868497 is a reply to message #868403] Wed, 02 May 2012 05:04 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 02.05.2012 00:32, schrieb Warwick Burrows:
> Hi,
>
> What options are there for searching the CDO store? We would like to fetch a set of objects based on characteristics
> in the object properties e.g. like string tags identifying the purpose of the object. Does the CDO client have search
> capabilities, or is there an alternative way to do this?
CDO has a language agnostic query framework that starts here:

CDOView.createQuery(String, String)
CDOView.createQuery(String, String, Object)

Most backend stores come with a built-in IQueryHandler, e.g. the DBStore understands "sql" queries, the HibernateStore
"hql" queries.

If you deploy the optional org.eclipse.emf.cdo.server.ocl bundle to the repository installation you can send "ocl"
queries independent of the backend store.

And you can easily implement your own IQueryHandlers and registerthem with your repository. Have a look at the existing
handlers for examples.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:EFS linkage
Next Topic:What is the recommended way of joining multiple XSDs in a single ECore model?
Goto Forum:
  


Current Time: Fri Apr 26 15:10:45 GMT 2024

Powered by FUDForum. Page generated in 0.03745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top