org.apache.openjpa.kernel
Class AttachManager

java.lang.Object
  extended by org.apache.openjpa.kernel.AttachManager

public class AttachManager
extends Object

Handles attaching instances.

Author:
Marc Prud'hommeaux

Constructor Summary
AttachManager(BrokerImpl broker, boolean copyNew, OpCallbacks call)
          Constructor.
 
Method Summary
 Object attach(Object pc)
          Return an attached version of the given instance.
 Object[] attachAll(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 Object attach(Object pc)
Return an attached version of the given instance.


attachAll

public Object[] attachAll(Collection instances)
Return attached versions of the given instances.



Copyright © 2006–2013 Apache Software Foundation. All rights reserved.