Package org.hibernate.sql
Class Update
- java.lang.Object
-
- org.hibernate.sql.Update
-
- All Implemented Interfaces:
RestrictionRenderingContext
@Internal public class Update extends Object implements RestrictionRenderingContext
A SQLUPDATE
statement.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
assignments
protected String
comment
protected List<Restriction>
restrictions
protected String
tableName
-
Constructor Summary
Constructors Constructor Description Update(SessionFactoryImplementor factory)
Update(ParameterMarkerStrategy parameterMarkerStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Update
addAssignment(String columnName)
Update
addAssignment(String columnName, String valueExpression)
Update
addAssignments(String... columnNames)
Update
addColumnIsNotNullRestriction(String columnName)
Update
addColumnIsNullRestriction(String columnName)
Update
addRestriction(String column)
Update
addRestriction(String... columns)
Update
addRestriction(String column, String value)
Update
addRestriction(String column, ComparisonRestriction.Operator op, String value)
String
getTableName()
String
makeParameterMarker()
Update
setComment(String comment)
Update
setTableName(String tableName)
String
toStatementString()
-
-
-
Constructor Detail
-
Update
public Update(SessionFactoryImplementor factory)
-
Update
public Update(ParameterMarkerStrategy parameterMarkerStrategy)
-
-
Method Detail
-
getTableName
public String getTableName()
-
addRestriction
public Update addRestriction(String column, ComparisonRestriction.Operator op, String value)
-
toStatementString
public String toStatementString()
-
makeParameterMarker
public String makeParameterMarker()
- Specified by:
makeParameterMarker
in interfaceRestrictionRenderingContext
-
-