public class ResultsRewrite extends Results
Constructor and Description |
---|
ResultsRewrite(MariaDbStatement statement,
int fetchSize,
boolean batch,
int expectedSize,
boolean binaryFormat,
int resultSetScrollType)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStats(int updateCount,
long insertId,
boolean moreResultAvailable)
Add execution statistics.
|
void |
addStatsError(boolean moreResultAvailable)
Indicate that result is an Error, to set appropriate results.
|
int |
getCurrentStatNumber() |
boolean |
isBatch() |
void |
setAutoIncrement(int autoIncrement) |
addResultSet, commandEnd, getCallableResultSet, getCmdInformation, getExpectedSize, getFetchSize, getMoreResults, getResultSet, getResultSetScrollType, getStatement, isBinaryFormat, loadFully, removeFetchSize, setCmdInformation
public ResultsRewrite(MariaDbStatement statement, int fetchSize, boolean batch, int expectedSize, boolean binaryFormat, int resultSetScrollType)
statement
- current statementfetchSize
- fetch sizebatch
- select result possibleexpectedSize
- expected sizebinaryFormat
- use binary protocolresultSetScrollType
- one of the following ResultSet
constants: ResultSet.TYPE_FORWARD_ONLY
,
ResultSet.TYPE_SCROLL_INSENSITIVE
, or ResultSet.TYPE_SCROLL_SENSITIVE
public void addStats(int updateCount, long insertId, boolean moreResultAvailable)
public void addStatsError(boolean moreResultAvailable)
Results
addStatsError
in class Results
moreResultAvailable
- indicate if other results (ResultSet or updateCount) are available.public int getCurrentStatNumber()
getCurrentStatNumber
in class Results
public void setAutoIncrement(int autoIncrement)
Copyright © 2017. All rights reserved.