Interface BindMarkers
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Bind markers represent placeholders in SQL queries for substitution
for an actual parameter. Using bind markers allows creating safe queries
so query strings are not required to contain escaped values but rather
the driver encodes parameter in the appropriate representation.
BindMarkers
is stateful and can be only used for a single binding
pass of one or more parameters. It maintains bind indexes/bind parameter names.
- Since:
- 5.3
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionnext()
Create a newBindMarker
.default BindMarker
Create a newBindMarker
that accepts ahint
.
-
Method Details
-
next
BindMarker next()Create a newBindMarker
. -
next
Create a newBindMarker
that accepts ahint
. Implementations are allowed to consider/ignore/filter the name hint to create more expressive bind markers.- Parameters:
hint
- an optional name hint that can be used as part of the bind marker- Returns:
- a new
BindMarker
-