Class DBConnectionTester

java.lang.Object
org.eclipse.lemminx.customservice.synapse.db.DBConnectionTester

public class DBConnectionTester extends Object
  • Constructor Details

    • DBConnectionTester

      public DBConnectionTester()
  • Method Details

    • testDBConnection

      public boolean testDBConnection(String dbType, String username, String password, String host, String port, String dbName, String url, String className)
      Test the database connection with the given parameters.
      Parameters:
      dbType - Database type
      username - Username
      password - Password
      host - Host
      port - Port
      dbName - Database name
      Returns:
      True if the connection is successful, false otherwise
    • getConnection

      public static Connection getConnection(String connectionUrl, String username, String password, String className)
    • generateConnectionUrl

      public String generateConnectionUrl(String dbType, String host, String port, String dbName)