com.databricks.jdbc.api.impl.DatabricksConnectionContextFactory Maven / Gradle / Ivy
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