Package org.apache.openjpa.kernel
Class AttachManager
- java.lang.Object
-
- org.apache.openjpa.kernel.AttachManager
-
public class AttachManager extends java.lang.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 java.lang.Object
attach(java.lang.Object pc)
Return an attached version of the given instance.java.lang.Object[]
attachAll(java.util.Collection instances)
Return attached versions of the given instances.OpCallbacks
getBehavior()
Return the behavior supplied on construction.boolean
getCopyNew()
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.
-
attach
public java.lang.Object attach(java.lang.Object pc)
Return an attached version of the given instance.
-
attachAll
public java.lang.Object[] attachAll(java.util.Collection instances)
Return attached versions of the given instances.
-
-