Package com.kenshoo.jooq
Class DeleteQueryBuilder
- java.lang.Object
-
- com.kenshoo.jooq.DeleteQueryBuilder
-
public class DeleteQueryBuilder extends java.lang.ObjectProvides a convenient (and MySQL-friendly) way of solving the use-case of deleting records by N identifiers. The simplest case is deleting by a list of IDs in which case it could be expressed with a simple IN. However in terms of performance (and logs) it's better to do a join with a temporary table populated with those IDs instead. This class does it automatically. The returned object is a resource and it is crucial to place it inside try/finally block so it could be closed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDeleteQueryBuilder.BuilderIn1<T>static interfaceDeleteQueryBuilder.BuilderWith
-
Constructor Summary
Constructors Constructor Description DeleteQueryBuilder(org.jooq.DSLContext dslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteQueryBuilder.BuilderWithtable(org.jooq.impl.TableImpl<org.jooq.Record> table)
-
-
-
Method Detail
-
table
public DeleteQueryBuilder.BuilderWith table(org.jooq.impl.TableImpl<org.jooq.Record> table)
-
-