Class SelectSettings

java.lang.Object
org.seasar.doma.jdbc.criteria.context.Settings
org.seasar.doma.jdbc.criteria.context.SelectSettings

public class SelectSettings extends Settings
Represents the settings for a SELECT criteria query.
  • Constructor Details

    • SelectSettings

      public SelectSettings()
  • Method Details

    • getAllowEmptyWhere

      public boolean getAllowEmptyWhere()
      Returns whether the empty WHERE clause is allowed or not.
      Returns:
      whether the empty WHERE clause is allowed or not. The default value is true.
    • setAllowEmptyWhere

      public void setAllowEmptyWhere(boolean allowEmptyWhere)
      Sets whether the empty WHERE clause is allowed or not.

      If the value is false and the WHERE clause is empty, EmptyWhereClauseException will be thrown.

      Parameters:
      allowEmptyWhere - whether the empty WHERE clause is allowed or not
    • getFetchSize

      public int getFetchSize()
      Returns the fetch size.
      Returns:
      the fetch size. The default value is 0.
    • setFetchSize

      public void setFetchSize(int fetchSize)
      Sets the fetch size.

      If the value is greater than or equal to 1, it is passed to Statement.setFetchSize(int).

      Parameters:
      fetchSize - the fetch size
      See Also:
    • getMaxRows

      public int getMaxRows()
      Returns the maximum number of rows for a ResultSet object.
      Returns:
      the maximum number of rows. The default value is 0
    • setMaxRows

      public void setMaxRows(int maxRows)
      Sets the maximum number of rows for a ResultSet object.

      If the value is greater than or equal to 1, it is passed to Statement.setMaxRows(int).

      Parameters:
      maxRows - the maximum number of rows
      See Also: