Skip to main content



      Home
Home » Modeling » EMF » [CDO] CDO_CLASS column in CDO_OBJECTS table
[CDO] CDO_CLASS column in CDO_OBJECTS table [message #1712696] Tue, 27 October 2015 09:50 Go to next message
Eclipse UserFriend
The column CDO_CLASS in the table CDO_OBJECTS only contains negative values.
How one can obtain these values from an actual EClass?

I would like to know how the conversion is done to be able to use it in
SQL queries.

Thanks.
Re: [CDO] CDO_CLASS column in CDO_OBJECTS table [message #1712711 is a reply to message #1712696] Tue, 27 October 2015 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Looks like these values are accessible from the MetaDataManager.

IDBStore store = // can get the store from the repository
CDOID id = store.getMetaDataManager().getMetaID(eClass, 0);

The id will contain the negative values I'm looking for.



On 2015-10-27 13:50:46 +0000, Guillaume Hillairet said:

> The column CDO_CLASS in the table CDO_OBJECTS only contains negative values.
> How one can obtain these values from an actual EClass?
>
> I would like to know how the conversion is done to be able to use it in
> SQL queries.
>
> Thanks.
Re: [CDO] CDO_CLASS column in CDO_OBJECTS table [message #1712723 is a reply to message #1712711] Tue, 27 October 2015 13:01 Go to previous message
Eclipse UserFriend
Am 27.10.2015 um 16:15 schrieb Guillaume Hillairet:
> Looks like these values are accessible from the MetaDataManager.
>
> IDBStore store = // can get the store from the repository
> CDOID id = store.getMetaDataManager().getMetaID(eClass, 0);
>
> The id will contain the negative values I'm looking for.
Correct.

IIRC., you can also query the table "cdo_external_refs".

Cheers
/Eike

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


>
>
>
> On 2015-10-27 13:50:46 +0000, Guillaume Hillairet said:
>
>> The column CDO_CLASS in the table CDO_OBJECTS only contains negative values.
>> How one can obtain these values from an actual EClass?
>>
>> I would like to know how the conversion is done to be able to use it in SQL queries.
>>
>> Thanks.
>
>
Previous Topic:[XCore] how to create an EMF object instance in an operation?
Next Topic:[CDO] Timeout in ChangeCredentialsRequest
Goto Forum:
  


Current Time: Fri Nov 07 11:14:42 EST 2025

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

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

Back to the top