1 25 package org.objectweb.easybeans.tests.common.ejbs.stateful.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 69 void startup(final boolean callOnlyTransaction, final String dbName) throws NamingException , SQLException ; 70 71 79 void insertTableWithoutCommitTransaction() throws SQLException , NamingException , SystemException , 80 NotSupportedException ; 81 82 97 void insertTableWithBeginCommitTransaction() throws SQLException , NamingException , SystemException , 98 NotSupportedException , HeuristicRollbackException , RollbackException , HeuristicMixedException , 99 TransactionException; 100 101 115 void dropTableWithoutBeginTransaction() throws SQLException , NamingException , SystemException , 116 NotSupportedException , HeuristicRollbackException , RollbackException , HeuristicMixedException , 117 TransactionException; 118 119 133 void dropTableWithBeginCommitTransaction() throws SQLException , NamingException , SystemException , 134 NotSupportedException , HeuristicRollbackException , RollbackException , HeuristicMixedException , 135 TransactionException; 136 137 151 void insertTableWithNestedTrans() throws SQLException , NamingException , SystemException , NotSupportedException , 152 HeuristicRollbackException , RollbackException , HeuristicMixedException , TransactionException; 153 154 169 void insertTableWithNewTransaction() throws SQLException , NamingException , SystemException , NotSupportedException , 170 HeuristicRollbackException , RollbackException , HeuristicMixedException , TransactionException; 171 172 177 int getTransactionStatus() throws SystemException ; 178 179 187 void insertTableWithBeginRollback() throws SQLException , NamingException , SystemException , NotSupportedException ; 188 189 195 public void setRollback() throws IllegalStateException , SecurityException , SystemException ; 196 197 202 public void setRollbackOnly() throws NamingException , IllegalStateException ; 203 204 209 public void getRollbackOnly() throws NamingException , IllegalStateException ; 210 } 211 | Popular Tags |