Package org.hibernate.persister.entity
Interface DiscriminatorMetadata
-
public interface DiscriminatorMetadataProvides the information needed to properly handle type discrimination in HQL queries, either by 'something.class' or 'type(something)' references.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypegetResolutionType()Get the type used to resolve the actual discriminator value resulting fromgetSqlFragment(java.lang.String)back into aClassreference.java.lang.StringgetSqlFragment(java.lang.String sqlQualificationAlias)Get the sql fragment that is used to determine the actual discriminator value for a row.
-
-
-
Method Detail
-
getSqlFragment
java.lang.String getSqlFragment(java.lang.String sqlQualificationAlias)
Get the sql fragment that is used to determine the actual discriminator value for a row.- Parameters:
sqlQualificationAlias- The qualification alias to append to any columns references in the generated fragment.- Returns:
- The fragment
-
getResolutionType
Type getResolutionType()
Get the type used to resolve the actual discriminator value resulting fromgetSqlFragment(java.lang.String)back into aClassreference.- Returns:
- The resolution type.
-
-