Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.loader.criteria
Class CriteriaJoinWalker

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

    public class CriteriaJoinWalker

extends AbstractEntityJoinWalker

A `JoinWalker` for `Criteria` queries.

Author:
  Gavin King
See Also:
  `CriteriaLoader`

Field Summary

Fields inherited from class org.hibernate.loader.JoinWalker
`aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes`

Constructor Summary
`CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, Map enabledFilters)`
`CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, Map enabledFilters, String alias)`

Method Summary
`protected String` | `generateRootAlias(String tableName)`
`protected String` | `generateTableAlias(int n, String path, Joinable joinable)`
`String` | `getComment()`
`protected int` | `getJoinType(AssociationType type, FetchMode config, String path, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth, CascadeStyle cascadeStyle)` Get the join type (inner, outer, etc) or -1 if the association should not be joined.
`Set` | `getQuerySpaces()`
`Type[]` | `getResultTypes()`
`String[]` | `getUserAliases()`
`protected String` | `getWhereFragment()` Use the discriminator, to narrow the select to instances of the queried subclass, also applying any filters.

Methods inherited from class org.hibernate.loader.AbstractEntityJoinWalker
`getAlias, getPersister, initAll, initProjection, isJoinedFetchEnabled, toString`

Methods inherited from class org.hibernate.loader.JoinWalker
`countCollectionPersisters, countEntityPersisters, getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getFactory, getJoinType, getLockModeArray, getOwnerAssociationTypes, getOwners, getPersisters, getSQLString, getSuffixes, initPersisters, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabledInMapping, isTooDeep, isTooManyCollections, mergeOrderings, mergeOuterJoins, orderBy, orderBy, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setLockModeArray, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CriteriaJoinWalker

    public CriteriaJoinWalker(OuterJoinLoadable persister,
                              CriteriaQueryTranslator translator,
                              SessionFactoryImplementor factory,
                              CriteriaImpl criteria,
                              String rootEntityName,
                              Map enabledFilters)

### CriteriaJoinWalker

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

Method Detail

### getResultTypes

    public Type[] getResultTypes()

### getUserAliases

    public String[] getUserAliases()

### getJoinType

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

  Description copied from class: `JoinWalker`
  Get the join type (inner, outer, etc) or -1 if the association should not be joined. Override on subclasses.

  Overrides:
    `getJoinType` in class `JoinWalker`
  Throws:
    `MappingException`

### getWhereFragment

    protected String getWhereFragment()
                               throws MappingException

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

  Overrides:
    `getWhereFragment` in class `AbstractEntityJoinWalker`
  Throws:
    `MappingException`

### generateTableAlias

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

  Overrides:
    `generateTableAlias` in class `JoinWalker`

### generateRootAlias

    protected String generateRootAlias(String tableName)

  Overrides:
    `generateRootAlias` in class `JoinWalker`

### getQuerySpaces

    public Set getQuerySpaces()

### getComment

    public String getComment()

  Specified by:
    `getComment` in class `AbstractEntityJoinWalker`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD