|
Re: [cdo] Options for searching the CDO store [message #868497 is a reply to message #868403] |
Wed, 02 May 2012 05:04 |
|
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
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03745 seconds