Package org.hibernate.sql.model.ast
Class MutatingTableReference
- java.lang.Object
-
- org.hibernate.sql.model.ast.MutatingTableReference
-
- All Implemented Interfaces:
ColumnReferenceQualifier
,TableReference
,SqlAstNode
public class MutatingTableReference extends Object implements TableReference
Specialized TableReference for model mutation operations
-
-
Constructor Summary
Constructors Constructor Description MutatingTableReference(TableMapping tableMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
boolean
equals(Object o)
String
getIdentificationVariable()
String
getTableId()
An identifier for the table reference.TableMapping
getTableMapping()
String
getTableName()
TableReference
getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Returns the table reference for the table expression, or null if not found.TableReference
getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
int
hashCode()
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.TableReference
resolveTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression)
String
toString()
Boolean
visitAffectedTableNames(Function<String,Boolean> nameCollector)
-
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, resolveTableReference
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableReference
applyAffectedTableNames, containsAffectedTableName, getAffectedTableNames
-
-
-
-
Constructor Detail
-
MutatingTableReference
public MutatingTableReference(TableMapping tableMapping)
-
-
Method Detail
-
getTableMapping
public TableMapping getTableMapping()
-
getTableName
public String getTableName()
-
getIdentificationVariable
public String getIdentificationVariable()
- Specified by:
getIdentificationVariable
in interfaceTableReference
-
getTableId
public String getTableId()
Description copied from interface:TableReference
An identifier for the table reference. May be null if this is not a named table reference.- Specified by:
getTableId
in interfaceTableReference
-
isOptional
public boolean isOptional()
- Specified by:
isOptional
in interfaceTableReference
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
- Specified by:
accept
in interfaceTableReference
-
visitAffectedTableNames
public Boolean visitAffectedTableNames(Function<String,Boolean> nameCollector)
- Specified by:
visitAffectedTableNames
in interfaceTableReference
-
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
- 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
-
resolveTableReference
public TableReference resolveTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression)
- Specified by:
resolveTableReference
in interfaceColumnReferenceQualifier
-
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
- 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
-
getTableReference
public TableReference getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
- Specified by:
getTableReference
in interfaceColumnReferenceQualifier
-
-