View Javadoc

1   /* $Id: DbConfigurationIO.java,v 1.1 2006/01/09 04:46:12 tymoteusz Exp $ */ 
2   package net.sourceforge.jdbdump.connect;
3   
4   import java.io.IOException;
5   import java.io.InputStream;
6   import java.io.OutputStream;
7   
8   /***
9    * This class is a subclass of abstract ConfigurationIO class. 
10   * It provides support for configuration data that is stored on a database.
11   *   
12   * @author tymoteusz
13   * 
14   */
15  public class DbConfigurationIO extends ConfigurationIO {
16  	
17  	public DbConfigurationIO(String url, String user, String pass, String driver, String table) throws IOException{
18  		//TODO fill this method with logic
19  	}
20  
21  	protected void connect(){
22  		//TODO fill this method with logic
23  	}
24  
25  	/***
26  	 * This is an overriding method which selects configuration data from database
27  	 * @see ConfigurationIO#reload()
28  	 */
29  	public void reload() throws IOException{
30  		//TODO fill this method with logic
31  	}
32  
33  	/***
34  	 * This is an overriding method which updates configuration data to database
35  	 * @see ConfigurationIO#save()
36  	 */
37  	public void save() throws IOException{
38  		//TODO fill this method with logic
39  	}
40  	
41  	/***
42  	 * This method is useless for this class, but the superclass enforces implementation of it.
43  	 */
44  	protected InputStream getInputStream() throws IOException {
45  		return null;
46  	}
47  
48  	/***
49  	 * This method is useless for this class, but the superclass enforces implementation of it.
50  	 */
51  	protected OutputStream getOutputStream() throws IOException {
52  		return null;
53  	}
54  
55  }