ObjectDB ObjectDB

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)