BindMarkersFactory
instead.@FunctionalInterface @Deprecated public interface BindMarkersFactory extends BindMarkersFactory
BindMarkers
instances to bind parameter for a specific Statement
.
Bind markers can be typically represented as placeholder and identifier. Placeholders are used within the query to execute so the underlying database system can substitute the placeholder with the actual value. Identifiers are used in R2DBC drivers to bind a value to a bind marker. Identifiers are typically a part of an entire bind marker when using indexed or named bind markers.
BindMarkers
,
Statement
Modifier and Type | Method and Description |
---|---|
static BindMarkersFactory |
anonymous(String placeholder)
Deprecated.
Creates anonymous, index-based bind marker using a static placeholder.
|
BindMarkers |
create()
Deprecated.
Create a new
BindMarkers instance. |
default boolean |
identifiablePlaceholders()
Deprecated.
Return whether the
BindMarkersFactory uses identifiable placeholders. |
static BindMarkersFactory |
indexed(String prefix,
int beginWith)
Deprecated.
Create index-based
BindMarkers using indexes to bind parameters. |
static BindMarkersFactory |
named(String prefix,
String namePrefix,
int maxLength)
Deprecated.
Create named
BindMarkers using identifiers to bind parameters. |
static BindMarkersFactory |
named(String prefix,
String namePrefix,
int maxLength,
Function<String,String> hintFilterFunction)
Deprecated.
Create named
BindMarkers using identifiers to bind parameters. |
BindMarkers create()
BindMarkers
instance.create
in interface BindMarkersFactory
BindMarkers
instance.default boolean identifiablePlaceholders()
BindMarkersFactory
uses identifiable placeholders.identifiablePlaceholders
in interface BindMarkersFactory
BindMarkersFactory
uses identifiable placeholders. false if multiple
placeholders cannot be distinguished by just the placeholder
identifier.static BindMarkersFactory indexed(String prefix, int beginWith)
BindMarkers
using indexes to bind parameters. Allow customization of the bind marker
placeholder prefix
to represent the bind marker as placeholder within the query.indexed
in interface BindMarkersFactory
prefix
- bind parameter prefix that is included in BindMarker.getPlaceholder()
but not the actual
identifier.beginWith
- the first index to use.BindMarkersFactory
using prefix
and beginWith
.Statement.bindNull(int, Class)
,
Statement.bind(int, Object)
static BindMarkersFactory anonymous(String placeholder)
anonymous
in interface BindMarkersFactory
placeholder
- parameter placeholder.BindMarkersFactory
using placeholder
.Statement.bindNull(int, Class)
,
Statement.bind(int, Object)
static BindMarkersFactory named(String prefix, String namePrefix, int maxLength)
BindMarkers
using identifiers to bind parameters. Named bind markers can support
name hints
. If no hint
is given, named bind
markers can use a counter or a random value source to generate unique bind markers.
Allow customization of the bind marker placeholder prefix
and namePrefix
to represent the bind
marker as placeholder within the query.
named
in interface BindMarkersFactory
prefix
- bind parameter prefix that is included in BindMarker.getPlaceholder()
but not the actual
identifier.namePrefix
- prefix for bind marker name that is included in BindMarker.getPlaceholder()
and the
actual identifier.maxLength
- maximal length of parameter names when using name hints.BindMarkersFactory
using prefix
and beginWith
.Statement.bindNull(String, Class)
,
Statement.bind(String, Object)
static BindMarkersFactory named(String prefix, String namePrefix, int maxLength, Function<String,String> hintFilterFunction)
BindMarkers
using identifiers to bind parameters. Named bind markers can support
name hints
. If no hint
is given, named bind
markers can use a counter or a random value source to generate unique bind markers.named
in interface BindMarkersFactory
prefix
- bind parameter prefix that is included in BindMarker.getPlaceholder()
but not the actual
identifier.namePrefix
- prefix for bind marker name that is included in BindMarker.getPlaceholder()
and the
actual identifier.maxLength
- maximal length of parameter names when using name hints.hintFilterFunction
- filter Function
to consider database-specific limitations in bind marker/variable
names such as ASCII chars only.BindMarkersFactory
using prefix
and beginWith
.Statement.bindNull(String, Class)
,
Statement.bind(String, Object)
Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.