Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class BatchSingle

extends AbstractBatch
implements BatchBindStep
Class Inheritance
All Implemented Interfaces
org.jooq.BatchBindStep, org.jooq.Batch, org.jooq.Publisher, java.util.concurrent.Flow.Publisher, org.reactivestreams.Publisher, java.io.Serializable
Static Imports
org.jooq.conf.ParamType.INLINED, .SettingsTools.executeStaticStatements, org.jooq.impl.AbstractQuery.connection, .Tools.fields, .Tools.map, .Tools.visitAll

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final List<Object[]>
pack-priv final int
private static final JooqLogger
pack-priv final Map<String, List<Integer>>
pack-priv final Query
Inherited from org.jooq.impl.AbstractBatch:
configurationdsl

Constructor Summary

AccessConstructor and Description
public
BatchSingle(Configuration configuration, Query query)

Method Summary

Modifier and TypeMethod and Description
private final Batch
public final BatchSingle
bind(Object... bindValues)

Implements org.jooq.BatchBindStep.bind.

Set indexed bind values onto the batch statement.
public final BatchSingle
bind(Object[]... bindValues)

Implements org.jooq.BatchBindStep.bind.

Set several indexed bind values onto the batch statement.
public final BatchSingle
bind(Map<String, Object> namedBindValues)

Implements org.jooq.BatchBindStep.bind.

Set named bind values onto the batch statement.
public final BatchSingle
bind(Map<String, Object>... namedBindValues)

Implements org.jooq.BatchBindStep.bind.

Set several named bind values onto the batch statement.
pack-priv final void
public final int[]
execute()

Implements org.jooq.Batch.execute.

Execute the batch operation.
private final int[]
private final int[]
pack-priv final Param<?>[]
extractParams()

Deprecated as a consequence of Param being deprecated.
public final int
size()

Implements org.jooq.Batch.size.

Get the number of executed queries in this batch operation
public final void
subscribe(Subscriber<? super Integer>
the Subscriber that will consume signals from this Publisher
subscriber
)

Implements org.reactivestreams.Publisher.subscribe.

Request Publisher to start streaming data.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.jooq.impl.AbstractBatch:
executeAsyncexecuteAsync

Field Detail

allBindValuesback to summary
pack-priv final List<Object[]> allBindValues
expectedBindValuesback to summary
pack-priv final int expectedBindValues
logback to summary
private static final JooqLogger log
nameToIndexMappingback to summary
pack-priv final Map<String, List<Integer>> nameToIndexMapping
queryback to summary
pack-priv final Query query

Constructor Detail

BatchSingleback to summary
public BatchSingle(Configuration configuration, Query query)

Method Detail

batchMultipleback to summary
private final Batch batchMultiple()
bindback to summary
public final BatchSingle bind(Object... bindValues)

Implements org.jooq.BatchBindStep.bind.

Doc from org.jooq.BatchBindStep.bind.

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
@Override
bindback to summary
public final BatchSingle bind(Object[]... bindValues)

Implements org.jooq.BatchBindStep.bind.

Doc from org.jooq.BatchBindStep.bind.

Set several indexed bind values onto the batch statement.

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

Annotations
@Override
bindback to summary
public final BatchSingle bind(Map<String, Object> namedBindValues)

Implements org.jooq.BatchBindStep.bind.

Doc from org.jooq.BatchBindStep.bind.

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
@SuppressWarnings:unchecked
@Override
bindback to summary
public final BatchSingle bind(Map<String, Object>... namedBindValues)

Implements org.jooq.BatchBindStep.bind.

Doc from org.jooq.BatchBindStep.bind.

Set several named bind values onto the batch statement.

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

Annotations
@Override
@SafeVarargs
checkBindValuesback to summary
pack-priv final void checkBindValues()
executeback to summary
public final int[] execute()

Implements org.jooq.Batch.execute.

Doc from org.jooq.Batch.execute.

Execute the batch operation.

Annotations
@Override
executePreparedback to summary
private final int[] executePrepared()
executeStaticback to summary
private final int[] executeStatic()
extractParamsback to summary
pack-priv final Param<?>[] extractParams()

Deprecated

as a consequence of Param being deprecated. See corresponding docs for further information.

sizeback to summary
public final int size()

Implements org.jooq.Batch.size.

Doc from org.jooq.Batch.size.

Get the number of executed queries in this batch operation

Annotations
@Override
subscribeback to summary
public final void subscribe(Subscriber<? super Integer> subscriber)

Implements org.reactivestreams.Publisher.subscribe.

Doc from org.reactivestreams.Publisher.subscribe.

Request Publisher to start streaming data.

This is a "factory method" and can be called multiple times, each time starting a new Subscription.

Each Subscription will work for only a single Subscriber.

A Subscriber should only subscribe once to a single Publisher.

If the Publisher rejects the subscription attempt or otherwise fails it will signal the error via Subscriber#onError(Throwable).

Parameters
subscriber:Subscriber<? super Integer>

the Subscriber that will consume signals from this Publisher

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override