001package com.avaje.ebean.event; 002 003import com.avaje.ebean.Transaction; 004 005/** 006 * Used to get notified about commit or rollback of a transaction 007 */ 008public interface TransactionEventListener { 009 /** 010 * Called after the transaction has been committed 011 */ 012 void postTransactionCommit(Transaction tx); 013 014 /** 015 * Called after the transaction has been rolled back 016 */ 017 void postTransactionRollback(Transaction tx, Throwable cause); 018}