152 words

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

Method
javax.jdo.PersistenceManager
void makeTransientAll(
  Collection 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(Collection 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.

Parameters:
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
Since:
JDO 2.0

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.