Package com.exasol.adapter.jdbc
Class WildcardEscaper
- java.lang.Object
-
- com.exasol.adapter.jdbc.WildcardEscaper
-
public class WildcardEscaper extends Object
Escape SQL wild cards in string to enable to request column metadata from JDBC driver with exact match for names of catalog, schema, and table.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringescape(String input)static WildcardEscaperinstance(String searchStringEscape)Create a new instance of theWildcardEscaper.
-
-
-
Method Detail
-
instance
public static WildcardEscaper instance(String searchStringEscape)
Create a new instance of theWildcardEscaper.Use
DatabaseMetaData.getSearchStringEscape()to get the escape string for wild card characters.- Parameters:
searchStringEscape- string that should be used to escape SQL wild cards- Returns:
- new instance of the
WildcardEscaper
-
-