Top Description Methods
org.hibernate.query.sql.spi

public Interface ParameterRecognizer

Known Direct Implementers
org.hibernate.engine.query.spi.ParamLocationRecognizer, org.hibernate.query.sql.internal.ParameterRecognizerImpl

Defines the "callback" process of recognizing native query parameters.
See Also
org.hibernate.engine.query.spi.NativeQueryInterpreter#recognizeParameters

Method Summary

Modifier and TypeMethod and Description
public default void
complete()

Callback after all parsing is complete

public void
jpaPositionalParameter(int
The label (identifier) of the JPA-style parameter. e.g. for a parameter `?2`, the label is `2`
label
,
int
The position within the query
sourcePosition
)

Called when a JPA-style named parameter is recognized

public void
namedParameter(String
The recognized parameter name
name
,
int
The position within the query
sourcePosition
)

Called when a named parameter is recognized

public void
ordinalParameter(int
The position within the query
sourcePosition
)

Called when an ordinal parameter is recognized

public void
other(char
The recognized character
character
)

Called when a character that is not part of a parameter is recognized.

Method Detail

completeback to summary
public default void complete()

Callback after all parsing is complete

jpaPositionalParameterback to summary
public void jpaPositionalParameter(int label, int sourcePosition)

Called when a JPA-style named parameter is recognized

Parameters
label:int

The label (identifier) of the JPA-style parameter. e.g. for a parameter `?2`, the label is `2`

sourcePosition:int

The position within the query

namedParameterback to summary
public void namedParameter(String name, int sourcePosition)

Called when a named parameter is recognized

Parameters
name:String

The recognized parameter name

sourcePosition:int

The position within the query

ordinalParameterback to summary
public void ordinalParameter(int sourcePosition)

Called when an ordinal parameter is recognized

Parameters
sourcePosition:int

The position within the query

otherback to summary
public void other(char character)

Called when a character that is not part of a parameter is recognized.

Parameters
character:char

The recognized character