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 ContainerTransactionSupports extends ContainerTransaction { 43 44 50 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 51 @Override 52 public void insertCorrectTableInBothDB(final String db1, final String db2) throws Exception { 53 super.insertCorrectTableInBothDB(db1, db2); 54 } 55 56 65 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 66 @Override 67 public void insertCorrectFirstErrorSecond(final String db1, final String db2) throws Exception { 68 super.insertCorrectFirstErrorSecond(db1, db2); 69 } 70 71 76 @Override 77 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 78 public boolean getRollbackOnly() throws TransactionException { 79 return super.getRollbackOnly(); 80 } 81 82 88 @Override 89 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 90 public void setRollbackOnly(final String dbName1, final String dbName2) throws Exception , NamingException { 91 super.setRollbackOnly(dbName1, dbName2); 92 } 93 94 100 @Override 101 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 102 public void insertTablesUsingAuxBeanReq(final String db1, final String db2) throws Exception { 103 super.insertTablesUsingAuxBeanReq(db1, db2); 104 } 105 106 112 @Override 113 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 114 public void insertTablesUsingAuxBeanNotSup(final String db1, final String db2) throws Exception { 115 super.insertTablesUsingAuxBeanNotSup(db1, db2); 116 } 117 118 122 @Override 123 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 124 public void getUserTransactionWithLookup() throws Exception { 125 super.getUserTransactionWithLookup(); 126 } 127 128 132 @Override 133 @TransactionAttribute (value = TransactionAttributeType.SUPPORTS) 134 public void getUserTransactionWithEJBContext() throws Exception { 135 super.getUserTransactionWithEJBContext(); 136 } 137 138 } 139 | Popular Tags |