Interface ParameterMarkerStrategy

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

    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:
    JdbcSettings.DIALECT_NATIVE_PARAM_MARKERS
    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 Detail

      • 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.