Package org.apache.cayenne.util
Class ObjectDetachOperation
java.lang.Object
org.apache.cayenne.util.ObjectDetachOperation
public class ObjectDetachOperation extends Object
An operation that creates a subgraph of detached objects, using the PrefetchTree to
 delineate the graph boundaries. Target objects can be described by a different set of
 descriptors, thus allowing server-to-client conversion to happen in the process.
- Since:
- 1.2
- 
Field SummaryFields Modifier and Type Field Description protected Map<ObjectId,Persistent>seenprotected EntityResolvertargetResolver
- 
Constructor SummaryConstructors Constructor Description ObjectDetachOperation(EntityResolver targetResolver)
- 
Method SummaryModifier and Type Method Description Objectdetach(Object object, ClassDescriptor descriptor, PrefetchTreeNode prefetchTree)"Detaches" an object from its context by creating an unattached copy.voidreset()
- 
Field Details- 
targetResolver
- 
seen
 
- 
- 
Constructor Details- 
ObjectDetachOperation
 
- 
- 
Method Details- 
resetpublic void reset()
- 
detach"Detaches" an object from its context by creating an unattached copy. The copy is created using target descriptor of this operation that may be different from the object descriptor passed to this method.
 
-