Class AttachManager


  • public class AttachManager
    extends java.lang.Object
    Handles attaching instances.
    Author:
    Marc Prud'hommeaux
    • 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.
      • 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 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.