1 29 30 package com.caucho.ejb.gen; 31 32 import com.caucho.bytecode.JClass; 33 import com.caucho.bytecode.JClassLoader; 34 import com.caucho.bytecode.JMethod; 35 import com.caucho.ejb.cfg.EjbEntityBean; 36 import com.caucho.java.JavaWriter; 37 import com.caucho.java.gen.BaseMethod; 38 import com.caucho.util.L10N; 39 40 import javax.ejb.RemoveException ; 41 import java.io.IOException ; 42 43 46 public class EntityRemoveMethod extends BaseMethod { 47 private static L10N L = new L10N(EntityRemoveMethod.class); 48 49 private String _contextClassName; 50 51 public EntityRemoveMethod(EjbEntityBean bean, 52 JMethod apiMethod, 53 String contextClassName) 54 { 55 super(apiMethod, new EntityRemoveCall(bean, 56 contextClassName)); 57 58 _contextClassName = contextClassName; 59 } 60 61 64 public JClass []getExceptionTypes() 65 { 66 return new JClass[] { JClassLoader.systemForName(RemoveException .class.getName()) }; 67 } 68 69 74 public void generateCall(JavaWriter out, String []args) 75 throws IOException 76 { 77 getCall().generateCall(out, null, "cxt", args); 78 } 79 } 80 | Popular Tags |