public class

CriteriaJoinWalker

extends AbstractEntityJoinWalker
java.lang.Object
   ↳ org.hibernate.loader.JoinWalker
     ↳ org.hibernate.loader.AbstractEntityJoinWalker
       ↳ org.hibernate.loader.criteria.CriteriaJoinWalker

Class Overview

A JoinWalker for Criteria queries.

See Also

Summary

[Expand]
Inherited Fields
From class org.hibernate.loader.JoinWalker
Public Constructors
CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers)
CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers, String alias)
Public Methods
String getComment()
Set getQuerySpaces()
Type[] getResultTypes()
String[] getUserAliases()
Protected Methods
String generateRootAlias(String tableName)
String generateTableAlias(int n, PropertyPath path, Joinable joinable)
int getJoinType(OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth)
Determine the appropriate type of join (if any) to use to fetch the given association.
int getJoinType(AssociationType associationType, FetchMode config, PropertyPath path, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth, CascadeStyle cascadeStyle)
Determine the appropriate associationType of join (if any) to use to fetch the given association.
String getWhereFragment()
Use the discriminator, to narrow the select to instances of the queried subclass, also applying any filters.
String getWithClause(PropertyPath path)
[Expand]
Inherited Methods
From class org.hibernate.loader.AbstractEntityJoinWalker
From class org.hibernate.loader.JoinWalker
From class java.lang.Object

Public Constructors

public CriteriaJoinWalker (OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers)

public CriteriaJoinWalker (OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers, String alias)

Public Methods

public String getComment ()

public Set getQuerySpaces ()

public Type[] getResultTypes ()

public String[] getUserAliases ()

Protected Methods

protected String generateRootAlias (String tableName)

protected String generateTableAlias (int n, PropertyPath path, Joinable joinable)

protected int getJoinType (OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth)

Determine the appropriate type of join (if any) to use to fetch the given association.

Parameters
persister The owner of the association.
path The path to the association
propertyNumber The property number representing the association.
associationType The association type.
metadataFetchMode The metadata-defined fetch mode.
metadataCascadeStyle The metadata-defined cascade style.
lhsTable The owner table
lhsColumns The owner join columns
nullable Is the association nullable.
currentDepth Current join depth
Returns

protected int getJoinType (AssociationType associationType, FetchMode config, PropertyPath path, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth, CascadeStyle cascadeStyle)

Determine the appropriate associationType of join (if any) to use to fetch the given association.

Parameters
associationType The association associationType.
config The metadata-defined fetch mode.
path The path to the association
lhsTable The owner table
lhsColumns The owner join columns
nullable Is the association nullable.
currentDepth Current join depth
cascadeStyle The metadata-defined cascade style.
Returns

protected String getWhereFragment ()

Use the discriminator, to narrow the select to instances of the queried subclass, also applying any filters.

protected String getWithClause (PropertyPath path)