Package com.anylogic.engine.database
- java.lang.Object
-
- com.anylogic.engine.database.DeleteQuery
public class DeleteQuery
extends java.lang.Object
DeleteQuery for building and execution of DELETE SQL statements
DeleteQuery(ModelDatabase database,
com.querydsl.sql.RelationalPath<?> table) |
|
Constructor | Description |
---|
long |
execute() |
Executes delete query
|
com.querydsl.sql.dml.SQLDeleteClause |
getDSLQuery() |
|
DeleteQuery |
where(com.querydsl.core.types.Predicate condition) |
Add a condition to identify rows that have to be deleted
|
DeleteQuery |
where(com.querydsl.core.types.Predicate... conditions) |
Add conditions to identify rows that have to be deleted
|
Modifier and Type | Method | Description |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@AnyLogicInternalAPI public DeleteQuery(ModelDatabase database, com.querydsl.sql.RelationalPath<?> table)
@AnyLogicInternalAPI public com.querydsl.sql.dml.SQLDeleteClause getDSLQuery()
public long execute()
Executes delete query
- Returns:
- deleted rows number
public DeleteQuery where(com.querydsl.core.types.Predicate condition)
Add a condition to identify rows that have to be deleted
- Returns:
- DeleteQuery
public DeleteQuery where(com.querydsl.core.types.Predicate... conditions)
Add conditions to identify rows that have to be deleted
- Returns:
- DeleteQuery
-
How can we improve this article?
-