Package org.hibernate.loader
Enum Class BatchFetchStyle
- All Implemented Interfaces:
Serializable
,Comparable<BatchFetchStyle>
,java.lang.constant.Constable
Deprecated.
Defines a type of batch loading.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Dynamically builds its SQL based on the actual number of available ids.Deprecated.The legacy algorithm where we keep a set of pre-built batch sizes based onorg.hibernate.internal.util.collections.ArrayHelper#getBatchSizes
.Deprecated.Still keeps the concept of pre-built batch sizes, but uses the next-bigger batch size and pads the extra identifier placeholders. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchFetchStyle
Deprecated.static BatchFetchStyle
Deprecated.static BatchFetchStyle
Deprecated.Returns the enum constant of this class with the specified name.static BatchFetchStyle[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEGACY
Deprecated.The legacy algorithm where we keep a set of pre-built batch sizes based onorg.hibernate.internal.util.collections.ArrayHelper#getBatchSizes
. Batches are performed using the next-smaller pre-built batch size from the number of existing batchable identifiers.For example, with a batch-size setting of 32 the pre-built batch sizes would be [32, 16, 10, 9, 8, 7, .., 1]. An attempt to batch load 31 identifiers would result in batches of 16, 10, and 5.
-
PADDED
Deprecated.Still keeps the concept of pre-built batch sizes, but uses the next-bigger batch size and pads the extra identifier placeholders.Using the same example of a batch-size setting of 32 the pre-built batch sizes would be the same. However, the attempt to batch load 31 identifiers would result just a single batch of size 32. The identifiers to load would be "padded" (aka, repeated) to make up the difference.
-
DYNAMIC
Deprecated.Dynamically builds its SQL based on the actual number of available ids. Does still limit to the batch-size defined on the entity/collection
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
byName
Deprecated. -
interpret
Deprecated.
-
MultiKeyLoadSizingStrategy
instead