44 words

getObjectById(cls, key) - JDO PersistenceManager's method

Method
javax.jdo.PersistenceManager
T getObjectById(
  Class<T> cls,
  Object key
)

Looks up the instance of the given type with the given key.
Parameters:
cls - The type of object to load
key - either the string representation of the object id, or an object representation of a single field identity key
Returns:
the corresponding persistent instance
Since:
JDO 2.0

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.