1 21 package oracle.toplink.essentials.sessions; 23 24 import oracle.toplink.essentials.internal.sessions.AbstractSession; 25 import oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl; 26 import oracle.toplink.essentials.exceptions.*; 27 28 41 public interface ExternalTransactionController { 42 43 48 void beginTransaction(AbstractSession session); 49 50 55 void commitTransaction(AbstractSession session); 56 57 61 UnitOfWorkImpl getActiveUnitOfWork(); 62 63 67 AbstractSession getSession(); 68 69 74 void registerSynchronizationListener(UnitOfWorkImpl uow, AbstractSession session) throws DatabaseException; 75 76 81 void rollbackTransaction(AbstractSession session); 82 83 87 void markTransactionForRollback(); 88 89 93 void setSession(AbstractSession session); 94 } 95 | Popular Tags |