Class DeleteQueryBuilder


  • public class DeleteQueryBuilder
    extends java.lang.Object
    Provides 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
    • Constructor Detail

      • DeleteQueryBuilder

        public DeleteQueryBuilder​(org.jooq.DSLContext dslContext)