Top Description Methods
org.jooq

public Interface BatchBindStep

extends Batch
Known Direct Implementers
org.jooq.impl.BatchSingle
Imports
org.jetbrains.annotations.*, java.sql.Statement, java.util.Map

This type is used for the Batch's DSL API.

Use it to add bind values to a single operation in the batch statement.

Author
Lukas Eder
See Also
Batch, Statement#executeBatch()

Method Summary

Modifier and TypeMethod and Description
public @NotNull BatchBindStep
bind(Object... bindValues)

Set indexed bind values onto the batch statement.

public @NotNull BatchBindStep
bind(Object[]... bindValues)

Set several indexed bind values onto the batch statement.

public @NotNull BatchBindStep
bind(Map<String, Object> namedBindValues)

Set named bind values onto the batch statement.

public @NotNull BatchBindStep
bind(Map<String, Object>... namedBindValues)

Set several named bind values onto the batch statement.

Inherited from org.jooq.Batch:
executeexecuteAsyncexecuteAsyncsize

Method Detail

bindback to summary
public @NotNull BatchBindStep bind(Object... bindValues)

Set indexed bind values onto the batch statement.

The argument array of bindValues will be set onto the indexed bind values of the batch statement:

  • :1 -> bindValues[0]
  • :2 -> bindValues[1]
  • ...
  • :N -> bindValues[N - 1]

"Unmatched" bind values will be left unmodified:

  • :N+1 -> unmodified
  • :N+2 -> unmodified
Annotations
@NotNull
@CheckReturnValue
@Support
bindback to summary
public @NotNull BatchBindStep bind(Object[]... bindValues)

Set several indexed bind values onto the batch statement.

This is the same as calling bind(Object...) several times.

Annotations
@NotNull
@CheckReturnValue
@Support
bindback to summary
public @NotNull BatchBindStep bind(Map<String, Object> namedBindValues)

Set named bind values onto the batch statement.

The argument map of namedBindValues will be set onto the named bind values of the batch statement:

  • :name1 -> bindValues.get("name1")
  • :name2 -> bindValues.get("name2")
  • ...
  • :nameN -> bindValues.get("nameN")

"Unmatched" bind values will be left unmodified:

  • :nameN+1 -> unmodified
  • :nameN+2 -> unmodified
Annotations
@NotNull
@CheckReturnValue
@Support
bindback to summary
public @NotNull BatchBindStep bind(Map<String, Object>... namedBindValues)

Set several named bind values onto the batch statement.

This is the same as calling bind(Map...) several times.

Annotations
@NotNull
@CheckReturnValue
@Support