Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDOQuery to CDOObject - access to cdo_id
CDOQuery to CDOObject - access to cdo_id [message #1269188] Tue, 11 March 2014 13:52 Go to next message
Areq Novak is currently offline Areq NovakFriend
Messages: 12
Registered: March 2014
Junior Member
I want to have access to cdo_id after searching query in db, for example:

CDOQuery cqo = createQuery(query);

CDOObject sth = cqo.getResultValue(clazz);


cqo.getResultValue(clazz) - return only data for class which extend EOBject, exist any possibility to have access to cdo_id ?
Re: CDOQuery to CDOObject - access to cdo_id [message #1269195 is a reply to message #1269188] Tue, 11 March 2014 14:03 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 11.03.2014 14:52, schrieb Areq Novak:
> I want to have access to cdo_id after searching query in db, for example:
>
> CDOQuery cqo = createQuery(query);
> CDOObject sth = cqo.getResultValue(clazz);
>
>
> cqo.getResultValue(clazz) - return only data for class which extend EOBject, exist any possibility to have access
> to cdo_id ?
You can call CDOObject.cdoID(). If your object is a CDO object (or a CDO legacy object) but the interface through that
you are accessing this object is not (and does not extend) CDOObject then you can call CDOUtil.getCDOObject(object).cdoID().

Cheers
/Eike

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


Previous Topic:Create empty XML from XSD generated Epackage
Next Topic:Second Id in database
Goto Forum:
  


Current Time: Fri Mar 29 15:04:12 GMT 2024

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

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

Back to the top