newInstance(pcClass, sm) - JDO JDOImplHelper's method

Method
javax.jdo.spi.JDOImplHelper
PersistenceCapable newInstance(
  Class pcClass,
  StateManager sm
)

Create a new instance of the class and assign its jdoStateManager. The new instance has its jdoFlags set to LOAD_REQUIRED.
Parameters:
pcClass - the PersistenceCapable class.
sm - the StateManager which will own the new instance.
Returns:
the new instance, or null if the class is not registered.
Since:
JDO 1.0
See Also:
PersistenceCapable.jdoNewInstance(StateManager sm)

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.