JDO Method
in javax.jdo.spi.JDOImplHelper

PersistenceCapable newInstance(
  Class pcClass, 
  StateManager sm, 
  Object oid
)


Create a new instance of the class and assign its jdoStateManager and key values from the ObjectId. If the oid parameter is null, no key values are copied. The new instance has its jdoFlags set to LOAD_REQUIRED.
Parameters:
pcClass - the PersistenceCapable class.
sm - the StateManager which will own the new instance.
oid - the ObjectId instance from which to copy key field values.
Return:
the new instance, or null if the class is not registered.
See Also:
PersistenceCapable(StateManager sm,Object oid)
Since:
JDO 1.0