Package org.hibernate.sql.ast.spi
Class SimpleFromClauseAccessImpl
- java.lang.Object
-
- org.hibernate.sql.ast.spi.SimpleFromClauseAccessImpl
-
- All Implemented Interfaces:
FromClauseAccess
- Direct Known Subclasses:
FromClauseIndex
public class SimpleFromClauseAccessImpl extends Object implements FromClauseAccess
Simple implementation of FromClauseAccess
-
-
Field Summary
Fields Modifier and Type Field Description protected FromClauseAccess
parent
protected Map<NavigablePath,TableGroup>
tableGroupMap
-
Constructor Summary
Constructors Constructor Description SimpleFromClauseAccessImpl()
SimpleFromClauseAccessImpl(FromClauseAccess parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableGroup
findTableGroup(NavigablePath navigablePath)
Find a TableGroup by the NavigablePath it is registered under, and if not found on the current from clause level, ask the parent.TableGroup
findTableGroupForGetOrCreate(NavigablePath navigablePath)
Find the TableGroup by the NavigablePath for the purpose of creating a new TableGroup if none can be found.TableGroup
findTableGroupOnCurrentFromClause(NavigablePath navigablePath)
Find a TableGroup in this from clause without consulting parents by the NavigablePath it is registered under.void
registerTableGroup(NavigablePath navigablePath, TableGroup tableGroup)
Register a TableGroup under the given `navigablePath`.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.spi.FromClauseAccess
getTableGroup, resolveTableGroup
-
-
-
-
Field Detail
-
parent
protected final FromClauseAccess parent
-
tableGroupMap
protected final Map<NavigablePath,TableGroup> tableGroupMap
-
-
Constructor Detail
-
SimpleFromClauseAccessImpl
public SimpleFromClauseAccessImpl()
-
SimpleFromClauseAccessImpl
public SimpleFromClauseAccessImpl(FromClauseAccess parent)
-
-
Method Detail
-
findTableGroupOnCurrentFromClause
public TableGroup findTableGroupOnCurrentFromClause(NavigablePath navigablePath)
Description copied from interface:FromClauseAccess
Find a TableGroup in this from clause without consulting parents by the NavigablePath it is registered under. Returnsnull
if no TableGroup is registered under that NavigablePath- Specified by:
findTableGroupOnCurrentFromClause
in interfaceFromClauseAccess
-
findTableGroup
public TableGroup findTableGroup(NavigablePath navigablePath)
Description copied from interface:FromClauseAccess
Find a TableGroup by the NavigablePath it is registered under, and if not found on the current from clause level, ask the parent. Returnsnull
if no TableGroup is registered under that NavigablePath- Specified by:
findTableGroup
in interfaceFromClauseAccess
-
findTableGroupForGetOrCreate
public TableGroup findTableGroupForGetOrCreate(NavigablePath navigablePath)
Description copied from interface:FromClauseAccess
Find the TableGroup by the NavigablePath for the purpose of creating a new TableGroup if none can be found. Returnsnull
if no TableGroup or parent table group is registered under that NavigablePath- Specified by:
findTableGroupForGetOrCreate
in interfaceFromClauseAccess
-
registerTableGroup
public void registerTableGroup(NavigablePath navigablePath, TableGroup tableGroup)
Description copied from interface:FromClauseAccess
Register a TableGroup under the given `navigablePath`. Logs a message if this registration over-writes an existing one.- Specified by:
registerTableGroup
in interfaceFromClauseAccess
-
-