Module org.jooq
Package org.jooq

Interface RecordListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CallbackRecordListener, DefaultRecordListener

public interface RecordListener extends EventListener
A listener for manipulation events on UpdatableRecords.

Users may want to centrally inject custom behaviour when manipulating their UpdatableRecord objects, performing CRUD. This service provider allows to hook in callback method implementations for before or after any of these methods:

A RecordListener does not act as a client-side trigger. As such, it does not affect any bulk DML statements (e.g. a DSLContext.update(Table)), whose affected records are not available to clients. For those purposes, use a server-side trigger DSLContext.createTrigger(Name) if records should be changed, or a VisitListener if the SQL query should be changed, independently of data.

Author:
Lukas Eder