Class DiscriminatorHelper
java.lang.Object
org.hibernate.persister.entity.DiscriminatorHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDiscriminatorSQLValue(PersistentClass persistentClass, Dialect dialect) static BasicType<?> getDiscriminatorType(Component component) static <T> SqmBindableType<? super T> getDiscriminatorType(SqmPathSource<T> domainType, NodeBuilder nodeBuilder) Utility that computes the node type used in entity or embeddable type literals.static DiscriminatorValuegetDiscriminatorValue(PersistentClass persistentClass) static <T> StringjdbcLiteral(T value, JdbcLiteralFormatter<T> formatter, Dialect dialect) static ObjecttoRelationalValue(DiscriminatorValue discriminatorValue)
-
Constructor Details
-
DiscriminatorHelper
public DiscriminatorHelper()
-
-
Method Details
-
getDiscriminatorType
-
getDiscriminatorSQLValue
-
getDiscriminatorValue
-
toRelationalValue
-
jdbcLiteral
-
getDiscriminatorType
public static <T> SqmBindableType<? 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.
-