java.lang.Object
org.seasar.doma.jdbc.criteria.context.Settings
org.seasar.doma.jdbc.criteria.context.SelectSettings
Represents the settings for a SELECT criteria query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the empty WHERE clause is allowed or not.intReturns the fetch size.intReturns the maximum number of rows for aResultSetobject.voidsetAllowEmptyWhere(boolean allowEmptyWhere) Sets whether the empty WHERE clause is allowed or not.voidsetFetchSize(int fetchSize) Sets the fetch size.voidsetMaxRows(int maxRows) Sets the maximum number of rows for aResultSetobject.Methods inherited from class org.seasar.doma.jdbc.criteria.context.Settings
getComment, getQueryTimeout, getSqlLogType, setComment, setQueryTimeout, setSqlLogType
-
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,
EmptyWhereClauseExceptionwill 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 aResultSetobject.- Returns:
- the maximum number of rows. The default value is 0
-
setMaxRows
public void setMaxRows(int maxRows) Sets the maximum number of rows for aResultSetobject.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:
-