Class StatementConfiguration


  • public class StatementConfiguration
    extends java.lang.Object
    Configuration options for a Statement when preparing statements in QueryRunner.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  StatementConfiguration.Builder
      Builder class for StatementConfiguration for more flexible construction.
    • Constructor Summary

      Constructors 
      Constructor Description
      StatementConfiguration​(java.lang.Integer fetchDirection, java.lang.Integer fetchSize, java.lang.Integer maxFieldSize, java.lang.Integer maxRows, java.lang.Integer queryTimeout)
      Constructor for StatementConfiguration.
    • Field Detail

      • fetchDirection

        private final java.lang.Integer fetchDirection
      • fetchSize

        private final java.lang.Integer fetchSize
      • maxFieldSize

        private final java.lang.Integer maxFieldSize
      • maxRows

        private final java.lang.Integer maxRows
      • queryTimeout

        private final java.lang.Integer queryTimeout
    • Constructor Detail

      • StatementConfiguration

        public StatementConfiguration​(java.lang.Integer fetchDirection,
                                      java.lang.Integer fetchSize,
                                      java.lang.Integer maxFieldSize,
                                      java.lang.Integer maxRows,
                                      java.lang.Integer queryTimeout)
        Constructor for StatementConfiguration. For more flexibility, use StatementConfiguration.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 a ResultSet can produce.
        queryTimeout - The number of seconds the driver will wait for execution.
    • Method Detail

      • getFetchDirection

        public java.lang.Integer getFetchDirection()
        Get the fetch direction.
        Returns:
        The direction to fetch or null if not set.
      • isFetchDirectionSet

        public boolean isFetchDirectionSet()
        Whether fetch direction is set.
        Returns:
        true if set, false otherwise.
      • getFetchSize

        public java.lang.Integer getFetchSize()
        Get the fetch size.
        Returns:
        The fetch size or null if not set.
      • isFetchSizeSet

        public boolean isFetchSizeSet()
        Whether fetch size is set.
        Returns:
        true if set, false otherwise.
      • getMaxFieldSize

        public java.lang.Integer getMaxFieldSize()
        Get the max field size.
        Returns:
        The max field size or null if not set.
      • isMaxFieldSizeSet

        public boolean isMaxFieldSizeSet()
        Whether max field size is set.
        Returns:
        true if set, false otherwise.
      • getMaxRows

        public java.lang.Integer getMaxRows()
        Get the max rows.
        Returns:
        The max rows or null if not set.
      • isMaxRowsSet

        public boolean isMaxRowsSet()
        Whether max rows is set.
        Returns:
        true if set, false otherwise.
      • getQueryTimeout

        public java.lang.Integer getQueryTimeout()
        Get the query timeout.
        Returns:
        The query timeout or null if not set.
      • isQueryTimeoutSet

        public boolean isQueryTimeoutSet()
        Whether query timeout is set.
        Returns:
        true if set, false otherwise.