1 28 29 package com.caucho.ejb.cfg; 30 31 import com.caucho.bytecode.JMethod; 32 import com.caucho.ejb.gen.AmberGetter; 33 import com.caucho.ejb.gen.ViewClass; 34 import com.caucho.java.gen.BaseMethod; 35 import com.caucho.java.gen.CallChain; 36 import com.caucho.util.L10N; 37 38 41 public class CmpGetter extends EjbMethod { 42 private static final L10N L = new L10N(CmpGetter.class); 43 44 51 public CmpGetter(EjbView view, JMethod apiMethod, JMethod implMethod) 52 { 53 super(view, apiMethod, implMethod); 54 } 55 56 59 public BaseMethod assemble(ViewClass viewAssembler, String fullClassName) 60 { 61 AmberGetter method = new AmberGetter(getApiMethod(), 62 getView().getImplClass().getName()); 63 64 method.setReadOnly(((EjbEntityBean) getView().getBean()).isReadOnly()); 65 66 CallChain call = method.getCall(); 67 if (call != null) 68 method.setCall(assembleCallChain(call)); 69 70 return method; 71 } 72 } 73 | Popular Tags |