Class StringUtil
java.lang.Object
com.databricks.jdbc.common.util.StringUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckPrefixMatch(String prefix, String fileName, boolean caseSensitive) Function to check if the given prefix exists in the fileNamestatic Stringstatic StringEscape sql string literal which is enclosed in a single quote, it replaces single quote with doubled single quotes.static StringgetBaseNameFromPath(String path) Function to return the base name from the pathstatic StringgetFolderNameFromPath(String path) Function to return the folder name from the pathstatic StringgetVolumePath(String catalog, String schema, String volume) Building the volume path using the provided catalog, schema and volume
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
convertJdbcEscapeSequences
-
escapeStringLiteral
Escape sql string literal which is enclosed in a single quote, it replaces single quote with doubled single quotes.Please always use prepareStatement to bind variables if possible, only use it when prepareStatement is not applicable, e.g. some DDL statement
-
checkPrefixMatch
-
split
-
getFolderNameFromPath
-
getBaseNameFromPath
-
getVolumePath
-