1 22 package org.jboss.test.entityexc.interfaces; 23 24 import java.rmi.RemoteException ; 25 import javax.ejb.EJBObject ; 26 27 28 34 public interface EntityExc extends EJBObject 35 { 36 41 public final int EXC_MYAPPEXCEPTION = 1; 42 43 48 public final int EXC_CREATEEXCEPTION = 2; 49 50 55 public final int EXC_EJBEXCEPTION = 3; 56 57 60 public final int F_EXC_MASK = 0xff; 61 62 66 public final int F_THROW_BEFORE = 0x100; 67 68 72 public final int F_FAIL_POSTCREATE = 0x200; 73 74 78 public final int F_SETROLLBACKONLY = 0x400; 79 80 84 public final String EXCEPTION_TEXT = "Hello, cruel world."; 85 86 87 90 public int getId() 91 throws RemoteException ; 92 93 97 public int getVal() 98 throws RemoteException ; 99 100 103 public void incrementVal() 104 throws RemoteException ; 105 106 107 113 public void incrementVal(int flags) 114 throws MyAppException, RemoteException ; 115 116 } 117 | Popular Tags |