1 29 30 package com.caucho.ejb.cfg; 31 32 import com.caucho.bytecode.JMethod; 33 import com.caucho.ejb.gen.CmpManyToOneGetter; 34 import com.caucho.ejb.gen.ViewClass; 35 import com.caucho.java.gen.BaseMethod; 36 import com.caucho.util.L10N; 37 38 41 public class CmpRelationGetter extends EjbMethod { 42 private static final L10N L = new L10N(CmpRelationGetter.class); 43 44 private CmpRelationRole _relationRole; 45 46 53 public CmpRelationGetter(EjbView view, 54 JMethod apiMethod, JMethod implMethod, 55 CmpRelationRole relationRole) 56 { 57 super(view, apiMethod, implMethod); 58 59 _relationRole = relationRole; 60 } 61 62 65 public BaseMethod assemble(ViewClass viewAssembler, String fullClassName) 66 { 67 BaseMethod method; 68 69 method = new CmpManyToOneGetter(getApiMethod(), 70 getView().getImplClass().getName()); 71 72 method.setCall(assembleCallChain(method.getCall())); 73 74 return method; 75 } 76 } 77 | Popular Tags |