public class CmdInformationMultiple extends Object implements CmdInformation
NO_UPDATE_COUNT| Constructor and Description |
|---|
CmdInformationMultiple(int expectedSize)
Constructor, initialized with an error result.
|
CmdInformationMultiple(int updateCount,
int expectedSize)
Constructor, initialized with a ResultSet result.
|
CmdInformationMultiple(long insertId,
int updateCount,
int expectedSize)
Constructor, initialized with a standard result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStats(int updateCount) |
void |
addStats(int updateCount,
long insertId) |
int |
getCurrentStatNumber() |
ResultSet |
getGeneratedKeys(Protocol protocol)
Return GeneratedKeys containing insert ids.
|
int |
getUpdateCount() |
int[] |
getUpdateCounts() |
boolean |
isCurrentUpdateCount() |
boolean |
moreResults() |
public CmdInformationMultiple(long insertId,
int updateCount,
int expectedSize)
insertId - generated insert idupdateCount - update countexpectedSize - expected batch sizepublic CmdInformationMultiple(int updateCount,
int expectedSize)
updateCount - update countexpectedSize - expected batch sizepublic CmdInformationMultiple(int expectedSize)
expectedSize - expected batch size.public void addStats(int updateCount)
addStats in interface CmdInformationpublic void addStats(int updateCount,
long insertId)
addStats in interface CmdInformationpublic int[] getUpdateCounts()
getUpdateCounts in interface CmdInformationpublic int getUpdateCount()
getUpdateCount 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 © 2016. All rights reserved.