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 loadkey
- either the string representation of the object id, or an object representation of a single field identity key
- Return:
- the corresponding persistent instance
- Since:
- JDO 2.0