Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » kernel » [javadoc | source]
org.apache.openjpa.kernel
class: AttachManager [javadoc | source]
java.lang.Object
   org.apache.openjpa.kernel.AttachManager
Handles attaching instances.
Constructor:
 public AttachManager(BrokerImpl broker,
    boolean copyNew,
    OpCallbacks call) 
    Constructor. Supply broker attaching to.
Method from org.apache.openjpa.kernel.AttachManager Summary:
assertManaged,   attach,   attach,   attachAll,   fireBeforeAttach,   getAttachedCopy,   getBehavior,   getBroker,   getCopyNew,   getDetachedObjectId,   getProxyManager,   setAttachedCopy
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.kernel.AttachManager Detail:
 StateManagerImpl assertManaged(Object obj) 
    Throw an exception if the given object is not managed; otherwise return its state manager.
 public Object attach(Object pc) 
    Return an attached version of the given instance.
 Object attach(Object toAttach,
    PersistenceCapable into,
    OpenJPAStateManager owner,
    ValueMetaData ownerMeta,
    boolean explicit) 
    Attach.
 public Object[] attachAll(Collection instances) 
    Return attached versions of the given instances.
  void fireBeforeAttach(Object pc,
    ClassMetaData meta) 
    Fire before-attach event.
 PersistenceCapable getAttachedCopy(Object pc) 
    If the passed in argument has already been attached, return the (cached) attached copy.
 public OpCallbacks getBehavior() 
    Return the behavior supplied on construction.
 BrokerImpl getBroker() 
    Owning broker.
 public boolean getCopyNew() 
    Return whether to copy new instances being persisted.
 Object getDetachedObjectId(Object pc) 
    Return the detached oid of the given instance.
 ProxyManager getProxyManager() 
    System proxy manager.
  void setAttachedCopy(Object from,
    PersistenceCapable into) 
    Record the attached copy in the cache.