Package org.hibernate.sql.ast.tree.from
Class AbstractColumnReferenceQualifier
- java.lang.Object
-
- org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier
-
- All Implemented Interfaces:
ColumnReferenceQualifier
- Direct Known Subclasses:
AbstractTableGroup,OneToManyTableGroup
public abstract class AbstractColumnReferenceQualifier extends Object implements ColumnReferenceQualifier
-
-
Constructor Summary
Constructors Constructor Description AbstractColumnReferenceQualifier()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TableReferencegetPrimaryTableReference()protected abstract SessionFactoryImplementorgetSessionFactory()TableReferencegetTableReference(NavigablePath navigablePath, String tableExpression, boolean allowFkOptimization, boolean resolve)Returns the table reference for the table expression, or null if not found.protected TableReferencegetTableReferenceInternal(NavigablePath navigablePath, String tableExpression, boolean allowFkOptimization, boolean resolve)protected abstract List<TableReferenceJoin>getTableReferenceJoins()TableReferenceresolveTableReference(NavigablePath navigablePath, String tableExpression, boolean allowFkOptimization)LikeColumnReferenceQualifier.getTableReference(NavigablePath, String, boolean, boolean), but will throw an exception if no table reference can be found, even after resolving possible table reference joins.-
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.tree.from.ColumnReferenceQualifier
getTableReference, getTableReference, resolveTableReference, resolveTableReference
-
-
-
-
Method Detail
-
getPrimaryTableReference
protected abstract TableReference getPrimaryTableReference()
-
getTableReferenceJoins
protected abstract List<TableReferenceJoin> getTableReferenceJoins()
-
getSessionFactory
protected abstract SessionFactoryImplementor getSessionFactory()
-
resolveTableReference
public TableReference resolveTableReference(NavigablePath navigablePath, String tableExpression, boolean allowFkOptimization)
Description copied from interface:ColumnReferenceQualifierLikeColumnReferenceQualifier.getTableReference(NavigablePath, String, boolean, boolean), but will throw an exception if no table reference can be found, even after resolving possible table reference joins.- Specified by:
resolveTableReferencein interfaceColumnReferenceQualifier- Parameters:
navigablePath- The path for which to look up the table reference, may be nulltableExpression- The table expression for which to look up the table referenceallowFkOptimization- Whether a foreign key optimization is allowed i.e. use the FK column on the key-side
-
getTableReference
public TableReference getTableReference(NavigablePath navigablePath, String tableExpression, boolean allowFkOptimization, boolean resolve)
Description copied from interface:ColumnReferenceQualifierReturns the table reference for the table expression, or null if not found.- Specified by:
getTableReferencein interfaceColumnReferenceQualifier- Parameters:
navigablePath- The path for which to look up the table reference, may be nulltableExpression- The table expression for which to look up the table referenceallowFkOptimization- Whether a foreign key optimization is allowed i.e. use the FK column on the key-sideresolve- Whether to potentially create table reference joins for this table group
-
getTableReferenceInternal
protected TableReference getTableReferenceInternal(NavigablePath navigablePath, String tableExpression, boolean allowFkOptimization, boolean resolve)
-
-