1 22 package org.jboss.ejb3.metamodel; 23 24 import java.util.ArrayList ; 25 import java.util.List ; 26 27 34 public class Method 35 { 36 37 private String ejbName = null; 38 39 private String methodName = null; 40 41 private String transactionTimeout = null; 42 43 private List methodParams; 44 45 public String getTransactionTimeout() 46 { 47 return transactionTimeout; 48 } 49 50 public void setTransactionTimeout(String transactionTimeout) 51 { 52 this.transactionTimeout = transactionTimeout; 53 } 54 55 public String getEjbName() 56 { 57 return ejbName; 58 } 59 60 public void setEjbName(String ejbName) 61 { 62 this.ejbName = ejbName; 63 } 64 65 public String getMethodName() 66 { 67 return methodName; 68 } 69 70 public void setMethodName(String methodName) 71 { 72 this.methodName = methodName; 73 } 74 75 public void setHasParameters() 76 { 77 methodParams = new ArrayList (); 78 } 79 80 public void addMethodParam(String methodParam) 81 { 82 methodParams.add(methodParam); 83 } 84 85 public List getMethodParams() 86 { 87 return methodParams; 88 } 89 90 public String toString() 91 { 92 StringBuffer sb = new StringBuffer (100); 93 sb.append("["); 94 sb.append("ejbName=").append(ejbName); 95 sb.append(", methodName=").append(methodName); 96 sb.append("]"); 97 return sb.toString(); 98 } 99 100 } 101 | Popular Tags |