View Javadoc

1   package net.sourceforge.jdbdump.gui;
2   
3   import java.io.IOException;
4   
5   import net.sourceforge.jdbdump.connect.Configuration;
6   
7   public class DbSettingsBean {
8   	private String email;
9   	
10  	public DbSettingsBean() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException {
11  		email = Configuration.getInstance().getEmail();
12  	}
13  
14  	public String getEmail() {
15  		return email;
16  	}
17  
18  	public void setEmail(String email) {
19  		this.email = email;
20  	}
21  	
22  	public String updateSettings() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException {
23  		Configuration.getInstance().setEmail(email);
24  		return "dbList";
25  	}
26  }