Package org.hibernate.persister.entity
Enum Class EntityNameUse.UseKind
- All Implemented Interfaces:
Serializable
,Comparable<EntityNameUse.UseKind>
,java.lang.constant.Constable
- Enclosing class:
- EntityNameUse
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn entity type is used through a path expression, but doesn't match the criteria forPROJECTION
.An entity type is filtered for through a type restriction predicate i.e.An entity type is used through a path that appears in theSELECT
clause somehow.An entity type is used through a treat expression. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
stronger
(EntityNameUse.UseKind other) static EntityNameUse.UseKind
Returns the enum constant of this class with the specified name.static EntityNameUse.UseKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.weaker
(EntityNameUse.UseKind other)
-
Enum Constant Details
-
PROJECTION
An entity type is used through a path that appears in theSELECT
clause somehow. This use kind is registered for top level select items or join fetches. -
EXPRESSION
An entity type is used through a path expression, but doesn't match the criteria forPROJECTION
. -
TREAT
An entity type is used through a treat expression. -
FILTER
An entity type is filtered for through a type restriction predicate i.e.type(alias) = Subtype
.
-
-
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
-
isStrongerThan
-
stronger
-
isWeakerThan
-
weaker
-