1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 36 37 public class JdbcConnParams extends AbsElement { 38 39 42 private String jdbcCheckLevel = null; 43 44 47 private String jdbcTestStatement = null; 48 49 50 53 public JdbcConnParams() { 54 super(); 55 } 56 57 61 public String getJdbcCheckLevel() { 62 return jdbcCheckLevel; 63 } 64 65 69 public void setJdbcCheckLevel(String jdbcCheckLevel) { 70 this.jdbcCheckLevel = jdbcCheckLevel; 71 } 72 73 77 public String getJdbcTestStatement() { 78 return jdbcTestStatement; 79 } 80 81 85 public void setJdbcTestStatement(String jdbcTestStatement) { 86 this.jdbcTestStatement = jdbcTestStatement; 87 } 88 89 94 public String toXML(int indent) { 95 StringBuffer sb = new StringBuffer (); 96 sb.append(indent(indent)); 97 sb.append("<jdbc-conn-params>\n"); 98 99 indent += 2; 100 101 sb.append(xmlElement(jdbcCheckLevel, "jdbc-check-level", indent)); 103 sb.append(xmlElement(jdbcTestStatement, "jdbc-test-statement", indent)); 105 indent -= 2; 106 sb.append(indent(indent)); 107 sb.append("</jdbc-conn-params>\n"); 108 109 return sb.toString(); 110 } 111 } 112 | Popular Tags |