public class StatementConfiguration extends Object
Statement
when preparing statements in QueryRunner
.Modifier and Type | Class and Description |
---|---|
static class |
StatementConfiguration.Builder
Builder class for
StatementConfiguration for more flexible construction. |
Constructor and Description |
---|
StatementConfiguration(Integer fetchDirection,
Integer fetchSize,
Integer maxFieldSize,
Integer maxRows,
Duration queryTimeout)
Constructor for
StatementConfiguration . |
StatementConfiguration(Integer fetchDirection,
Integer fetchSize,
Integer maxFieldSize,
Integer maxRows,
Integer queryTimeout)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getFetchDirection()
Get the fetch direction.
|
Integer |
getFetchSize()
Get the fetch size.
|
Integer |
getMaxFieldSize()
Get the max field size.
|
Integer |
getMaxRows()
Get the max rows.
|
Integer |
getQueryTimeout()
Deprecated.
|
Duration |
getQueryTimeoutDuration()
Get the query timeout.
|
boolean |
isFetchDirectionSet()
Whether fetch direction is set.
|
boolean |
isFetchSizeSet()
Whether fetch size is set.
|
boolean |
isMaxFieldSizeSet()
Whether max field size is set.
|
boolean |
isMaxRowsSet()
Whether max rows is set.
|
boolean |
isQueryTimeoutSet()
Whether query timeout is set.
|
public StatementConfiguration(Integer fetchDirection, Integer fetchSize, Integer maxFieldSize, Integer maxRows, Duration queryTimeout)
StatementConfiguration
. For more flexibility, use StatementConfiguration.Builder
.fetchDirection
- The direction for fetching rows from database tables.fetchSize
- The number of rows that should be fetched from the database when more rows are needed.maxFieldSize
- The maximum number of bytes that can be returned for character and binary column values.maxRows
- The maximum number of rows that a ResultSet
can produce.queryTimeout
- The number of seconds the driver will wait for execution.@Deprecated public StatementConfiguration(Integer fetchDirection, Integer fetchSize, Integer maxFieldSize, Integer maxRows, Integer queryTimeout)
StatementConfiguration(Integer, Integer, Integer, Integer, Duration)
.StatementConfiguration
. For more flexibility, use StatementConfiguration.Builder
.fetchDirection
- The direction for fetching rows from database tables.fetchSize
- The number of rows that should be fetched from the database when more rows are needed.maxFieldSize
- The maximum number of bytes that can be returned for character and binary column values.maxRows
- The maximum number of rows that a ResultSet
can produce.queryTimeout
- The number of seconds the driver will wait for execution.public Integer getFetchDirection()
public Integer getFetchSize()
public Integer getMaxFieldSize()
public Integer getMaxRows()
@Deprecated public Integer getQueryTimeout()
getQueryTimeoutDuration()
.public Duration getQueryTimeoutDuration()
public boolean isFetchDirectionSet()
public boolean isFetchSizeSet()
public boolean isMaxFieldSizeSet()
public boolean isMaxRowsSet()
public boolean isQueryTimeoutSet()
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.