public boolean hasUnnamedParameters(String originalSql) {
        boolean hasUnnamedParameters = false;
        String preProcessedSql = null;

        // removing comments and text blocks
        preProcessedSql = removeBlocks(originalSql);

        // adding whitespace in the end to allow proper processing if "?" would be the last symbol
        preProcessedSql = preProcessedSql + " ";

        // parsing sql(without comments and text blocks)
        Pattern regexPattern = null;
        Matcher regexMatcher = null;

        regexPattern = Pattern.compile(REGEX_UNNAMED_PARAMETER_SEARCH, Pattern.CASE_INSENSITIVE);
        regexMatcher = regexPattern.matcher(preProcessedSql);

        if (regexMatcher.find() == true) {
            hasUnnamedParameters = true;
        }

        return hasUnnamedParameters;
    }
public boolean hasUnnamedParameters ( String originalSql ) { boolean hasUnnamedParameters = false ; String preProcessedSql = null ; preProcessedSql = removeBlocks ( originalSql ) ; preProcessedSql = preProcessedSql + " " ; Pattern regexPattern = null ; Matcher regexMatcher = null ; regexPattern = Pattern . compile ( REGEX_UNNAMED_PARAMETER_SEARCH , Pattern . CASE_INSENSITIVE ) ; regexMatcher = regexPattern . matcher ( preProcessedSql ) ; if ( regexMatcher . find ( ) == true ) { hasUnnamedParameters = true ; } return hasUnnamedParameters ; }
{@inheritDoc}