ObjectDB ObjectDB

setRestoreValues(restoreValues) - JDO PersistenceManagerFactory's method

Method
javax.jdo.PersistenceManagerFactory
void setRestoreValues(
  boolean restoreValues
)

Set the default value for the RestoreValues property. If true, at rollback, fields of newly persistent instances are restored to their values as of the beginning of the transaction, and the instances revert to transient. Additionally, fields of modified instances of primitive types and immutable reference types are restored to their values as of the beginning of the transaction.

If false, at rollback, the values of fields of newly persistent instances are unchanged and the instances revert to transient. Additionally, dirty instances transition to hollow. If an implementation does not support this option, a JDOUnsupportedOptionException is thrown.

Parameters:
restoreValues - the value of the restoreValues property
Since:
JDO 1.0