public class CmdInformationRewrite extends Object implements CmdInformation
NO_UPDATE_COUNT
Constructor and Description |
---|
CmdInformationRewrite(int expectedSize)
Rewrite information objects.
|
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 CmdInformationRewrite(int expectedSize)
expectedSize
- expected batch size.public void addStats(int updateCount)
addStats
in interface CmdInformation
public void addStats(int updateCount, long insertId)
addStats
in interface CmdInformation
public int[] getUpdateCounts()
getUpdateCounts
in interface CmdInformation
public int getUpdateCount()
getUpdateCount
in interface CmdInformation
public 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
Copyright © 2016. All rights reserved.