getObjectIdClass(cls) - JDO PersistenceManager's method

Class getObjectIdClass(
  Class cls

Return the Class that implements the JDO Identity for the specified PersistenceCapable class. The application can use the returned Class to construct a JDO Identity instance for application identity PersistenceCapable classes. This JDO Identity instance can then be used to get an instance of the PersistenceCapable class for use in the application.

In order for the application to construct an instance of the ObjectId class it needs to know the class being used by the JDO implementation.

cls - the PersistenceCapable Class
the Class of the ObjectId of the parameter
JDO 1.0
See Also:

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.