1 29 30 package com.caucho.ejb.gen; 31 32 import com.caucho.bytecode.JMethod; 33 import com.caucho.ejb.cfg.EjbEntityBean; 34 import com.caucho.ejb.cfg.EjbMethod; 35 import com.caucho.java.gen.BaseClass; 36 import com.caucho.java.gen.BaseMethod; 37 import com.caucho.java.gen.CallChain; 38 import com.caucho.util.L10N; 39 40 43 public class ViewClass extends BaseClass { 44 private static L10N L = new L10N(ViewClass.class); 45 46 public ViewClass(String className, String superClassName) 47 { 48 super(className, superClassName); 49 } 50 51 54 public BaseMethod createCreateMethod(JMethod apiMethod, 55 JMethod implMethod, 56 String fullClassName, 57 String viewPrefix) 58 { 59 throw new UnsupportedOperationException (getClass().getName()); 60 } 61 62 public BaseMethod createCreateMethod(EjbEntityBean bean, 63 JMethod api, 64 JMethod create, 65 JMethod postCreate, 66 String fullClassName) 67 { 68 throw new UnsupportedOperationException (getClass().getName()); 69 } 70 71 74 public BaseMethod createBusinessMethod(EjbMethod ejbMethod) 75 { 76 BaseMethod method = new BaseMethod(ejbMethod.getApiMethod(), 77 ejbMethod.getImplMethod()); 78 79 method.setCall(createPoolChain(method.getCall())); 80 81 return method; 82 } 83 84 87 public CallChain createPoolChain(CallChain call) 88 { 89 return call; 90 } 91 } 92 | Popular Tags |