public class CmdInformationSingle extends java.lang.Object implements CmdInformation
Modifier and Type | Field and Description |
---|---|
private int |
autoIncrement |
private long |
insertId |
private long |
updateCount |
RESULT_SET_VALUE
Constructor and Description |
---|
CmdInformationSingle(long insertId,
long 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(long updateCount,
long insertId) |
java.sql.ResultSet |
getBatchGeneratedKeys(Protocol protocol) |
int |
getCurrentStatNumber() |
java.sql.ResultSet |
getGeneratedKeys(Protocol protocol)
Get generated Keys.
|
long |
getLargeUpdateCount() |
long[] |
getLargeUpdateCounts() |
int[] |
getServerUpdateCounts() |
int |
getUpdateCount() |
int[] |
getUpdateCounts() |
boolean |
isCurrentUpdateCount() |
boolean |
moreResults() |
void |
reset() |
void |
setRewrite(boolean rewritten) |
private final long insertId
private final int autoIncrement
private long updateCount
public CmdInformationSingle(long insertId, long updateCount, int autoIncrement)
insertId
- auto generated id.updateCount
- update countautoIncrement
- connection auto increment value.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 void addErrorStat()
addErrorStat
in interface CmdInformation
public void reset()
reset
in interface CmdInformation
public void addResultSetStat()
addResultSetStat
in interface CmdInformation
public java.sql.ResultSet getGeneratedKeys(Protocol protocol)
getGeneratedKeys
in interface CmdInformation
protocol
- current protocolpublic java.sql.ResultSet getBatchGeneratedKeys(Protocol protocol)
getBatchGeneratedKeys
in interface CmdInformation
public int getCurrentStatNumber()
getCurrentStatNumber
in interface CmdInformation
public boolean moreResults()
moreResults
in interface CmdInformation
public boolean isCurrentUpdateCount()
isCurrentUpdateCount
in interface CmdInformation
public void addSuccessStat(long updateCount, long insertId)
addSuccessStat
in interface CmdInformation
public void setRewrite(boolean rewritten)
setRewrite
in interface CmdInformation