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.naming.NamingException ; 32 33 import org.objectweb.easybeans.tests.common.exception.TransactionException; 34 35 41 @TransactionManagement (value = TransactionManagementType.CONTAINER) 42 public class ContainerTransactionNever extends ContainerTransaction { 43 44 50 @TransactionAttribute (value = TransactionAttributeType.NEVER) 51 @Override 52 public void insertCorrectTableInBothDB(final String db1, final String db2) throws Exception { 53 super.insertCorrectTableInBothDB(db1, db2); 54 } 55 56 62 @TransactionAttribute (value = TransactionAttributeType.NEVER) 63 @Override 64 public void insertCorrectFirstErrorSecond(final String db1, final String db2) throws Exception { 65 super.insertCorrectFirstErrorSecond(db1, db2); 66 } 67 68 73 @Override 74 @TransactionAttribute (value = TransactionAttributeType.NEVER) 75 public boolean getRollbackOnly() throws TransactionException { 76 return super.getRollbackOnly(); 77 } 78 79 85 @Override 86 @TransactionAttribute (value = TransactionAttributeType.NEVER) 87 public void setRollbackOnly(final String dbName1, final String dbName2) throws Exception , NamingException { 88 super.setRollbackOnly(dbName1, dbName2); 89 } 90 91 97 @Override 98 @TransactionAttribute (value = TransactionAttributeType.NEVER) 99 public void insertTablesUsingAuxBeanReq(final String db1, final String db2) throws Exception { 100 super.insertTablesUsingAuxBeanReq(db1, db2); 101 } 102 103 109 @Override 110 @TransactionAttribute (value = TransactionAttributeType.NEVER) 111 public void insertTablesUsingAuxBeanNotSup(final String db1, final String db2) throws Exception { 112 super.insertTablesUsingAuxBeanNotSup(db1, db2); 113 } 114 115 119 @Override 120 @TransactionAttribute (value = TransactionAttributeType.NEVER) 121 public void getUserTransactionWithLookup() throws Exception { 122 super.getUserTransactionWithLookup(); 123 } 124 125 129 @Override 130 @TransactionAttribute (value = TransactionAttributeType.NEVER) 131 public void getUserTransactionWithEJBContext() throws Exception { 132 super.getUserTransactionWithEJBContext(); 133 } 134 135 } 136 | Popular Tags |