public class CmdInformationSingle extends Object implements CmdInformation
RESULT_SET_VALUE| Constructor and Description |
|---|
CmdInformationSingle(long insertId,
int updateCount,
int autoIncrement)
Object containing update / insert ids, optimized for only one result.
|
| 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)
Get generated Keys.
|
int[] |
getRewriteUpdateCounts() |
int |
getUpdateCount() |
int[] |
getUpdateCounts() |
boolean |
isCurrentUpdateCount() |
boolean |
moreResults() |
public CmdInformationSingle(long insertId,
int updateCount,
int autoIncrement)
insertId - auto generated id.updateCount - update countautoIncrement - connection auto increment value.public int[] getUpdateCounts()
getUpdateCounts in interface CmdInformationpublic int getUpdateCount()
getUpdateCount in interface CmdInformationpublic void addSuccessStat(int updateCount,
long insertId)
addSuccessStat in interface CmdInformationpublic void addErrorStat()
addErrorStat in interface CmdInformationpublic void addResultSetStat()
addResultSetStat in interface CmdInformationpublic ResultSet getGeneratedKeys(Protocol protocol)
getGeneratedKeys in interface CmdInformationprotocol - current protocolpublic ResultSet getBatchGeneratedKeys(Protocol protocol)
getBatchGeneratedKeys in interface CmdInformationpublic int getCurrentStatNumber()
getCurrentStatNumber in interface CmdInformationpublic boolean moreResults()
moreResults in interface CmdInformationpublic boolean isCurrentUpdateCount()
isCurrentUpdateCount in interface CmdInformationpublic int[] getRewriteUpdateCounts()
getRewriteUpdateCounts in interface CmdInformationCopyright © 2017. All rights reserved.