1 25 package org.objectweb.easybeans.tests.common.ejbs.base.transaction; 26 27 import javax.ejb.TransactionAttribute ; 28 import javax.ejb.TransactionAttributeType ; 29 import javax.ejb.TransactionManagement ; 30 import javax.ejb.TransactionManagementType ; 31 import javax.transaction.RollbackException ; 32 33 import org.objectweb.easybeans.tests.common.exception.TransactionException; 34 35 41 @TransactionManagement (value = TransactionManagementType.CONTAINER) 42 public class ContainerTransactionMandatory extends ContainerTransaction { 43 44 50 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 51 @Override 52 public void insertCorrectTableInBothDB(final String db1, final String db2) throws Exception { 53 super.insertCorrectTableInBothDB(db1, db2); 54 } 55 56 66 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 67 @Override 68 public void insertCorrectFirstErrorSecond(final String db1, final String db2) throws Exception { 69 super.insertCorrectFirstErrorSecond(db1, db2); 70 } 71 72 77 @Override 78 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 79 public boolean getRollbackOnly() throws TransactionException { 80 return super.getRollbackOnly(); 81 } 82 83 89 @Override 90 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 91 public void setRollbackOnly(final String dbName1, final String dbName2) throws Exception { 92 super.setRollbackOnly(dbName1, dbName2); 93 } 94 95 101 @Override 102 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 103 public void insertTablesUsingAuxBeanReq(final String db1, final String db2) throws Exception { 104 super.insertTablesUsingAuxBeanReq(db1, db2); 105 } 106 107 113 @Override 114 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 115 public void insertTablesUsingAuxBeanNotSup(final String db1, final String db2) throws Exception { 116 super.insertTablesUsingAuxBeanNotSup(db1, db2); 117 } 118 119 123 @Override 124 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 125 public void getUserTransactionWithLookup() throws Exception { 126 super.getUserTransactionWithLookup(); 127 } 128 129 133 @Override 134 @TransactionAttribute (value = TransactionAttributeType.MANDATORY) 135 public void getUserTransactionWithEJBContext() throws Exception , RollbackException { 136 super.getUserTransactionWithEJBContext(); 137 } 138 139 } 140 | Popular Tags |