Class AbstractDbDriver

    • Constructor Detail

      • AbstractDbDriver

        public AbstractDbDriver()
    • Method Detail

      • getConnection

        public final Connection getConnection​(Properties props)
                                       throws SQLException
        Open a connection to the database.
        Parameters:
        props - properties for the created connections
        Returns:
        database connection
        Throws:
        SQLException
      • getConnectionProperties

        public final Properties getConnectionProperties()
        Get properties for a database connection.
        Returns:
        connection properties
      • getName

        public abstract String getName()
        Get the name of the database driver.
        Returns:
        driver name
      • getUrl

        public abstract String getUrl()
        Get the JDBC-URL to the database.
        Returns:
        JDBC-URL
      • getUser

        public String getUser()
      • setUser

        public final void setUser​(String user,
                                  String pass)
        Setup user account for connecting the database server.
        Parameters:
        user - username
        pass - password
      • shutdown

        public void shutdown()
        Shutdown the database driver, before the application is closed.