1 28 29 package com.caucho.ejb.cfg; 30 31 import com.caucho.bytecode.JMethod; 32 import com.caucho.ejb.gen.ViewClass; 33 import com.caucho.java.gen.BaseMethod; 34 import com.caucho.util.L10N; 35 36 39 public class EjbEntityCreateMethod extends EjbMethod { 40 private static final L10N L = new L10N(EjbEntityCreateMethod.class); 41 42 private JMethod _createMethod; 43 private JMethod _postCreateMethod; 44 45 52 public EjbEntityCreateMethod(EjbView view, 53 JMethod apiMethod, 54 JMethod createMethod, 55 JMethod postCreateMethod) 56 { 57 super(view, apiMethod, null); 58 59 _createMethod = createMethod; 60 _postCreateMethod = postCreateMethod; 61 } 62 63 66 public BaseMethod assemble(ViewClass viewAssembler, String fullClassName) 67 { 68 BaseMethod method; 69 70 method = viewAssembler.createCreateMethod((EjbEntityBean) getView().getBean(), 71 getApiMethod(), 72 _createMethod, 73 _postCreateMethod, 74 fullClassName); 75 76 method.setCall(assembleCallChain(method.getCall())); 77 78 return method; 79 } 80 } 81 | Popular Tags |