public class QuerySettings extends Object
| Constructor and Description |
|---|
QuerySettings()
Creates a new instance of QuerySettings
|
QuerySettings(int queryTimeout,
TimeUnit queryTimeoutUnit,
Integer fetchSize,
Integer maxRows)
Creates a new instance of Query Settings with the given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyInto(QuerySettings other) |
Integer |
getFetchSize() |
Integer |
getMaxRows() |
int |
getQueryTimeout() |
TimeUnit |
getQueryTimeoutUnit() |
public QuerySettings()
public QuerySettings(int queryTimeout,
TimeUnit queryTimeoutUnit,
Integer fetchSize,
Integer maxRows)
queryTimeout - Indicates the minimum amount of time before the JDBC driver attempts to cancel a running statement.
No timeout is used by default.queryTimeoutUnit - A TimeUnit which qualifies the queryTimeoutfetchSize - Indicates how many rows to fetch from the database when rows are read from a resultSet.maxRows - * Sets the limit for the maximum number of rows that any ResultSet object generated by this message
processor can contain for the given number. If the limit is exceeded, the excess rows are silently
dropped.public void copyInto(QuerySettings other)
public int getQueryTimeout()
public TimeUnit getQueryTimeoutUnit()
public Integer getFetchSize()
public Integer getMaxRows()
Copyright © 2022. All rights reserved.