Package com.querydsl.sql
Interface SQLDetailedListener
- All Superinterfaces:
SQLListener
- All Known Implementing Classes:
SQLBaseListener,SQLCloseListener,SQLListeners,SQLNoCloseListener
An extended listener interface that details much more about the preparation and execution of queries
-
Method Summary
Modifier and TypeMethodDescriptionvoidend(SQLListenerContext context) Called at the end of a query.voidexception(SQLListenerContext context) Called if an exception happens during query building and execution.voidexecuted(SQLListenerContext context) Called at the end ofPreparedStatementexecution.voidpreExecute(SQLListenerContext context) Called at the start ofPreparedStatementexecution.voidprepared(SQLListenerContext context) Called at the end ofPreparedStatementpreparation.voidprePrepare(SQLListenerContext context) Called at the start ofPreparedStatementpreparation.voidpreRender(SQLListenerContext context) Called at the start of SQL rendering.voidrendered(SQLListenerContext context) Called at the end of SQL rendering.voidstart(SQLListenerContext context) Called at the start of a query.Methods inherited from interface com.querydsl.sql.SQLListener
notifyDelete, notifyDeletes, notifyInsert, notifyInserts, notifyMerge, notifyMerges, notifyQuery, notifyUpdate, notifyUpdates
-
Method Details
-
start
Called at the start of a query. Most context parameters are empty at this stage- Parameters:
context- a context object that is progressively filled out as the query executes
-
preRender
Called at the start of SQL rendering.- Parameters:
context- a context object that is progressively filled out as the query executes
-
rendered
Called at the end of SQL rendering. The sql context value will not be available- Parameters:
context- a context object that is progressively filled out as the query executes
-
prePrepare
Called at the start ofPreparedStatementpreparation.- Parameters:
context- a context object that is progressively filled out as the query executes
-
prepared
Called at the end ofPreparedStatementpreparation.- Parameters:
context- a context object that is progressively filled out as the query executes
-
preExecute
Called at the start ofPreparedStatementexecution.- Parameters:
context- a context object that is progressively filled out as the query executes
-
executed
Called at the end ofPreparedStatementexecution.- Parameters:
context- a context object that is progressively filled out as the query executes
-
exception
Called if an exception happens during query building and execution. The context exception values will now be available indicating the exception that occurred.- Parameters:
context- a context object that is progressively filled out as the query executes
-
end
Called at the end of a query.- Parameters:
context- a context object that is progressively filled out as the query executes
-