1 22 package org.jboss.ejb3.test.txexceptions; 23 24 import javax.ejb.TransactionAttribute ; 25 import javax.ejb.TransactionAttributeType ; 26 27 33 public interface Dao 34 { 35 SimpleEntity get(int id); 36 37 void createThrowAnnotatedAppException(int id) throws AnnotatedAppException; 38 39 void createThrowAppException(int id) throws AppException; 40 41 void createThrowDeploymentDescriptorAppException(int id) throws DeploymentDescriptorAppException; 42 43 void createThrowCheckedRollbackException(int id) throws CheckedRollbackException; 44 45 void createThrowDeploymentDescriptorCheckedRollbackException(int id) throws DeploymentDescriptorCheckedRollbackException; 46 47 void createThrowNoRollbackRemoteException(int id) throws NoRollbackRemoteException; 48 49 void createThrowNoRollbackRuntimeException(int id) throws NoRollbackRuntimeException; 50 51 void createThrowRollbackRemoteException(int id) throws RollbackRemoteException; 52 53 void createThrowRollbackRuntimeException(int id) throws RollbackRuntimeException; 54 55 void remove(int id); 56 57 void testRequiresNewWithLookedUpEntityManager() throws Exception ; 58 } 59 | Popular Tags |