Class ParamLocationRecognizer

java.lang.Object
org.hibernate.engine.query.spi.ParamLocationRecognizer
All Implemented Interfaces:
ParameterRecognizer

@Deprecated(since="6.4", forRemoval=true) public class ParamLocationRecognizer extends Object implements ParameterRecognizer
Deprecated, for removal: This API element is subject to removal in a future version.
No longer used
Implements a parameter parser recognizer specifically for the purpose of journaling parameter locations.
Author:
Steve Ebersole
  • Constructor Details

    • ParamLocationRecognizer

      public ParamLocationRecognizer(int jdbcStyleOrdinalCountBase)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • validate

      public void validate()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getNamedParameterDescriptionMap

      public Map<String,NamedParameterDescriptor<?>> getNamedParameterDescriptionMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOrdinalParameterDescriptionMap

      public Map<Integer,OrdinalParameterDescriptor<?>> getOrdinalParameterDescriptionMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ordinalParameter

      public void ordinalParameter(int position)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ParameterRecognizer
      Called when an ordinal parameter is recognized
      Specified by:
      ordinalParameter in interface ParameterRecognizer
      Parameters:
      position - The position within the query
    • namedParameter

      public void namedParameter(String name, int position)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ParameterRecognizer
      Called when a named parameter is recognized
      Specified by:
      namedParameter in interface ParameterRecognizer
      Parameters:
      name - The recognized parameter name
      position - The position within the query
    • jpaPositionalParameter

      public void jpaPositionalParameter(int name, int position)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ParameterRecognizer
      Called when a JPA-style named parameter is recognized
      Specified by:
      jpaPositionalParameter in interface ParameterRecognizer
      Parameters:
      name - The label (identifier) of the JPA-style parameter. e.g. for a parameter `?2`, the label is `2`
      position - The position within the query
    • other

      public void other(char character)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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