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(int updateCount,
long insertId) |
ResultSet |
getBatchGeneratedKeys(Protocol protocol) |
int |
getCurrentStatNumber() |
ResultSet |
getGeneratedKeys(Protocol protocol)
Return GeneratedKeys containing insert ids.
|
int[] |
getRewriteUpdateCounts()
Will return an array filled with Statement.EXECUTE_FAILED if any error occur,
or Statement.SUCCESS_NO_INFO, if execution succeed.
|
int |
getUpdateCount() |
int[] |
getUpdateCounts() |
boolean |
isCurrentUpdateCount() |
boolean |
moreResults() |
public CmdInformationBatch(int expectedSize,
int autoIncrement)
expectedSize - expected batch size.autoIncrement - connection auto increment value.public void addErrorStat()
addErrorStat in interface CmdInformationpublic void addResultSetStat()
addResultSetStat in interface CmdInformationpublic void addSuccessStat(int updateCount,
long insertId)
addSuccessStat in interface CmdInformationpublic int[] getUpdateCounts()
getUpdateCounts in interface CmdInformationpublic int[] getRewriteUpdateCounts()
getRewriteUpdateCounts in interface CmdInformationpublic int getUpdateCount()
getUpdateCount in interface CmdInformationpublic ResultSet getBatchGeneratedKeys(Protocol protocol)
getBatchGeneratedKeys in interface CmdInformationpublic ResultSet getGeneratedKeys(Protocol protocol)
getGeneratedKeys in interface CmdInformationprotocol - current protocolpublic int getCurrentStatNumber()
getCurrentStatNumber in interface CmdInformationpublic boolean moreResults()
moreResults in interface CmdInformationpublic boolean isCurrentUpdateCount()
isCurrentUpdateCount in interface CmdInformationCopyright © 2017. All rights reserved.