Package org.hibernate.persister.entity
Class DiscriminatorHelper
- java.lang.Object
-
- org.hibernate.persister.entity.DiscriminatorHelper
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectNOT_NULL_DISCRIMINATORstatic ObjectNULL_DISCRIMINATOR
-
Constructor Summary
Constructors Constructor Description DiscriminatorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 <T> StringjdbcLiteral(T value, JdbcLiteralFormatter<T> formatter, Dialect dialect)
-
-
-
Method Detail
-
jdbcLiteral
public static <T> String jdbcLiteral(T value, JdbcLiteralFormatter<T> formatter, Dialect dialect)
-
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 toClassfor non-inherited ones.
-
-