Package org.apache.commons.dbutils
Class StatementConfiguration.Builder
java.lang.Object
org.apache.commons.dbutils.StatementConfiguration.Builder
- Enclosing class:
- StatementConfiguration
Builder class for
StatementConfiguration
for more flexible construction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
fetchDirection
(Integer fetchDirection) maxFieldSize
(Integer maxFieldSize) queryTimeout
(Integer queryTimeout) Deprecated.queryTimeout
(Duration queryTimeout)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
- Returns:
- A new and configured
StatementConfiguration
.
-
fetchDirection
- Parameters:
fetchDirection
- The direction for fetching rows from database tables.- Returns:
- This builder for chaining.
- See Also:
-
fetchSize
- Parameters:
fetchSize
- The number of rows that should be fetched from the database when more rows are needed.- Returns:
- This builder for chaining.
- See Also:
-
maxFieldSize
- Parameters:
maxFieldSize
- The maximum number of bytes that can be returned for character and binary column values.- Returns:
- This builder for chaining.
- See Also:
-
maxRows
- Parameters:
maxRows
- The maximum number of rows that aResultSet
can produce.- Returns:
- This builder for chaining.
- See Also:
-
queryTimeout
- Parameters:
queryTimeout
- The number of seconds the driver will wait for execution.- Returns:
- This builder for chaining.
- Since:
- 1.8.0
- See Also:
-
queryTimeout
Deprecated.- Parameters:
queryTimeout
- The number of seconds the driver will wait for execution.- Returns:
- This builder for chaining.
- See Also:
-
queryTimeout(Duration)
.