Home » JDO » PersistenceManagerFactory » setCopyOnAttach(flag) - JDO PersistenceManagerFactory's method

setCopyOnAttach(flag) - JDO PersistenceManagerFactory's method

void setCopyOnAttach(
  boolean flag

Sets the default copyOnAttach setting for all PersistenceManager instances obtained from this factory.

CopyOnAttach set to true specifies that during makePersistent, copies are made of detached parameter instances. With this flag set to false, detached parameter instances are attached directly and change their state from detached-clean to persistent-clean or from detached-dirty to persistent-dirty.

flag -
JDO 2.1
See Also:

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.