Package com.anylogic.engine.database
- java.lang.Object
- com.anylogic.engine.database.UpdateQuery
public class UpdateQuery extends Object
UpdateQuery for building and execution of UPDATE SQL statements
Constructor | Description |
---|---|
UpdateQuery |
Modifier and Type | Method | Description |
---|---|---|
long | execute() |
Executes update query
|
com.querydsl.sql.dml.SQLUpdateClause | getDSLQuery() | |
<T> UpdateQuery | set |
Set column with its value to update with
|
<T> UpdateQuery | set |
Set column with its value to update with
|
UpdateQuery | set |
Set columns with its values to update with
|
UpdateQuery | where |
Add a condition to identify rows that have to be updated
|
UpdateQuery | where |
Add conditions to identify rows that have to be updated
|
@AnyLogicInternalAPI public UpdateQuery(ModelDatabase database, com.querydsl.sql.RelationalPath<?> table)
@AnyLogicInternalAPI public com.querydsl.sql.dml.SQLUpdateClause getDSLQuery()
public long execute()
Executes update query
- Returns:
- updated rows number
public UpdateQuery set(List<? extends com.querydsl.core.types.Path<?>> columns, List<?> values)
Set columns with its values to update with
- Parameters:
columns
- columns to updatevalues
- values of that columns- Returns:
- UpdateQuery
public <T> UpdateQuery set(com.querydsl.core.types.Path<T> column, com.querydsl.core.types.Expression<? extends T> value)
Set column with its value to update with
- Parameters:
column
- column to updatevalue
- value of that column- Returns:
- UpdateQuery
public <T> UpdateQuery set(com.querydsl.core.types.Path<T> column, T value)
Set column with its value to update with
- Parameters:
column
- column to updatevalue
- value of that column- Returns:
- UpdateQuery
public UpdateQuery where(com.querydsl.core.types.Predicate condition)
Add a condition to identify rows that have to be updated
- Returns:
- UpdateQuery
public UpdateQuery where(com.querydsl.core.types.Predicate... conditions)
Add conditions to identify rows that have to be updated
- Returns:
- UpdateQuery