Package org.hibernate.persister.entity
Class DiscriminatorHelper
java.lang.Object
org.hibernate.persister.entity.DiscriminatorHelper
Operations needed by persisters for working with discriminators.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDiscriminatorSQLValue
(PersistentClass persistentClass, Dialect dialect) static BasicType<?>
getDiscriminatorType
(Component component) static <T> SqmExpressible<? super T>
getDiscriminatorType
(SqmPathSource<T> domainType, NodeBuilder nodeBuilder) Utility that computes the node type used in entity or embeddable type literals.static Object
getDiscriminatorValue
(PersistentClass persistentClass) static <T> String
jdbcLiteral
(T value, JdbcLiteralFormatter<T> formatter, Dialect dialect)
-
Field Details
-
NULL_DISCRIMINATOR
-
NOT_NULL_DISCRIMINATOR
-
-
Constructor Details
-
DiscriminatorHelper
public DiscriminatorHelper()
-
-
Method Details
-
getDiscriminatorType
-
getDiscriminatorSQLValue
-
getDiscriminatorValue
-
jdbcLiteral
-
getDiscriminatorType
public static <T> SqmExpressible<? super T> getDiscriminatorType(SqmPathSource<T> domainType, NodeBuilder nodeBuilder) Utility that computes the node type used in entity or embeddable type literals. Resolves to either theDiscriminatorType
, for polymorphic domain types, or toClass
for non-inherited ones.
-