DataSourceConfig.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.leanwo.management.config;
  2. /**
  3. * 数据源配置.
  4. *
  5. * @author YangZhiJie
  6. */
  7. public class DataSourceConfig {
  8. /** bean Id. */
  9. private String beanId;
  10. /** 数据库访问地址. */
  11. private String url;
  12. /** 数据库访问用户名. */
  13. private String username;
  14. /** 数据库访问密码. */
  15. private String password;
  16. /**
  17. * Gets the bean Id.
  18. *
  19. * @return the bean Id
  20. */
  21. public String getBeanId() {
  22. return beanId;
  23. }
  24. /**
  25. * Sets the bean Id.
  26. *
  27. * @param beanId the new bean Id
  28. */
  29. public void setBeanId(String beanId) {
  30. this.beanId = beanId;
  31. }
  32. /**
  33. * Gets the 数据库访问地址.
  34. *
  35. * @return the 数据库访问地址
  36. */
  37. public String getUrl() {
  38. return url;
  39. }
  40. /**
  41. * Sets the 数据库访问地址.
  42. *
  43. * @param url the new 数据库访问地址
  44. */
  45. public void setUrl(String url) {
  46. this.url = url;
  47. }
  48. /**
  49. * Gets the 数据库访问用户名.
  50. *
  51. * @return the 数据库访问用户名
  52. */
  53. public String getUsername() {
  54. return username;
  55. }
  56. /**
  57. * Sets the 数据库访问用户名.
  58. *
  59. * @param username the new 数据库访问用户名
  60. */
  61. public void setUsername(String username) {
  62. this.username = username;
  63. }
  64. /**
  65. * Gets the 数据库访问密码.
  66. *
  67. * @return the 数据库访问密码
  68. */
  69. public String getPassword() {
  70. return password;
  71. }
  72. /**
  73. * Sets the 数据库访问密码.
  74. *
  75. * @param password the new 数据库访问密码
  76. */
  77. public void setPassword(String password) {
  78. this.password = password;
  79. }
  80. }