All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.api.SpiTxnLogger Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.api;

/**
 * Per Transaction logging of SQL, TXN and Summary messages.
 */
public interface SpiTxnLogger {

  String id();

  /**
   * Is debug logging enabled.
   */
  boolean isLogSql();

  /**
   * Is summary logging enabled.
   */
  boolean isLogSummary();

  /**
   * Log a SQL message.
   */
  void sql(String msg, Object... args);

  /**
   * Log a Summary message.
   */
  void sum(String msg, Object... args);

  /**
   * Log a Transaction message.
   */
  void txn(String msg, Object... args);

  /**
   * Transaction Committed.
   */
  void notifyCommit();

  /**
   * Query only transaction completed.
   */
  void notifyQueryOnly();

  /**
   * Transaction Rolled back.
   */
  void notifyRollback(Throwable cause);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy