1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class FinderMethodJdbcMapping extends AbsElement { 37 38 41 private JonasMethod jonasMethod = null; 42 43 46 private String jdbcWhereClause = null; 47 48 49 52 public FinderMethodJdbcMapping() { 53 super(); 54 } 55 56 60 public JonasMethod getJonasMethod() { 61 return jonasMethod; 62 } 63 64 68 public void setJonasMethod(JonasMethod jonasMethod) { 69 this.jonasMethod = jonasMethod; 70 } 71 72 76 public String getJdbcWhereClause() { 77 return jdbcWhereClause; 78 } 79 80 84 public void setJdbcWhereClause(String jdbcWhereClause) { 85 this.jdbcWhereClause = jdbcWhereClause; 86 } 87 88 93 public String toXML(int indent) { 94 StringBuffer sb = new StringBuffer (); 95 sb.append(indent(indent)); 96 sb.append("<finder-method-jdbc-mapping>\n"); 97 98 indent += 2; 99 100 if (jonasMethod != null) { 102 sb.append(jonasMethod.toXML(indent)); 103 } 104 sb.append(xmlElement(jdbcWhereClause, "jdbc-where-clause", indent)); 106 indent -= 2; 107 sb.append(indent(indent)); 108 sb.append("</finder-method-jdbc-mapping>\n"); 109 110 return sb.toString(); 111 } 112 } 113 | Popular Tags |