All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.jdbc.api.impl.DatabricksConnectionContextFactory Maven / Gradle / Ivy

There is a newer version: 2.7.1
Show newest version
package com.databricks.jdbc.api.impl;

import com.databricks.jdbc.api.IDatabricksConnectionContext;
import com.databricks.jdbc.exception.DatabricksSQLException;
import java.util.Properties;

/** Factory class for creating instances of {@link IDatabricksConnectionContext}. */
public class DatabricksConnectionContextFactory {

  /**
   * Creates an instance of {@link IDatabricksConnectionContext} from the given URL and properties.
   *
   * @param url JDBC URL
   * @param properties JDBC connection properties
   * @return an instance of {@link IDatabricksConnectionContext}
   * @throws DatabricksSQLException if the URL or properties are invalid
   */
  public static IDatabricksConnectionContext create(String url, Properties properties)
      throws DatabricksSQLException {
    return DatabricksConnectionContext.parse(url, properties);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy