protected BooleanExpression newStringClause(StringExpression expression, String value, StringSearchConfigTo config) {

    StringSearchOperator operator = StringSearchOperator.EQ;
    LikePatternSyntax syntax = null;
    boolean ignoreCase = false;
    boolean matchSubstring = false;
    if (config != null) {
      operator = config.getOperator();
      syntax = config.getLikeSyntax();
      ignoreCase = config.isIgnoreCase();
      matchSubstring = config.isMatchSubstring();
    }
    return newStringClause(expression, value, operator, syntax, ignoreCase, matchSubstring);
  }
protected BooleanExpression newStringClause ( StringExpression expression , String value , StringSearchConfigTo config ) { StringSearchOperator operator = StringSearchOperator . EQ ; LikePatternSyntax syntax = null ; boolean ignoreCase = false ; boolean matchSubstring = false ; if ( config != null ) { operator = config . getOperator ( ) ; syntax = config . getLikeSyntax ( ) ; ignoreCase = config . isIgnoreCase ( ) ; matchSubstring = config . isMatchSubstring ( ) ; } return newStringClause ( expression , value , operator , syntax , ignoreCase , matchSubstring ) ; }
@param expression the {@link StringExpression} to search on.
@param value the string value or pattern to search for.
@param config the {@link StringSearchConfigTo} to configure the search. May be {@code null} for regular equals
search as default fallback.
@return the new {@link BooleanExpression} for the specified string comparison clause.