Package adams.db

Class AbstractReconnectableDatabaseConnection

    • Constructor Detail

      • AbstractReconnectableDatabaseConnection

        protected AbstractReconnectableDatabaseConnection()
        Constructor, uses the default settings.
    • Method Detail

      • reconnect

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