AnyLogic
Expand
Font size

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

Constructor Summary

ConstructorDescription
DeleteQuery(ModelDatabase database, com.querydsl.sql.RelationalPath<?> table) 

Method Summary

Modifier and TypeMethodDescription
longexecute()
Executes delete query
com.querydsl.sql.dml.SQLDeleteClausegetDSLQuery() 
DeleteQuerywhere(com.querydsl.core.types.Predicate condition)
Add a condition to identify rows that have to be deleted
DeleteQuerywhere(com.querydsl.core.types.Predicate... conditions)
Add conditions to identify rows that have to be deleted

Methods inherited from class java.lang.Object

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

Constructor Details

DeleteQuery

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

Method Details

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