public class CmdInformationBatch extends Object implements CmdInformation
RESULT_SET_VALUE
Constructor and Description |
---|
CmdInformationBatch(int expectedSize,
int autoIncrement)
CmdInformationBatch is similar to CmdInformationMultiple, but knowing it's for batch,
doesn't take take of moreResult.
|
Modifier and Type | Method and Description |
---|---|
void |
addErrorStat() |
void |
addResultSetStat() |
void |
addSuccessStat(long updateCount,
long insertId) |
ResultSet |
getBatchGeneratedKeys(Protocol protocol) |
int |
getCurrentStatNumber() |
ResultSet |
getGeneratedKeys(Protocol protocol)
Return GeneratedKeys containing insert ids.
|
long |
getLargeUpdateCount() |
long[] |
getLargeUpdateCounts() |
int[] |
getServerUpdateCounts() |
int |
getUpdateCount() |
int[] |
getUpdateCounts() |
boolean |
isCurrentUpdateCount() |
boolean |
moreResults() |
void |
reset()
Clear error state, used for clear exception after first batch query, when fall back to per-query execution.
|
void |
setRewrite(boolean rewritten) |
public CmdInformationBatch(int expectedSize, int autoIncrement)
expectedSize
- expected batch size.autoIncrement
- connection auto increment value.public void addErrorStat()
addErrorStat
in interface CmdInformation
public void reset()
reset
in interface CmdInformation
public void addResultSetStat()
addResultSetStat
in interface CmdInformation
public void addSuccessStat(long updateCount, long insertId)
addSuccessStat
in interface CmdInformation
public int[] getUpdateCounts()
getUpdateCounts
in interface CmdInformation
public int[] getServerUpdateCounts()
getServerUpdateCounts
in interface CmdInformation
public long[] getLargeUpdateCounts()
getLargeUpdateCounts
in interface CmdInformation
public int getUpdateCount()
getUpdateCount
in interface CmdInformation
public long getLargeUpdateCount()
getLargeUpdateCount
in interface CmdInformation
public ResultSet getBatchGeneratedKeys(Protocol protocol)
getBatchGeneratedKeys
in interface CmdInformation
public ResultSet getGeneratedKeys(Protocol protocol)
getGeneratedKeys
in interface CmdInformation
protocol
- current protocolpublic int getCurrentStatNumber()
getCurrentStatNumber
in interface CmdInformation
public boolean moreResults()
moreResults
in interface CmdInformation
public boolean isCurrentUpdateCount()
isCurrentUpdateCount
in interface CmdInformation
public void setRewrite(boolean rewritten)
setRewrite
in interface CmdInformation
Copyright © 2018 mariadb.org. All rights reserved.