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 Details

    • notifyQuery

      void notifyQuery(QueryMetadata md)
      Notify about a query
      Parameters:
      md - metadata of the query
    • notifyDelete

      void notifyDelete(RelationalPath<?> entity, QueryMetadata md)
      Notify about a deletion
      Parameters:
      entity - table to be deleted from
      md - metadata of deletion
    • notifyDeletes

      void notifyDeletes(RelationalPath<?> entity, List<QueryMetadata> batches)
      Notify about a batch deletion
      Parameters:
      entity - table to be deleted from
      batches - 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 merged
      md - metadata of merge
      keys - key columns
      columns - columns to be updated/inserted
      values - values
      subQuery - optional sub query
    • notifyMerges

      void notifyMerges(RelationalPath<?> entity, QueryMetadata md, List<SQLMergeBatch> batches)
      Notify about a batch merge
      Parameters:
      entity - table to be merged
      md - metadata of merge
      batches - 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 into
      md - metadata of insertion
      columns - columns to be inserted into
      values - values to be inserted into
      subQuery - optional sub query
    • notifyInserts

      void notifyInserts(RelationalPath<?> entity, QueryMetadata md, List<SQLInsertBatch> batches)
      Notify about a batch insertion
      Parameters:
      entity - table to be inserted into
      md - metadata of insertion
      batches - metadata of batches
    • notifyUpdate

      void notifyUpdate(RelationalPath<?> entity, QueryMetadata md, Map<Path<?>,Expression<?>> updates)
      Notify about an update operation
      Parameters:
      entity - table to be updated
      md - metadata of update
      updates - metadata of batches
    • notifyUpdates

      void notifyUpdates(RelationalPath<?> entity, List<SQLUpdateBatch> batches)
      Notify about a batch update
      Parameters:
      entity - table to be updated
      batches - metadata of batches