public interface

DiscriminatorMetadata

org.hibernate.persister.entity.DiscriminatorMetadata

Class Overview

Provides the information needed to properly handle type discrimination in HQL queries, either by 'something.class' or 'type(something)' references.

Summary

Public Methods
abstract Type getResolutionType()
Get the type used to resolve the actual discriminator value resulting from getSqlFragment(String) back into a Class reference.
abstract String getSqlFragment(String sqlQualificationAlias)
Get the sql fragment that is used to determine the actual discriminator value for a row.

Public Methods

public abstract Type getResolutionType ()

Get the type used to resolve the actual discriminator value resulting from getSqlFragment(String) back into a Class reference.

Returns
  • The resolution type.

public abstract String getSqlFragment (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