001package io.ebean.event;
002
003/**
004 * The bulk table event.
005 */
006public interface BulkTableEvent {
007
008  /**
009   * Return the name of the table that was involved.
010   */
011  String tableName();
012
013  /**
014   * Deprecated migrate to tableName().
015   */
016  @Deprecated
017  default String getTableName() {
018    return tableName();
019  }
020
021  /**
022   * Return true if rows were inserted.
023   */
024  boolean isInsert();
025
026  /**
027   * Return true if rows were updated.
028   */
029  boolean isUpdate();
030
031  /**
032   * Return true if rows were deleted.
033   */
034  boolean isDelete();
035
036}