ObjectDB ObjectDB

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