Top Description Fields Constructors Methods
org.springframework.r2dbc.core.binding

pack-priv Class AnonymousBindMarkers

extends Object
implements BindMarkers
Class Inheritance
All Implemented Interfaces
org.springframework.r2dbc.core.binding.BindMarkers
Imports
java.util.concurrent.atomic.AtomicIntegerFieldUpdater

Anonymous, index-based bind marker using a static placeholder. Instances are bound by the ordinal position ordered by the appearance of the placeholder. This implementation creates indexed bind markers using an anonymous placeholder that correlates with an index.

Note

Anonymous bind markers are problematic because they have to appear in generated SQL in the same order they get generated. This might cause challenges in the future with complex generate statements. For example those containing subselects which limit the freedom of arranging bind markers.

Author
Mark Paluch
Since
5.3

Field Summary

Modifier and TypeField and Description
private volatile int
private static final AtomicIntegerFieldUpdater<AnonymousBindMarkers>
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
AnonymousBindMarkers(String
parameter bind marker
placeholder
)

Create a new AnonymousBindMarkers instance given placeholder.

Method Summary

Modifier and TypeMethod and Description
public BindMarker
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

counterback to summary
private volatile int counter
Annotations
@SuppressWarnings:unused
COUNTER_INCREMENTERback to summary
private static final AtomicIntegerFieldUpdater<AnonymousBindMarkers> COUNTER_INCREMENTER
placeholderback to summary
private final String placeholder

Constructor Detail

AnonymousBindMarkersback to summary
pack-priv AnonymousBindMarkers(String placeholder)

Create a new AnonymousBindMarkers instance given placeholder.

Parameters
placeholder:String

parameter bind marker

Method Detail

nextback to summary
public BindMarker next()

Implements org.springframework.r2dbc.core.binding.BindMarkers.next.

Doc from org.springframework.r2dbc.core.binding.BindMarkers.next.

Create a new BindMarker.

Annotations
@Override