Package org.hibernate.sql.ast.tree.from
Interface TableReference
-
- All Superinterfaces:
ColumnReferenceQualifier
,SqlAstNode
- All Known Implementing Classes:
AbstractTableReference
,DerivedTableReference
,FunctionTableReference
,MutatingTableReference
,NamedTableReference
,QueryPartTableReference
,UnionTableReference
,ValuesTableReference
public interface TableReference extends SqlAstNode, ColumnReferenceQualifier
Represents a reference to a table (derived or physical) in a query's from clause.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
default void
applyAffectedTableNames(Consumer<String> nameCollector)
default boolean
containsAffectedTableName(String requestedName)
default List<String>
getAffectedTableNames()
String
getIdentificationVariable()
String
getTableId()
An identifier for the table reference.TableReference
getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Returns the table reference for the table expression, or null if not found.boolean
isOptional()
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 interface org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier
getTableReference, getTableReference, getTableReference, resolveTableReference, resolveTableReference
-
-
-
-
Method Detail
-
getIdentificationVariable
String getIdentificationVariable()
-
getTableId
String getTableId()
An identifier for the table reference. May be null if this is not a named table reference.
-
isOptional
boolean isOptional()
-
accept
void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
containsAffectedTableName
default boolean containsAffectedTableName(String requestedName)
-
resolveTableReference
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
- 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
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
- 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
-
-