Class StatementConfiguration
java.lang.Object
org.apache.commons.dbutils.StatementConfiguration
Configuration options for a
Statement when preparing statements in QueryRunner.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class forStatementConfigurationfor more flexible construction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the fetch direction.Get the fetch size.Get the max field size.Get the max rows.Get the query timeout.booleanWhether fetch direction is set.booleanWhether fetch size is set.booleanWhether max field size is set.booleanWhether max rows is set.booleanWhether query timeout is set.
-
Constructor Details
-
StatementConfiguration
public StatementConfiguration(Integer fetchDirection, Integer fetchSize, Integer maxFieldSize, Integer maxRows, Integer queryTimeout) Constructor forStatementConfiguration. For more flexibility, useStatementConfiguration.Builder.- Parameters:
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 aResultSetcan produce.queryTimeout- The number of seconds the driver will wait for execution.
-
-
Method Details
-
getFetchDirection
Get the fetch direction.- Returns:
- The direction to fetch or null if not set.
-
isFetchDirectionSet
Whether fetch direction is set.- Returns:
- true if set, false otherwise.
-
getFetchSize
-
isFetchSizeSet
-
getMaxFieldSize
Get the max field size.- Returns:
- The max field size or null if not set.
-
isMaxFieldSizeSet
Whether max field size is set.- Returns:
- true if set, false otherwise.
-
getMaxRows
-
isMaxRowsSet
-
getQueryTimeout
Get the query timeout.- Returns:
- The query timeout or null if not set.
-
isQueryTimeoutSet
Whether query timeout is set.- Returns:
- true if set, false otherwise.
-