1 14 15 package org.quickserver.util.xmlreader; 16 17 import java.util.*; 18 24 public class DBObjectPoolConfig implements java.io.Serializable { 25 private DatabaseConnectionSet databaseConnectionSet; 26 private String dbPoolUtil; 27 28 32 public DatabaseConnectionSet getDatabaseConnectionSet() { 33 return databaseConnectionSet; 34 } 35 40 public void setDatabaseConnectionSet(DatabaseConnectionSet databaseConnectionSet) { 41 this.databaseConnectionSet = databaseConnectionSet; 42 } 43 44 52 public void setDbPoolUtil(String className) { 53 dbPoolUtil = className; 54 } 55 60 public String getDbPoolUtil() { 61 return dbPoolUtil; 62 } 63 64 68 public String toXML(String pad) { 69 if(pad==null) pad=""; 70 StringBuffer sb = new StringBuffer (); 71 72 sb.append(pad+"<db-object-pool>\n"); 73 if(getDatabaseConnectionSet()!=null) 74 sb.append(getDatabaseConnectionSet().toXML(pad+"\t")); 75 sb.append(pad+"\t<db-pool-util>"+getDbPoolUtil()+"</db-pool-util>\n"); 76 sb.append(pad+"</db-object-pool>\n"); 77 return sb.toString(); 78 } 79 } 80 | Popular Tags |