public class UpdateQuery
extends java.lang.Object
Constructor and Description |
---|
UpdateQuery(ModelDatabase database,
<any> table) |
Modifier and Type | Method and Description |
---|---|
long |
execute()
Executes update query
|
SQLUpdateClause |
getDSLQuery() |
<T> UpdateQuery |
set(<any> column,
<any> value)
Set column with its value to update with
|
<T> UpdateQuery |
set(<any> column,
T value)
Set column with its value to update with
|
UpdateQuery |
set(java.util.List<? extends <any>> columns,
java.util.List<?> values)
Set columns with its values to update with
|
UpdateQuery |
where(Predicate... conditions)
Add conditions to identify rows that have to be updated
|
UpdateQuery |
where(Predicate condition)
Add a condition to identify rows that have to be updated
|
@AnyLogicInternalAPI public UpdateQuery(ModelDatabase database, <any> table)
@AnyLogicInternalAPI public SQLUpdateClause getDSLQuery()
public long execute()
public UpdateQuery set(java.util.List<? extends <any>> columns, java.util.List<?> values)
columns
- columns to updatevalues
- values of that columnspublic <T> UpdateQuery set(<any> column, <any> value)
column
- column to updatevalue
- value of that columnpublic <T> UpdateQuery set(<any> column, T value)
column
- column to updatevalue
- value of that columnpublic UpdateQuery where(Predicate condition)
public UpdateQuery where(Predicate... conditions)
Copyright © AnyLogic North America, LLC. All Rights Reserved.