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

pack-priv Class IndexedBindMarkers

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

Index-based bind marker. This implementation creates indexed bind markers using a numeric index and an optional prefix for bind markers to be represented within the query string.
Authors
Mark Paluch, Jens Schauder
Since
5.3

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
IndexedBindMarkers.IndexedBindMarker

A single indexed bind marker.

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
IndexedBindMarkers(String
bind parameter prefix
prefix
,
int
the first index to use
beginWith
)

Create a new IndexedBindMarker instance given prefix and beginWith.

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<IndexedBindMarkers> COUNTER_INCREMENTER
offsetback to summary
private final int offset
prefixback to summary
private final String prefix

Constructor Detail

IndexedBindMarkersback to summary
pack-priv IndexedBindMarkers(String prefix, int beginWith)

Create a new IndexedBindMarker instance given prefix and beginWith.

Parameters
prefix:String

bind parameter prefix

beginWith:int

the first index to use

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
org.springframework.r2dbc.core.binding back to summary

pack-priv Class IndexedBindMarkers.IndexedBindMarker

extends Object
implements BindMarker
Class Inheritance
  • java.lang.Object
  • org.springframework.r2dbc.core.binding.IndexedBindMarkers.IndexedBindMarker
All Implemented Interfaces
org.springframework.r2dbc.core.binding.BindMarker

A single indexed bind marker.
Author
Mark Paluch

Field Summary

Modifier and TypeField and Description
private final int
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
IndexedBindMarker(String placeholder, int index)

Method Summary

Modifier and TypeMethod and Description
public void
bind(BindTarget
the target to bind the value to
target
,
Object
the actual value (must not be null; use bindNull(BindTarget, Class) for null values)
value
)

Implements org.springframework.r2dbc.core.binding.BindMarker.bind.

Bind the given value to the Statement using the underlying binding strategy.

public void
bindNull(BindTarget
the target to bind the value to
target
,
Class<?>
the value type (must not be null)
valueType
)

Implements org.springframework.r2dbc.core.binding.BindMarker.bindNull.

Bind a null value to the Statement using the underlying binding strategy.

public int
public String
getPlaceholder()

Implements org.springframework.r2dbc.core.binding.BindMarker.getPlaceholder.

Return the database-specific placeholder for a given substitution.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private final int index
placeholderback to summary
private final String placeholder

Constructor Detail

IndexedBindMarkerback to summary
pack-priv IndexedBindMarker(String placeholder, int index)

Method Detail

bindback to summary
public void bind(BindTarget target, Object value)

Implements org.springframework.r2dbc.core.binding.BindMarker.bind.

Doc from org.springframework.r2dbc.core.binding.BindMarker.bind.

Bind the given value to the Statement using the underlying binding strategy.

Parameters
target:BindTarget

the target to bind the value to

value:Object

the actual value (must not be null; use bindNull(BindTarget, Class) for null values)

Annotations
@Override
bindNullback to summary
public void bindNull(BindTarget target, Class<?> valueType)

Implements org.springframework.r2dbc.core.binding.BindMarker.bindNull.

Doc from org.springframework.r2dbc.core.binding.BindMarker.bindNull.

Bind a null value to the Statement using the underlying binding strategy.

Parameters
target:BindTarget

the target to bind the value to

valueType:Class<?>

the value type (must not be null)

Annotations
@Override
getIndexback to summary
public int getIndex()
getPlaceholderback to summary
public String getPlaceholder()

Implements org.springframework.r2dbc.core.binding.BindMarker.getPlaceholder.

Doc from org.springframework.r2dbc.core.binding.BindMarker.getPlaceholder.

Return the database-specific placeholder for a given substitution.

Annotations
@Override