Skip to main content



      Home
Home » Modeling » EMF » AbstractCDOIDLong is no longer available
AbstractCDOIDLong is no longer available [message #1860715] Mon, 28 August 2023 19:55 Go to next message
Eclipse UserFriend
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] Mon, 28 August 2023 23:54 Go to previous messageGo to next message
Eclipse UserFriend
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 01:02 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 14:20:06 EDT 2025

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

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

Back to the top