net.sourceforge.jdbdump.connect
Class DbConfigurationIO

java.lang.Object
  extended by net.sourceforge.jdbdump.connect.ConfigurationIO
      extended by net.sourceforge.jdbdump.connect.DbConfigurationIO

public class DbConfigurationIO
extends ConfigurationIO

This class is a subclass of abstract ConfigurationIO class. It provides support for configuration data that is stored on a database.

Author:
tymoteusz

Constructor Summary
DbConfigurationIO(java.lang.String url, java.lang.String user, java.lang.String pass, java.lang.String driver, java.lang.String table)
           
 
Method Summary
protected  void connect()
           
protected  java.io.InputStream getInputStream()
          This method is useless for this class, but the superclass enforces implementation of it.
protected  java.io.OutputStream getOutputStream()
          This method is useless for this class, but the superclass enforces implementation of it.
 void reload()
          This is an overriding method which selects configuration data from database
 void save()
          This is an overriding method which updates configuration data to database
 
Methods inherited from class net.sourceforge.jdbdump.connect.ConfigurationIO
getDefaultAutoload, getDefaultAutosave, load, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbConfigurationIO

public DbConfigurationIO(java.lang.String url,
                         java.lang.String user,
                         java.lang.String pass,
                         java.lang.String driver,
                         java.lang.String table)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

connect

protected void connect()

reload

public void reload()
            throws java.io.IOException
This is an overriding method which selects configuration data from database

Throws:
java.io.IOException
See Also:
ConfigurationIO#reload()

save

public void save()
          throws java.io.IOException
This is an overriding method which updates configuration data to database

Throws:
java.io.IOException
See Also:
ConfigurationIO#save()

getInputStream

protected java.io.InputStream getInputStream()
                                      throws java.io.IOException
This method is useless for this class, but the superclass enforces implementation of it.

Specified by:
getInputStream in class ConfigurationIO
Returns:
InputStream object from which configuration data can be retrieved
Throws:
java.io.IOException

getOutputStream

protected java.io.OutputStream getOutputStream()
                                        throws java.io.IOException
This method is useless for this class, but the superclass enforces implementation of it.

Specified by:
getOutputStream in class ConfigurationIO
Returns:
OutputStream object to which configuration data can be stored
Throws:
java.io.IOException


Copyright © 2005-2006 AGH International University of Science and Technology. All Rights Reserved.