Interface MultiIdLoadOptions

All Superinterfaces:
MultiLoadOptions

public interface MultiIdLoadOptions extends MultiLoadOptions
Encapsulation of the options for loading multiple entities by id
  • Method Details

    • getSessionCheckMode

      SessionCheckMode getSessionCheckMode()
      Controls whether to check the current status of each identified entity within the persistence context.
      Since:
      7.2
    • isSessionCheckingEnabled

      @Deprecated(since="7.2", forRemoval=true) default boolean isSessionCheckingEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Check the first-level cache first, and only if the entity is not found in the cache should Hibernate hit the database.
      Returns:
      the session cache is checked first
    • isSecondLevelCacheCheckingEnabled

      boolean isSecondLevelCacheCheckingEnabled()
      Check the second-level cache first, and only if the entity is not found in the cache should Hibernate hit the database.
      Returns:
      the session factory cache is checked first
    • getReadOnly

      Boolean getReadOnly(SessionImplementor session)
      Should the entities be loaded in read-only mode?