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 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.