Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » AbstractCDOIDLong is no longer available
AbstractCDOIDLong is no longer available [message #1860715] Mon, 28 August 2023 23:55 Go to next message
I S is currently offline I SFriend
Messages: 13
Registered: May 2022
Junior Member
Hi!

I'm migrating from CDO 3.0.1 to CDO 4.10.0 (the reason 4.10.0 has been chosen is Java 8 support).

In CDO 3.0.1 I used AbstractCDOIDLong to convert CDOID to long value
query.setParameter( "deviceId", ( (AbstractCDOIDLong) hardwareDevice.cdoID() ).getLongValue() );


However, there is no AbstractCDOIDLong in CDO 4.10.0. My question is how to convert CDO ID to the type I need? Do I need to change my model if AbstractCDOIDLong /AbstractCDOIDInt are no longer available?
Re: AbstractCDOIDLong is no longer available [message #1860716 is a reply to message #1860715] Tue, 29 August 2023 03:54 Go to previous messageGo to next message
I S is currently offline I SFriend
Messages: 13
Registered: May 2022
Junior Member
Sorry, I have found an appropriate replacement for this class - CDOIDObjectLongImpl
Re: AbstractCDOIDLong is no longer available [message #1860717 is a reply to message #1860716] Tue, 29 August 2023 05:02 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
It's much easier to upgrade the dependencies of your application when you use the public APIs of those dependencies. In this case you should use
long value = CDOIDUtil.getLong(id);

These public methods are often easy to find by opening the call hierarchy on the internal method that you've already found.


Previous Topic:How can you change properties of attributes at runtime?
Next Topic:How to use tycho plugin
Goto Forum:
  


Current Time: Thu May 02 01:37:11 GMT 2024

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

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

Back to the top