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

public Interface ParameterMarkerStrategy

extends Service
Known Direct Implementers
org.hibernate.dialect.H2Dialect.OrdinalParameterMarkerStrategy, org.hibernate.dialect.PostgreSQLDialect.NativeParameterMarkers, org.hibernate.sql.ast.internal.ParameterMarkerStrategyStandard
Imports
org.hibernate.service.Service, org.hibernate.type.descriptor.jdbc.JdbcType

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

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.

Author
Steve Ebersole
See Also
org.hibernate.cfg.AvailableSettings#DIALECT_NATIVE_PARAM_MARKERS

Method Summary

Modifier and TypeMethod and Description
public String
createMarker(int
The 1-based position of the parameter.
position
,
JdbcType
The type of the parameter, if known - may be null.
jdbcType
)

Create a parameter marker

Method Detail

createMarkerback to summary
public String createMarker(int position, JdbcType jdbcType)

Create a parameter marker

Parameters
position:int

The 1-based position of the parameter.

jdbcType:JdbcType

The type of the parameter, if known - may be null.