Interface MultiIdLoadOptions
- All Superinterfaces:
MultiLoadOptions
Encapsulation of the options for loading multiple entities (of a type)
by id.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetReadOnly(SessionImplementor session) Should the entities be loaded in read-only mode?Controls whether to check the current status of each identified entity within the persistence context.booleanWhether the operation is configured to refresh the state of the loaded entities in the session's first level cache.booleanCheck the second-level cache first, and only if the entity is not found in the cache should Hibernate hit the database.default booleanDeprecated, for removal: This API element is subject to removal in a future version.Use getSessionCheckMode() instead.Methods inherited from interface MultiLoadOptions
getBatchSize, getLockOptions, getOrderingMode, getRemovalsMode, isOrderReturnEnabled, isReturnOfDeletedEntitiesEnabled
-
Method Details
-
getSessionCheckMode
Controls whether to check the current status of each identified entity within the persistence context.- Since:
- 7.2
-
isSessionCheckingEnabled
Deprecated, for removal: This API element is subject to removal in a future version.Use getSessionCheckMode() instead.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
-
isRefreshSession
boolean isRefreshSession()Whether the operation is configured to refresh the state of the loaded entities in the session's first level cache.- Returns:
true, ifCacheMode.REFRESH_SESSIONis configured,falseotherwise- See Also:
-
getReadOnly
Should the entities be loaded in read-only mode?
-