Package adams.db

Interface ReconnectableDatabaseConnection

  • All Known Implementing Classes:
    AbstractReconnectableDatabaseConnection

    public interface ReconnectableDatabaseConnection
    For database connection classes that offer reconnecting to another database.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • reconnect

        boolean reconnect​(String url,
                          String user,
                          BasePassword password)
        Reconnects with the given parameters if they differ from the current settings.
        Parameters:
        url - the JDBC URL
        user - the database user
        password - the database password
        Returns:
        true if the reconnect was successful (or not necessary)