Class SessionAssociationMarkers

java.lang.Object
org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociationMarkers

public final class SessionAssociationMarkers extends Object
Contains the state necessary to properly implement SessionAssociableInterceptor; this allows reuse of this particular object across multiple interceptor instances and keeps them from getting too allocation-intensive. It also allows for a very elegant, simple way for the Session to clear references to itself on close.
  • Constructor Details

  • Method Details

    • deAssociatedCopy

      public SessionAssociationMarkers deAssociatedCopy()
    • sessionClosed

      public void sessionClosed()
      Careful as this mutates the state of this instance, which is possibly used by multiple managed entities. Removes the reference to the session; useful on Session close.