public static interface DatabaseClient.Builder
DatabaseClient
.Modifier and Type | Method and Description |
---|---|
DatabaseClient.Builder |
apply(Consumer<DatabaseClient.Builder> builderConsumer)
Configures a
Consumer to configure this builder. |
DatabaseClient |
build()
Builder the
DatabaseClient instance. |
DatabaseClient.Builder |
connectionFactory(ConnectionFactory factory)
Configures the
R2DBC connector . |
DatabaseClient.Builder |
dataAccessStrategy(ReactiveDataAccessStrategy accessStrategy)
Configures a
ReactiveDataAccessStrategy . |
DatabaseClient.Builder |
exceptionTranslator(R2dbcExceptionTranslator exceptionTranslator)
Configures a
R2dbcExceptionTranslator . |
DatabaseClient.Builder |
executeFunction(ExecuteFunction executeFunction)
Configures a
ExecuteFunction to execute Statement objects. |
DatabaseClient.Builder |
namedParameters(boolean enabled)
Configures whether to use named parameter expansion.
|
DatabaseClient.Builder |
projectionFactory(ProjectionFactory factory)
Configures the
projection factory . |
DatabaseClient.Builder connectionFactory(ConnectionFactory factory)
R2DBC connector
.factory
- must not be null.this
DatabaseClient.Builder
.DatabaseClient.Builder exceptionTranslator(R2dbcExceptionTranslator exceptionTranslator)
R2dbcExceptionTranslator
.exceptionTranslator
- must not be null.this
DatabaseClient.Builder
.DatabaseClient.Builder executeFunction(ExecuteFunction executeFunction)
ExecuteFunction
to execute Statement
objects.executeFunction
- must not be null.this
DatabaseClient.Builder
.Statement.execute()
DatabaseClient.Builder dataAccessStrategy(ReactiveDataAccessStrategy accessStrategy)
ReactiveDataAccessStrategy
.accessStrategy
- must not be null.this
DatabaseClient.Builder
.DatabaseClient.Builder namedParameters(boolean enabled)
enabled
- true to use named parameter expansion. false to disable named parameter
expansion.this
DatabaseClient.Builder
.NamedParameterExpander
DatabaseClient.Builder projectionFactory(ProjectionFactory factory)
projection factory
.factory
- must not be null.this
DatabaseClient.Builder
.DatabaseClient.Builder apply(Consumer<DatabaseClient.Builder> builderConsumer)
Consumer
to configure this builder.builderConsumer
- must not be null.this
DatabaseClient.Builder
.DatabaseClient build()
DatabaseClient
instance.Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.