Home » JDO » PersistenceCapable » jdoNewInstance(sm) - JDO PersistenceCapable's method

jdoNewInstance(sm) - JDO PersistenceCapable's method

Return a new instance of this class, with the jdoStateManager set to the parameter, and jdoFlags set to LOAD_REQUIRED.

This method is used as a performance optimization as an alternative to using reflection to construct a new instance. It is used by the JDOImplHelper class method newInstance.

Parameters:
sm - the StateManager that will own the new instance.
Returns:
a new instance of this class.
Since:
JDO 1.0
See Also:
JDOImplHelper.newInstance(Class pcClass, 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.