Interface LoadAccessContext

All Known Implementing Classes:
SessionImpl

@Incubating @Internal public interface LoadAccessContext
Context for loader-access objects.
  • Method Details

    • getSession

      SessionImplementor getSession()
      The session from which the load originates
    • checkOpenOrWaitingForAutoClose

      void checkOpenOrWaitingForAutoClose()
      Callback to check whether the session is "active"
    • pulseTransactionCoordinator

      void pulseTransactionCoordinator()
      Callback to pulse the transaction coordinator
    • delayedAfterCompletion

      void delayedAfterCompletion()
    • load

      Object load(LoadEventListener.LoadType loadType, Object id, String entityName, LockOptions lockOptions, Boolean readOnly)
      Efficiently fire a LoadEvent with the given type and return the resulting entity instance or proxy.
      Since:
      7.0