View Javadoc

1   package net.sourceforge.jdbdump.connect;
2   
3   public class DatabaseBackupData extends DatabaseConnectionData {
4   
5   	private static final long serialVersionUID = 1151109393033790164L;
6   	private static String[] propertyNames;
7   
8   	static {
9   		  propertyNames = new String[] {
10  		    "server",
11  		    "port",
12  		    "dbType",
13  		    "login",
14  		    "password",
15  		    "dbName",
16  		    "dbTitle",
17  		    "URL",
18  		    "date",
19  		    "filename"		    
20  		    };
21  		}	
22  	
23  	public DatabaseBackupData(String server, String port, String dbType, String login, String password, String dbName, String dbTitle, String URL, String date, String filename){
24  		try{
25  			this.setProperty("server", server);
26  			this.setProperty("port", port);
27  			this.setProperty("dbType", dbType);
28  			this.setProperty("login", login);
29  			this.setProperty("password", password);
30  			this.setProperty("dbName", dbName);
31  			this.setProperty("dbTitle", dbTitle);
32  			this.setProperty("URL", URL);
33  			this.setProperty("date", date);
34  			this.setProperty("filename", filename);
35  		}catch(Exception e){
36  			
37  		};
38  	}
39  	public String getDate(){
40  		return this.getProperty("date");
41  	}
42  
43  	public String getFilename() {
44  		return this.getProperty("filename");
45  	}
46  	
47  	public String getDbTitle() {
48  		return this.getProperty("dbTitle");
49  	}
50  }