Package org.hibernate.sql.ast.tree.from
Class UnionTableReference
- java.lang.Object
-
- org.hibernate.sql.ast.tree.from.AbstractTableReference
-
- org.hibernate.sql.ast.tree.from.NamedTableReference
-
- org.hibernate.sql.ast.tree.from.UnionTableReference
-
- All Implemented Interfaces:
ColumnReferenceQualifier
,TableReference
,SqlAstNode
public class UnionTableReference extends NamedTableReference
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.ast.tree.from.AbstractTableReference
identificationVariable, isOptional
-
-
Constructor Summary
Constructors Constructor Description UnionTableReference(String unionTableExpression, String[] subclassTableSpaceExpressions, String identificationVariable)
UnionTableReference(String unionTableExpression, String[] subclassTableSpaceExpressions, String identificationVariable, boolean isOptional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsAffectedTableName(String requestedName)
TableReference
getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Returns the table reference for the table expression, or null if not found.TableReference
resolveTableReference(NavigablePath navigablePath, String tableExpression)
LikeColumnReferenceQualifier.getTableReference(NavigablePath, String, boolean)
, but will throw an exception if no table reference can be found, even after resolving possible table reference joins.Boolean
visitAffectedTableNames(Function<String,Boolean> nameCollector)
-
Methods inherited from class org.hibernate.sql.ast.tree.from.NamedTableReference
accept, getAffectedTableNames, getTableExpression, getTableId, setPrunedTableExpression, toString
-
Methods inherited from class org.hibernate.sql.ast.tree.from.AbstractTableReference
equals, getIdentificationVariable, hashCode, isOptional
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier
getTableReference, getTableReference, getTableReference, resolveTableReference, resolveTableReference
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableReference
applyAffectedTableNames, asEmbeddableFunctionTableReference, isEmbeddableFunctionTableReference
-
-
-
-
Method Detail
-
resolveTableReference
public TableReference resolveTableReference(NavigablePath navigablePath, String tableExpression)
Description copied from interface:ColumnReferenceQualifier
LikeColumnReferenceQualifier.getTableReference(NavigablePath, String, boolean)
, but will throw an exception if no table reference can be found, even after resolving possible table reference joins.- Specified by:
resolveTableReference
in interfaceColumnReferenceQualifier
- Specified by:
resolveTableReference
in interfaceTableReference
- Overrides:
resolveTableReference
in classNamedTableReference
- 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 reference
-
getTableReference
public TableReference getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Description copied from interface:ColumnReferenceQualifier
Returns the table reference for the table expression, or null if not found.- Specified by:
getTableReference
in interfaceColumnReferenceQualifier
- Specified by:
getTableReference
in interfaceTableReference
- Overrides:
getTableReference
in classNamedTableReference
- 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 referenceresolve
- Whether to potentially create table reference joins for this table group
-
containsAffectedTableName
public boolean containsAffectedTableName(String requestedName)
- Specified by:
containsAffectedTableName
in interfaceTableReference
- Overrides:
containsAffectedTableName
in classNamedTableReference
-
visitAffectedTableNames
public Boolean visitAffectedTableNames(Function<String,Boolean> nameCollector)
- Specified by:
visitAffectedTableNames
in interfaceTableReference
- Overrides:
visitAffectedTableNames
in classNamedTableReference
-
-