Package org.hibernate.sql.results.spi
Enum Class ListResultsConsumer.UniqueSemantic
java.lang.Object
java.lang.Enum<ListResultsConsumer.UniqueSemantic>
org.hibernate.sql.results.spi.ListResultsConsumer.UniqueSemantic
- All Implemented Interfaces:
Serializable
,Comparable<ListResultsConsumer.UniqueSemantic>
,Constable
- Enclosing class:
- ListResultsConsumer<R>
public static enum ListResultsConsumer.UniqueSemantic
extends Enum<ListResultsConsumer.UniqueSemantic>
Ways this consumer can handle in-memory row de-duplication
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDe-duplication is allowed if the query and result type allowApply in-memory duplication checks, throwing a HibernateException when duplicates are foundApply in-memory de-duplication, removing rows already part of the resultsNever apply unique handling.Apply no in-memory de-duplication -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ListResultsConsumer.UniqueSemantic[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Apply no in-memory de-duplication -
FILTER
Apply in-memory de-duplication, removing rows already part of the results -
ASSERT
Apply in-memory duplication checks, throwing a HibernateException when duplicates are found -
NEVER
Never apply unique handling. E.g. for NativeQuery. WhereasNONE
can be adjusted, NEVER will never apply unique handling -
ALLOW
De-duplication is allowed if the query and result type allow
-
-
Method Details
-
values
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
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
-