Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » kernel » [javadoc | source]
org.apache.openjpa.kernel
public class: DetachManager [javadoc | source]
java.lang.Object
   org.apache.openjpa.kernel.DetachManager

All Implemented Interfaces:
    DetachState

Handles detaching instances.
Constructor:
 public DetachManager(BrokerImpl broker,
    boolean full,
    OpCallbacks call) 
    Constructor.
    Parameters:
    broker - owning broker
    full - whether the entire broker cache is being detached; if this is the case, we assume the broker has already flushed if needed, and that we're detaching in-place
Method from org.apache.openjpa.kernel.DetachManager Summary:
detach,   detachAll,   preSerialize,   writeDetachedState
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.kernel.DetachManager Detail:
 public Object detach(Object toDetach) 
    Return a detached version of the given instance.
 public Object[] detachAll(Collection instances) 
    Return detached versions of all the given instances. If not copying, null will be returned.
 static boolean preSerialize(StateManagerImpl sm) 
    Used to prepare a detachable instance that does not externalize detached state.
 static boolean writeDetachedState(StateManagerImpl sm,
    ObjectOutput out,
    BitSet idxs) throws IOException 
    Used by classes that externalize detached state.