Package org.hibernate.sql.ast.tree.from
Interface TableReference
- All Superinterfaces:
ColumnReferenceQualifier
,SqlAstNode
- All Known Implementing Classes:
AbstractTableReference
,DerivedTableReference
,EmbeddableFunctionTableReference
,FunctionTableReference
,MutatingTableReference
,NamedTableReference
,QueryPartTableReference
,UnionTableReference
,ValuesTableReference
Represents a reference to a table (derived or physical) in a query's from clause.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker sqlTreeWalker) default void
applyAffectedTableNames
(Consumer<String> nameCollector) default @Nullable EmbeddableFunctionTableReference
default boolean
containsAffectedTableName
(String requestedName) An identifier for the table reference.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) Returns the table reference for the table expression, or null if not found.default boolean
boolean
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.visitAffectedTableNames
(Function<String, Boolean> nameCollector) Methods inherited from interface org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier
getTableReference, getTableReference, getTableReference, resolveTableReference, resolveTableReference
-
Method Details
-
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
- Specified by:
accept
in interfaceSqlAstNode
-
applyAffectedTableNames
-
getAffectedTableNames
-
containsAffectedTableName
-
visitAffectedTableNames
-
isEmbeddableFunctionTableReference
default boolean isEmbeddableFunctionTableReference() -
asEmbeddableFunctionTableReference
-