Package com.querydsl.sql
Interface SQLListener
- All Known Subinterfaces:
SQLDetailedListener
- All Known Implementing Classes:
SQLBaseListener,SQLCloseListener,SQLListeners,SQLNoCloseListener
public interface SQLListener
Listener interface for SQL queries and clauses
- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyDelete(RelationalPath<?> entity, QueryMetadata md) Notify about a deletionvoidnotifyDeletes(RelationalPath<?> entity, List<QueryMetadata> batches) Notify about a batch deletionvoidnotifyInsert(RelationalPath<?> entity, QueryMetadata md, List<Path<?>> columns, List<Expression<?>> values, SubQueryExpression<?> subQuery) Notify about an insertionvoidnotifyInserts(RelationalPath<?> entity, QueryMetadata md, List<SQLInsertBatch> batches) Notify about a batch insertionvoidnotifyMerge(RelationalPath<?> entity, QueryMetadata md, List<Path<?>> keys, List<Path<?>> columns, List<Expression<?>> values, SubQueryExpression<?> subQuery) Notify about a mergevoidnotifyMerges(RelationalPath<?> entity, QueryMetadata md, List<SQLMergeBatch> batches) Notify about a batch mergevoidNotify about a queryvoidnotifyUpdate(RelationalPath<?> entity, QueryMetadata md, Map<Path<?>, Expression<?>> updates) Notify about an update operationvoidnotifyUpdates(RelationalPath<?> entity, List<SQLUpdateBatch> batches) Notify about a batch update
-
Method Details
-
notifyQuery
Notify about a query- Parameters:
md- metadata of the query
-
notifyDelete
Notify about a deletion- Parameters:
entity- table to be deleted frommd- metadata of deletion
-
notifyDeletes
Notify about a batch deletion- Parameters:
entity- table to be deleted frombatches- metadata of batches
-
notifyMerge
void notifyMerge(RelationalPath<?> entity, QueryMetadata md, List<Path<?>> keys, List<Path<?>> columns, List<Expression<?>> values, SubQueryExpression<?> subQuery) Notify about a merge- Parameters:
entity- table to be mergedmd- metadata of mergekeys- key columnscolumns- columns to be updated/insertedvalues- valuessubQuery- optional sub query
-
notifyMerges
Notify about a batch merge- Parameters:
entity- table to be mergedmd- metadata of mergebatches- metadata of batches
-
notifyInsert
void notifyInsert(RelationalPath<?> entity, QueryMetadata md, List<Path<?>> columns, List<Expression<?>> values, SubQueryExpression<?> subQuery) Notify about an insertion- Parameters:
entity- table to be inserted intomd- metadata of insertioncolumns- columns to be inserted intovalues- values to be inserted intosubQuery- optional sub query
-
notifyInserts
Notify about a batch insertion- Parameters:
entity- table to be inserted intomd- metadata of insertionbatches- metadata of batches
-
notifyUpdate
Notify about an update operation- Parameters:
entity- table to be updatedmd- metadata of updateupdates- metadata of batches
-
notifyUpdates
Notify about a batch update- Parameters:
entity- table to be updatedbatches- metadata of batches
-