Top Inners Fields Constructors Methods
org.hibernate.sql.ast.tree.update

public Class UpdateStatement

extends AbstractUpdateOrDeleteStatement
Class Inheritance
Imports
java.util.ArrayList, .Collections, .LinkedHashMap, .List, .Map, org.hibernate.sql.ast.SqlAstWalker, org.hibernate.sql.ast.spi.SqlAstTreeHelper, org.hibernate.sql.ast.tree.AbstractMutationStatement, .AbstractUpdateOrDeleteStatement, org.hibernate.sql.ast.tree.cte.CteContainer, .CteStatement, org.hibernate.sql.ast.tree.expression.ColumnReference, org.hibernate.sql.ast.tree.from.FromClause, .NamedTableReference, org.hibernate.sql.ast.tree.predicate.Predicate

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final List<Assignment>

Constructor Summary

AccessConstructor and Description
public
UpdateStatement(NamedTableReference targetTable, List<Assignment> assignments, Predicate restriction)

public
UpdateStatement(NamedTableReference targetTable, List<Assignment> assignments, Predicate restriction, List<ColumnReference> returningColumns)

public
UpdateStatement(NamedTableReference targetTable, FromClause fromClause, List<Assignment> assignments, Predicate restriction)

public
UpdateStatement(NamedTableReference targetTable, FromClause fromClause, List<Assignment> assignments, Predicate restriction, List<ColumnReference> returningColumns)

public
UpdateStatement(CteContainer cteContainer, NamedTableReference targetTable, FromClause fromClause, List<Assignment> assignments, Predicate restriction, List<ColumnReference> returningColumns)

Method Summary

Modifier and TypeMethod and Description
public void
public List<Assignment>
Inherited from org.hibernate.sql.ast.tree.AbstractUpdateOrDeleteStatement:
getFromClausegetRestriction

Field Detail

assignmentsback to summary
private final List<Assignment> assignments

Constructor Detail

UpdateStatementback to summary
public UpdateStatement(NamedTableReference targetTable, List<Assignment> assignments, Predicate restriction)
UpdateStatementback to summary
public UpdateStatement(NamedTableReference targetTable, List<Assignment> assignments, Predicate restriction, List<ColumnReference> returningColumns)
UpdateStatementback to summary
public UpdateStatement(NamedTableReference targetTable, FromClause fromClause, List<Assignment> assignments, Predicate restriction)
UpdateStatementback to summary
public UpdateStatement(NamedTableReference targetTable, FromClause fromClause, List<Assignment> assignments, Predicate restriction, List<ColumnReference> returningColumns)
UpdateStatementback to summary
public UpdateStatement(CteContainer cteContainer, NamedTableReference targetTable, FromClause fromClause, List<Assignment> assignments, Predicate restriction, List<ColumnReference> returningColumns)

Method Detail

acceptback to summary
public void accept(SqlAstWalker walker)

Implements org.hibernate.sql.ast.tree.Statement.accept.

Doc from org.hibernate.sql.ast.tree.Statement.accept.

Visitation

Annotations
@Override
getAssignmentsback to summary
public List<Assignment> getAssignments()
org.hibernate.sql.ast.tree.update back to summary

public Class UpdateStatement.UpdateStatementBuilder

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.sql.ast.tree.update.UpdateStatement.UpdateStatementBuilder

Field Summary

Modifier and TypeField and Description
private List<Assignment>
private Predicate
private final NamedTableReference

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public UpdateStatement.UpdateStatementBuilder
public UpdateStatement.UpdateStatementBuilder
public UpdateStatement
public UpdateStatement.UpdateStatementBuilder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

assignmentsback to summary
private List<Assignment> assignments
restrictionback to summary
private Predicate restriction
targetTableRefback to summary
private final NamedTableReference targetTableRef

Constructor Detail

UpdateStatementBuilderback to summary
public UpdateStatementBuilder(NamedTableReference targetTableRef)

Method Detail

addAssignmentback to summary
public UpdateStatement.UpdateStatementBuilder addAssignment(Assignment assignment)
addRestrictionback to summary
public UpdateStatement.UpdateStatementBuilder addRestriction(Predicate restriction)
createUpdateAstback to summary
public UpdateStatement createUpdateAst()
setRestrictionback to summary
public UpdateStatement.UpdateStatementBuilder setRestriction(Predicate restriction)