1 23 package com.sun.enterprise.repository; 24 25 import java.io.Serializable ; 26 import java.util.*; 27 import com.sun.enterprise.util.Utility; 28 import java.util.logging.*; 30 import com.sun.logging.*; 31 33 38 public class JdbcXAResource extends J2EEResourceBase implements Serializable { 39 40 private static Logger _logger=null; 42 static{ 43 _logger=LogDomains.getLogger(LogDomains.ROOT_LOGGER); 44 } 45 private String classname_; 47 private String dbuser_; 48 private String dbpassword_; 49 50 public JdbcXAResource(String name) { 51 super(name); 52 } 53 54 protected J2EEResource doClone(String name) { 55 JdbcXAResource clone = new JdbcXAResource(name); 56 clone.setClassname(getClassname()); 57 clone.setDbuser(getDbuser()); 58 clone.setDbpassword(getDbpassword()); 59 return clone; 60 } 61 62 public int getType() { 63 return J2EEResource.JDBC_XA_RESOURCE; 64 } 65 66 public String getClassname() { 67 return classname_; 68 } 69 70 public void setClassname(String classname) { 71 classname_ = classname; 72 } 73 74 public String getDbuser() { 75 return dbuser_; 76 } 77 78 public void setDbuser(String dbuser) { 79 dbuser_ = dbuser; 80 } 81 82 public String getDbpassword() { 83 return dbpassword_; 84 } 85 86 public void setDbpassword(String dbpassword) { 87 dbpassword_ = dbpassword; 88 } 89 90 113 115 public String toString() { 116 String propsString = getPropsString(); 117 return "< JDBC XA Resource : " + getName() + 118 " , " + getClassname() + " , " + getDbuser() + 119 " , " + getDbpassword() + " , " + 120 ((propsString.length() > 0) ? 121 propsString : "No properties") + " >"; 122 } 123 } 124 | Popular Tags |