72be84ef7b18ca1236b7538b9a57fdb7da023a7a.svn-base 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. package com.sysmodel.datamodel.xmlmodel.impl;
  2. import com.sysmodel.datamodel.xmlmodel.able.MdpDataSource;
  3. public class MdpDataSourceImpl implements MdpDataSource{
  4. private int dataSourceid;
  5. private String description;
  6. private String dataBase;
  7. private String URL;
  8. private String user;
  9. private String password;
  10. private String JNDI;
  11. // private String dataSourceType;
  12. public boolean compare(Object obj) {
  13. if (obj instanceof MdpDataSourceImpl) {
  14. if (((MdpDataSourceImpl) obj).description.equals(this.description))
  15. return true;
  16. }
  17. return false;
  18. }
  19. public boolean equals(Object obj) {
  20. if (obj instanceof MdpDataSourceImpl) {
  21. if (((MdpDataSourceImpl) obj).getDataSourceid() == this.dataSourceid)
  22. return true;
  23. }
  24. return false;
  25. }
  26. public String toString() {
  27. return this.description;
  28. }
  29. public int getDataSourceid() {
  30. return dataSourceid;
  31. }
  32. public void setDataSourceid(int dataSourceid) {
  33. this.dataSourceid = dataSourceid;
  34. }
  35. public String getDescription() {
  36. return description;
  37. }
  38. public void setDescription(String description) {
  39. this.description = description;
  40. }
  41. public String getJNDI() {
  42. return JNDI;
  43. }
  44. public void setJNDI(String jndi) {
  45. JNDI = jndi;
  46. }
  47. public String getPassword() {
  48. return password;
  49. }
  50. public void setPassword(String password) {
  51. this.password = password;
  52. }
  53. public String getURL() {
  54. return URL;
  55. }
  56. public void setURL(String url) {
  57. URL = url;
  58. }
  59. public String getUser() {
  60. return user;
  61. }
  62. public void setUser(String user) {
  63. this.user = user;
  64. }
  65. // public String getDataSourceType() {
  66. // return dataSourceType;
  67. // }
  68. //
  69. // public void setDataSourceType(String dataSourceType) {
  70. // this.dataSourceType = dataSourceType;
  71. // }
  72. public String getDataBase() {
  73. return dataBase;
  74. }
  75. public void setDataBase(String dataBase) {
  76. this.dataBase = dataBase;
  77. }
  78. }