Parameters
- searchPattern
- The pattern to search for.
- substring
- Only applicable if search pattern does not contain wildcards. If true the method generates a substring match pattern; if false it generats a "starts with" match pattern.
Return Value
A string suitable for use with the SQL LIKE operator.