public static final class StatementConfiguration.Builder extends Object
StatementConfiguration
for more flexible construction.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StatementConfiguration |
build() |
StatementConfiguration.Builder |
fetchDirection(Integer fetchDirection) |
StatementConfiguration.Builder |
fetchSize(Integer fetchSize) |
StatementConfiguration.Builder |
maxFieldSize(Integer maxFieldSize) |
StatementConfiguration.Builder |
maxRows(Integer maxRows) |
StatementConfiguration.Builder |
queryTimeout(Duration queryTimeout) |
StatementConfiguration.Builder |
queryTimeout(Integer queryTimeout)
Deprecated.
|
public Builder()
public StatementConfiguration build()
StatementConfiguration
.public StatementConfiguration.Builder fetchDirection(Integer fetchDirection)
fetchDirection
- The direction for fetching rows from database tables.StatementConfiguration.getFetchDirection()
public StatementConfiguration.Builder fetchSize(Integer fetchSize)
fetchSize
- The number of rows that should be fetched from the database when more rows are needed.StatementConfiguration.getFetchSize()
public StatementConfiguration.Builder maxFieldSize(Integer maxFieldSize)
maxFieldSize
- The maximum number of bytes that can be returned for character and binary column values.StatementConfiguration.getMaxFieldSize()
public StatementConfiguration.Builder maxRows(Integer maxRows)
maxRows
- The maximum number of rows that a ResultSet
can produce.StatementConfiguration.getMaxRows()
public StatementConfiguration.Builder queryTimeout(Duration queryTimeout)
queryTimeout
- The number of seconds the driver will wait for execution.StatementConfiguration.getQueryTimeoutDuration()
@Deprecated public StatementConfiguration.Builder queryTimeout(Integer queryTimeout)
queryTimeout(Duration)
.queryTimeout
- The number of seconds the driver will wait for execution.StatementConfiguration.getQueryTimeout()
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.