package database;

/**
 * Hold and make available credentials to connect to SQL database.
 */
public class ConnectionCredentials {
    private String server = "";
    private String username = "";
    private String password = "";

    public ConnectionCredentials(String server, String username, String password) {
        this.server = server;
        this.username = username;
        this.password = password;
    }

    /*
    * Field getters and setters
    */
    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

//    public String getPassword() {
//        return password;
//    }

    public void setPassword(String password) {
        this.password = password;
    }
}

@@ -149,16 +149,20 @@
 g server
+Name
  = %22%22;%0A 
@@ -227,16 +227,68 @@
 rd = %22%22;
+%0A    private final String DATABASE_NAME = %22Francis%22;
 %0A%0A    pu
@@ -327,16 +327,20 @@
 g server
+Name
 , String
@@ -380,32 +380,36 @@
      this.server
+Name
  = server;%0A     
@@ -397,24 +397,28 @@
 ame = server
+Name
 ;%0A        th
@@ -478,24 +478,302 @@
 ord;%0A    %7D%0A%0A
+    @Override%0A    public String toString() %7B%0A        return String.format(%0A                %22serverName: %25s %7C databaseName: %25s %7C username: %25s %7C password: HIDDEN%22,%0A                getServerName(),%0A                getDatabaseName(),%0A                getUsername()%0A        );%0A    %7D%0A%0A
     /*%0A    *
@@ -807,29 +807,30 @@
     */%0A    p
-ublic
+rivate
  String getS
@@ -834,16 +834,20 @@
 etServer
+Name
 () %7B%0A   
@@ -860,24 +860,28 @@
 eturn server
+Name
 ;%0A    %7D%0A%0A   
@@ -902,16 +902,20 @@
 etServer
+Name
 (String 
@@ -920,16 +920,20 @@
 g server
+Name
 ) %7B%0A    
@@ -947,16 +947,20 @@
 s.server
+Name
  = serve
@@ -960,16 +960,20 @@
 = server
+Name
 ;%0A    %7D%0A
@@ -974,29 +974,106 @@
     %7D%0A%0A    p
-ublic
+rivate String getDatabaseName() %7B%0A        return DATABASE_NAME;%0A    %7D%0A%0A    private
  String getU
@@ -1208,80 +1208,8 @@
  %7D%0A%0A
-//    public String getPassword() %7B%0A//        return password;%0A//    %7D%0A%0A
     

Add toString to ConnectionCredentials class