152 words

makeTransientAll(pcs, useFetchPlan) - JDO PersistenceManager's method

void makeTransientAll(
  Object[] pcs,
  boolean useFetchPlan

Make instances transient, removing them from management by this PersistenceManager. If the useFetchPlan parameter is false, this method behaves exactly as makeTransientAll(Object[] pcs).

The affected instance(s) lose their JDO identity and are no longer associated with any PersistenceManager. The state of fields is unchanged.

If the useFetchPlan parameter is true, then the current FetchPlan is applied to the pcs parameters and the entire graph of instances reachable via loaded fields is made transient. The state of fields in the affected instances is as specified by the FetchPlan.

Unlike detachCopy, the instances are not detached; there is no detachment information in the instances.

The instances to be made transient do not need to implement the javax.jdo.spi.Detachable interface.

pcs - the root instances to make transient.
useFetchPlan - whether to use the current fetch plan to determine which fields to load and which instances to make transient
JDO 2.0
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.