public default String enquoteLiteral (String val) throws SQLException

Returns a String enclosed in single quotes. Any occurrence of a single quote within the string will be replaced by two single quotes.

Examples of the conversion:
ValueResult
Hello 'Hello'
G'Day 'G''Day'
'G''Day' '''G''''Day'''
I'''M 'I''''''M'

Parameters:
val    a character string

Returns:  A string enclosed by single quotes with every single quote converted to two single quotes

Exceptions:
NullPointerException    if val is null
SQLException    if a database access error occurs

Since:  9

@implNote JDBC driver implementations may need to provide their own implementation of this method in order to meet the requirements of the underlying datasource.