Class ParameterRecognizerImpl

    • Constructor Detail

      • ParameterRecognizerImpl

        public ParameterRecognizerImpl()
    • Method Detail

      • getAdjustedSqlString

        public String getAdjustedSqlString()
      • ordinalParameter

        public void ordinalParameter​(int sourcePosition)
        Description copied from interface: ParameterRecognizer
        Called when an ordinal parameter is recognized
        Specified by:
        ordinalParameter in interface ParameterRecognizer
        Parameters:
        sourcePosition - The position within the query
      • namedParameter

        public void namedParameter​(String name,
                                   int sourcePosition)
        Description copied from interface: ParameterRecognizer
        Called when a named parameter is recognized
        Specified by:
        namedParameter in interface ParameterRecognizer
        Parameters:
        name - The recognized parameter name
        sourcePosition - The position within the query
      • jpaPositionalParameter

        public void jpaPositionalParameter​(int position,
                                           int sourcePosition)
        Description copied from interface: ParameterRecognizer
        Called when a JPA-style named parameter is recognized
        Specified by:
        jpaPositionalParameter in interface ParameterRecognizer
        Parameters:
        position - The label (identifier) of the JPA-style parameter. e.g. for a parameter `?2`, the label is `2`
        sourcePosition - The position within the query
      • other

        public void other​(char character)
        Description copied from interface: ParameterRecognizer
        Called when a character that is not part of a parameter is recognized.
        Specified by:
        other in interface ParameterRecognizer
        Parameters:
        character - The recognized character