Package org.hibernate.persister.entity
Class DiscriminatorHelper
- java.lang.Object
-
- org.hibernate.persister.entity.DiscriminatorHelper
-
-
Field Summary
Fields Modifier and Type Field Description static Object
NOT_NULL_DISCRIMINATOR
static Object
NULL_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> String
jdbcLiteral(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 toClass
for non-inherited ones.
-
-