replacingStateManager(pc, sm) - JDO StateManager's method
Method javax.jdo.spi.StateManager
StateManager replacingStateManager(
PersistenceCapable pc,
StateManager sm
)
Replace the current value of
jdoStateManager
. This method is called by the PersistenceCapable
whenever jdoReplaceStateManager
is called and there is already an owning StateManager
. This is a security precaution to ensure that the owning StateManager
is the only source of any change to its reference in the PersistenceCapable
.
- Parameters:
-
pc
- the callingPersistenceCapable
instancesm
- the proposed new value for thejdoStateManager
- Returns:
- the new value for the
jdoStateManager
- Since:
- JDO 1.0