Interface ParameterMarkerStrategy

All Superinterfaces:
Serializable, Service
All Known Implementing Classes:
H2Dialect.OrdinalParameterMarkerStrategy, ParameterMarkerStrategyStandard

public interface ParameterMarkerStrategy extends Service
Strategy for generating parameter markers used in preparable SQL strings.

Generally Hibernate will use the JDBC standard marker - ?. Many JDBC drivers support the use of the "native" marker syntax of the underlying database - e.g. $n, ?n, ...

See Also:
Implementation Note:
Originally developed as an extension point for use from Hibernate Reactive for Vert.X PostgreSQL drivers which only support the native $n syntax.
  • Method Summary

    Modifier and Type
    Method
    Description
    createMarker(int position, JdbcType jdbcType)
    Create a parameter marker
  • Method Details

    • createMarker

      String createMarker(int position, JdbcType jdbcType)
      Create a parameter marker
      Parameters:
      position - The 1-based position of the parameter.
      jdbcType - The type of the parameter, if known - may be null.