Top Description Fields Constructors Methods
org.jooq.tools.r2dbc

public Class LoggingBatch

extends Object
implements Batch
Class Inheritance
All Implemented Interfaces
io.r2dbc.spi.Batch
Imports
org.jooq.tools.JooqLogger, org.reactivestreams.Publisher, io.r2dbc.spi.Batch, .Connection, .Result

An R2DBC Batch proxy that logs all statements that are prepared or executed using it.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final Batch
private static final JooqLogger

Constructor Summary

AccessConstructor and Description
public
LoggingBatch(Batch delegate)

Method Summary

Modifier and TypeMethod and Description
public Batch
add(String
the statement to add
sql
)

Implements io.r2dbc.spi.Batch.add.

Add a statement to this batch.
public Publisher<? extends Result>
execute()

Implements io.r2dbc.spi.Batch.execute.

Executes one or more SQL statements and returns the Results.
public Batch
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final Batch delegate
logback to summary
private static final JooqLogger log

Constructor Detail

LoggingBatchback to summary
public LoggingBatch(Batch delegate)

Method Detail

addback to summary
public Batch add(String sql)

Implements io.r2dbc.spi.Batch.add.

Doc from io.r2dbc.spi.Batch.add.

Add a statement to this batch.

Parameters
sql:String

the statement to add

Returns:Batch

this Batch

Annotations
@Override
executeback to summary
public Publisher<? extends Result> execute()

Implements io.r2dbc.spi.Batch.execute.

Doc from io.r2dbc.spi.Batch.execute.

Executes one or more SQL statements and returns the Results.

Returns:Publisher<? extends Result>

the Results, returned by each statement

Annotations
@Override
getDelegateback to summary
public Batch getDelegate()