Advertisement
Guest User

MySQLPrepare - VAM2

a guest
Oct 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public class MySQLConnectionPrepare {
  2.  
  3.  
  4.  
  5. @Override
  6. public String toString() {
  7. return "MySQLConnectionPrepare=[" + ip + ", " + port + ", " + database + ", " + username + ", " + password + "]";
  8. }
  9.  
  10. private String ip;
  11. private int port;
  12. private String database;
  13. private String username;
  14. private String password;
  15.  
  16. public MySQLConnectionPrepare(String ip, int port, String database, String username, String password){
  17. this.ip = ip;
  18. this.port = port;
  19. this.database = database;
  20. this.username = username;
  21. this.password = password;
  22. }
  23.  
  24. public String getIp() {
  25. return ip;
  26. }
  27.  
  28. public int getPort() {
  29. return port;
  30. }
  31.  
  32. public String getDatabase() {
  33. return database;
  34. }
  35.  
  36. public String getUsername() {
  37. return username;
  38. }
  39.  
  40. public String getPassword() {
  41. return password;
  42. }
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement