AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.database.DeleteQuery

public class DeleteQuery
extends java.lang.Object
DeleteQuery for building and execution of DELETE SQL statements

Constructor Summary

Constructors 
DeleteQuery​(ModelDatabase database, com.querydsl.sql.RelationalPath<?> table)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
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

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

DeleteQuery

@AnyLogicInternalAPI
public DeleteQuery​(ModelDatabase database,
                   com.querydsl.sql.RelationalPath<?> table)

Method Detail

getDSLQuery

@AnyLogicInternalAPI
public com.querydsl.sql.dml.SQLDeleteClause getDSLQuery()

execute

public long execute()
Executes delete query
Returns:
deleted rows number

where

public DeleteQuery where​(com.querydsl.core.types.Predicate condition)
Add a condition to identify rows that have to be deleted
Returns:
DeleteQuery

where

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?