Class ReactiveCacheEntityLoaderHelper


  • public class ReactiveCacheEntityLoaderHelper
    extends java.lang.Object
    See Also:
    CacheEntityLoaderHelper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.hibernate.loader.ast.internal.CacheEntityLoaderHelper.PersistenceContextEntry loadFromSessionCache​(org.hibernate.event.spi.LoadEvent event, org.hibernate.engine.spi.EntityKey keyToLoad, org.hibernate.event.spi.LoadEventListener.LoadType options)
      Attempts to locate the entity in the session-level cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadFromSessionCache

        public org.hibernate.loader.ast.internal.CacheEntityLoaderHelper.PersistenceContextEntry loadFromSessionCache​(org.hibernate.event.spi.LoadEvent event,
                                                                                                                      org.hibernate.engine.spi.EntityKey keyToLoad,
                                                                                                                      org.hibernate.event.spi.LoadEventListener.LoadType options)
                                                                                                               throws org.hibernate.HibernateException
        Attempts to locate the entity in the session-level cache.

        If allowed to return nulls, then if the entity happens to be found in the session cache, we check the entity type for proper handling of entity hierarchies.

        If checkDeleted was set to true, then if the entity is found in the session-level cache, its current status within the session cache is checked to see if it has previously been scheduled for deletion.

        Parameters:
        event - The load event
        keyToLoad - The EntityKey representing the entity to be loaded.
        options - The load options.
        Returns:
        The entity from the session-level cache, or null.
        Throws:
        org.hibernate.HibernateException - Generally indicates problems applying a lock-mode.