001package io.ebean.config; 002 003/** 004 * Provides awareness of externally managed transactions. 005 */ 006public interface ExternalTransactionManager { 007 008 /** 009 * Set the transaction manager. 010 * <p> 011 * This will change when SPI is published but will do for now. 012 * </p> 013 */ 014 void setTransactionManager(Object transactionManager); 015 016 /** 017 * Return the current transaction or null if there is none. 018 */ 019 Object getCurrentTransaction(); 020 021}