Package com.anylogic.engine.database
- java.lang.Object
- com.anylogic.engine.database.DeleteQuery
public class DeleteQuery extends Object
DeleteQuery for building and execution of DELETE SQL statements
Constructor | Description |
---|---|
DeleteQuery |
Modifier and Type | Method | Description |
---|---|---|
long | execute() |
Executes delete query
|
com.querydsl.sql.dml.SQLDeleteClause | getDSLQuery() | |
DeleteQuery | where |
Add a condition to identify rows that have to be deleted
|
DeleteQuery | where |
Add conditions to identify rows that have to be deleted
|
@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