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.
|
QuerySettings(int queryTimeout,
TimeUnit queryTimeoutUnit,
Integer fetchSize,
Integer maxRows,
boolean useColumnNumbers)
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() |
boolean |
isUseColumnNumbers() |
void |
setUseColumnNumbers(boolean useColumnNumbers) |
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 QuerySettings(int queryTimeout,
TimeUnit queryTimeoutUnit,
Integer fetchSize,
Integer maxRows,
boolean useColumnNumbers)
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.useColumnNumbers - When set to true, uses column numbers instead of column names as keys in the result map.public void copyInto(QuerySettings other)
public int getQueryTimeout()
public TimeUnit getQueryTimeoutUnit()
public Integer getFetchSize()
public Integer getMaxRows()
public boolean isUseColumnNumbers()
public void setUseColumnNumbers(boolean useColumnNumbers)
Copyright © 2025. All rights reserved.