ObjectDB ObjectDB

newObjectIdInstance(pcClass, key) - JDO PersistenceManager's method

Method
javax.jdo.PersistenceManager
Object newObjectIdInstance(
  Class pcClass,
  Object key
)

This method returns an object id instance corresponding to the pcClass and key arguments.
Parameters:
pcClass - the Class of the persistence-capable instance
key - for single-field identity, the parameter for the constructor; for non-single-field application identity, the result of toString() on the object id instance.
Returns:
an instance of the object identity class
Since:
JDO 1.0