public class CmdInformationMultiple extends java.lang.Object implements CmdInformation
Modifier and Type | Field and Description |
---|---|
private int |
autoIncrement |
private int |
expectedSize |
private boolean |
hasException |
private int |
insertIdNumber |
private java.util.ArrayList<java.lang.Long> |
insertIds |
private int |
moreResults |
private java.util.ArrayList<java.lang.Long> |
updateCounts |
RESULT_SET_VALUE
Constructor and Description |
---|
CmdInformationMultiple(int expectedSize,
int autoIncrement)
Object containing update / insert ids, optimized for only multiple 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)
Return GeneratedKeys containing insert ids.
|
long[] |
getLargeRewriteUpdateCounts()
Will return an array filled with Statement.EXECUTE_FAILED if any error occur,
or Statement.SUCCESS_NO_INFO, if execution succeed.
|
long |
getLargeUpdateCount() |
long[] |
getLargeUpdateCounts() |
long[] |
getRewriteLargeUpdateCounts() |
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() |
private java.util.ArrayList<java.lang.Long> insertIds
private java.util.ArrayList<java.lang.Long> updateCounts
private int insertIdNumber
private int expectedSize
private int autoIncrement
private int moreResults
private boolean hasException
public CmdInformationMultiple(int expectedSize, int autoIncrement)
expectedSize
- expected batch size.autoIncrement
- connection auto increment value.public void addErrorStat()
addErrorStat
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 long[] getLargeUpdateCounts()
getLargeUpdateCounts
in interface CmdInformation
public long[] getLargeRewriteUpdateCounts()
public int[] getRewriteUpdateCounts()
getRewriteUpdateCounts
in interface CmdInformation
public long[] getRewriteLargeUpdateCounts()
getRewriteLargeUpdateCounts
in interface CmdInformation
public int getUpdateCount()
getUpdateCount
in interface CmdInformation
public long getLargeUpdateCount()
getLargeUpdateCount
in interface CmdInformation
public java.sql.ResultSet getBatchGeneratedKeys(Protocol protocol)
getBatchGeneratedKeys
in interface CmdInformation
public java.sql.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