1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.transaction; 26 27 import java.sql.SQLException ; 28 29 import javax.naming.NamingException ; 30 import javax.transaction.HeuristicMixedException ; 31 import javax.transaction.HeuristicRollbackException ; 32 import javax.transaction.NotSupportedException ; 33 import javax.transaction.RollbackException ; 34 import javax.transaction.SystemException ; 35 36 import org.objectweb.easybeans.tests.common.exception.TransactionException; 37 38 44 public interface ItfBeanManagedTransaction { 45 46 49 String TABLE = "BeanManaged"; 50 51 55 boolean CALL_TRANSACTION_ONLY = true; 56 57 60 boolean CREATE_TABLE = false; 61 62 74 void insertTableWithoutCommit(final boolean callOnlyTransaction, final String dbName) throws SQLException , 75 NamingException , SystemException , NotSupportedException ; 76 77 96 void insertTableWithBeginCommit(final boolean callOnlyTransaction, final String dbName) throws SQLException , 97 NamingException , SystemException , NotSupportedException , HeuristicRollbackException , RollbackException , 98 HeuristicMixedException , TransactionException; 99 100 117 void deleteTableWithoutBegin(final boolean callOnlyTransaction, final String dbName) throws SQLException , 118 NamingException , SystemException , NotSupportedException , HeuristicRollbackException , RollbackException , 119 HeuristicMixedException ; 120 121 140 void deleteTableWithBeginCommit(final boolean callOnlyTransaction, final String dbName) throws SQLException , 141 NamingException , SystemException , NotSupportedException , HeuristicRollbackException , RollbackException , 142 HeuristicMixedException , TransactionException; 143 144 149 public void setRollbackOnly() throws NamingException , IllegalStateException ; 150 151 156 public void getRollbackOnly() throws NamingException , IllegalStateException ; 157 158 } 159 | Popular Tags |