Top Description Fields Constructors Methods
org.hibernate.sql.ast.spi

public Class SimpleFromClauseAccessImpl

extends Object
implements FromClauseAccess
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.ast.spi.FromClauseAccess
Known Direct Subclasses
org.hibernate.query.sqm.sql.FromClauseIndex
Imports
java.util.HashMap, .Map, org.hibernate.metamodel.model.domain.NavigableRole, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.SqlTreeCreationLogger, org.hibernate.sql.ast.tree.from.CorrelatedTableGroup, .TableGroup, org.jboss.logging.Logger

Simple implementation of FromClauseAccess
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
protected final FromClauseAccess
protected final Map<NavigablePath, TableGroup>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public TableGroup
findTableGroup(NavigablePath navigablePath)

Implements org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroup.

Find a TableGroup by the NavigablePath it is registered under, and if not found on the current from clause level, ask the parent.
public TableGroup
findTableGroupForGetOrCreate(NavigablePath navigablePath)

Overrides default org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroupForGetOrCreate.

Find the TableGroup by the NavigablePath for the purpose of creating a new TableGroup if none can be found.
public TableGroup
findTableGroupOnCurrentFromClause(NavigablePath navigablePath)

Implements org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroupOnCurrentFromClause.

Find a TableGroup in this from clause without consulting parents by the NavigablePath it is registered under.
private TableGroup
public void
registerTableGroup(NavigablePath navigablePath, TableGroup tableGroup)

Implements org.hibernate.sql.ast.spi.FromClauseAccess.registerTableGroup.

Register a TableGroup under the given `navigablePath`.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parentback to summary
protected final FromClauseAccess parent
tableGroupMapback to summary
protected final Map<NavigablePath, TableGroup> tableGroupMap

Constructor Detail

SimpleFromClauseAccessImplback to summary
public SimpleFromClauseAccessImpl()
SimpleFromClauseAccessImplback to summary
public SimpleFromClauseAccessImpl(FromClauseAccess parent)

Method Detail

findTableGroupback to summary
public TableGroup findTableGroup(NavigablePath navigablePath)

Implements org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroup.

Doc from org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroup.

Find a TableGroup by the NavigablePath it is registered under, and if not found on the current from clause level, ask the parent. Returns null if no TableGroup is registered under that NavigablePath

Annotations
@Override
findTableGroupForGetOrCreateback to summary
public TableGroup findTableGroupForGetOrCreate(NavigablePath navigablePath)

Overrides default org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroupForGetOrCreate.

Doc from org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroupForGetOrCreate.

Find the TableGroup by the NavigablePath for the purpose of creating a new TableGroup if none can be found. Returns null if no TableGroup or parent table group is registered under that NavigablePath

Annotations
@Override
findTableGroupOnCurrentFromClauseback to summary
public TableGroup findTableGroupOnCurrentFromClause(NavigablePath navigablePath)

Implements org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroupOnCurrentFromClause.

Doc from org.hibernate.sql.ast.spi.FromClauseAccess.findTableGroupOnCurrentFromClause.

Find a TableGroup in this from clause without consulting parents by the NavigablePath it is registered under. Returns null if no TableGroup is registered under that NavigablePath

Annotations
@Override
getCorrelatedTableGroupback to summary
private TableGroup getCorrelatedTableGroup(TableGroup tableGroup)
registerTableGroupback to summary
public void registerTableGroup(NavigablePath navigablePath, TableGroup tableGroup)

Implements org.hibernate.sql.ast.spi.FromClauseAccess.registerTableGroup.

Doc from org.hibernate.sql.ast.spi.FromClauseAccess.registerTableGroup.

Register a TableGroup under the given `navigablePath`. Logs a message if this registration over-writes an existing one.

Annotations
@Override