public class SelectSettings extends Settings
| Constructor and Description |
|---|
SelectSettings() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowEmptyWhere()
Returns whether the empty WHERE clause is allowed or not.
|
int |
getFetchSize()
Returns the fetch size.
|
int |
getMaxRows()
Returns the maximum number of rows for a
ResultSet object. |
void |
setAllowEmptyWhere(boolean allowEmptyWhere)
Sets whether the empty WHERE clause is allowed or not.
|
void |
setFetchSize(int fetchSize)
Sets the fetch size.
|
void |
setMaxRows(int maxRows)
Sets the maximum number of rows for a
ResultSet object. |
getComment, getQueryTimeout, getSqlLogType, setComment, setQueryTimeout, setSqlLogTypepublic boolean getAllowEmptyWhere()
public void setAllowEmptyWhere(boolean allowEmptyWhere)
If the value is false and the WHERE clause is empty, EmptyWhereClauseException will be thrown.
allowEmptyWhere - whether the empty WHERE clause is allowed or notpublic int getFetchSize()
public void setFetchSize(int fetchSize)
If the value is greater than or equal to 1, it is passed to Statement.setFetchSize(int).
fetchSize - the fetch sizeStatement.setFetchSize(int)public int getMaxRows()
ResultSet object.public void setMaxRows(int maxRows)
ResultSet object.
If the value is greater than or equal to 1, it is passed to Statement.setMaxRows(int).
maxRows - the maximum number of rowsStatement.setMaxRows(int)