Package com.databricks.jdbc.common.util
Class DriverUtil
- java.lang.Object
-
- com.databricks.jdbc.common.util.DriverUtil
-
public class DriverUtil extends Object
Utility class for operations related to the Databricks JDBC driver.This class provides methods for retrieving version information, setting up logging and resolving metadata clients.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDBSQL_VERSION_SQL
-
Constructor Summary
Constructors Constructor Description DriverUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetMajorVersion()static intgetMinorVersion()static StringgetRootCauseMessage(Throwable e)static StringgetVersion()static booleanisRunningAgainstFake()Returns whether the driver is running against fake services based on request/response stubs.static voidresolveMetadataClient(IDatabricksConnection connection)static voidsetUpLogging(IDatabricksConnectionContext connectionContext)
-
-
-
Field Detail
-
DBSQL_VERSION_SQL
public static final String DBSQL_VERSION_SQL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public static String getVersion()
-
getMajorVersion
public static int getMajorVersion()
-
getMinorVersion
public static int getMinorVersion()
-
resolveMetadataClient
public static void resolveMetadataClient(IDatabricksConnection connection) throws DatabricksValidationException
- Throws:
DatabricksValidationException
-
setUpLogging
public static void setUpLogging(IDatabricksConnectionContext connectionContext) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
isRunningAgainstFake
public static boolean isRunningAgainstFake()
Returns whether the driver is running against fake services based on request/response stubs.
-
-