Package org.apache.openjpa.kernel
Class AttachManager
- java.lang.Object
 - 
- org.apache.openjpa.kernel.AttachManager
 
 
- 
public class AttachManager extends Object
Handles attaching instances.- Author:
 - Marc Prud'hommeaux
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AttachManager(BrokerImpl broker, boolean copyNew, OpCallbacks call)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectattach(Object pc)Return an attached version of the given instance.Object[]attachAll(Collection instances)Return attached versions of the given instances.OpCallbacksgetBehavior()Return the behavior supplied on construction.booleangetCopyNew()Return whether to copy new instances being persisted. 
 - 
 
- 
- 
Constructor Detail
- 
AttachManager
public AttachManager(BrokerImpl broker, boolean copyNew, OpCallbacks call)
Constructor. Supply broker attaching to. 
 - 
 
- 
Method Detail
- 
getBehavior
public OpCallbacks getBehavior()
Return the behavior supplied on construction. 
- 
getCopyNew
public boolean getCopyNew()
Return whether to copy new instances being persisted. 
- 
attachAll
public Object[] attachAll(Collection instances)
Return attached versions of the given instances. 
 - 
 
 -