1 28 29 package com.caucho.ejb.cfg; 30 31 import com.caucho.config.ConfigException; 32 import com.caucho.util.L10N; 33 34 import java.util.ArrayList ; 35 36 41 public class QueryMethod { 42 private static L10N L = new L10N(QueryMethod.class); 43 44 private MethodSignature _signature; 45 46 private String _methodName; 47 48 private ArrayList _methodParams; 49 50 public QueryMethod() 51 { 52 _signature = new MethodSignature(); 53 } 54 55 public void setValue(String id) 56 throws ConfigException 57 { 58 _signature.setName(id); 59 } 60 61 public void setId(String id) 62 throws ConfigException 63 { 64 _signature.setName(id); 65 } 66 67 public void setMethodName(String methodName) 68 throws ConfigException 69 { 70 _signature.setName(methodName); 71 } 72 73 public void setMethodParams(MethodParams methodParams) 74 { 75 } 76 77 public MethodSignature getSignature() 78 { 79 return _signature; 80 } 81 82 public static class MethodParams { 83 private ArrayList _methodParams = new ArrayList (); 84 85 public void addMethodParam(String param) 86 throws ConfigException 87 { 88 if (param.equals("")) 89 throw new ConfigException(L.l("method-param must not be empty.")); 90 } 91 } 92 } 93 | Popular Tags |