Class CmdInformationSingle
java.lang.Object
org.mariadb.jdbc.internal.com.read.dao.CmdInformationSingle
- All Implemented Interfaces:
CmdInformation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final long
private long
Fields inherited from interface org.mariadb.jdbc.internal.com.read.dao.CmdInformation
RESULT_SET_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionCmdInformationSingle
(long insertId, long updateCount, int autoIncrement) Object containing update / insert ids, optimized for only one result. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addSuccessStat
(long updateCount, long insertId) getBatchGeneratedKeys
(Protocol protocol) int
getGeneratedKeys
(Protocol protocol) Get generated Keys.long
long[]
int[]
int
int[]
boolean
boolean
void
reset()
void
setRewrite
(boolean rewritten)
-
Field Details
-
insertId
private final long insertId -
autoIncrement
private final int autoIncrement -
updateCount
private long updateCount
-
-
Constructor Details
-
CmdInformationSingle
public CmdInformationSingle(long insertId, long updateCount, int autoIncrement) Object containing update / insert ids, optimized for only one result.- Parameters:
insertId
- auto generated id.updateCount
- update countautoIncrement
- connection auto increment value.
-
-
Method Details
-
getUpdateCounts
public int[] getUpdateCounts()- Specified by:
getUpdateCounts
in interfaceCmdInformation
-
getServerUpdateCounts
public int[] getServerUpdateCounts()- Specified by:
getServerUpdateCounts
in interfaceCmdInformation
-
getLargeUpdateCounts
public long[] getLargeUpdateCounts()- Specified by:
getLargeUpdateCounts
in interfaceCmdInformation
-
getUpdateCount
public int getUpdateCount()- Specified by:
getUpdateCount
in interfaceCmdInformation
-
getLargeUpdateCount
public long getLargeUpdateCount()- Specified by:
getLargeUpdateCount
in interfaceCmdInformation
-
addErrorStat
public void addErrorStat()- Specified by:
addErrorStat
in interfaceCmdInformation
-
reset
public void reset()- Specified by:
reset
in interfaceCmdInformation
-
addResultSetStat
public void addResultSetStat()- Specified by:
addResultSetStat
in interfaceCmdInformation
-
getGeneratedKeys
Get generated Keys.- Specified by:
getGeneratedKeys
in interfaceCmdInformation
- Parameters:
protocol
- current protocol- Returns:
- a resultSet containing the single insert ids.
-
getBatchGeneratedKeys
- Specified by:
getBatchGeneratedKeys
in interfaceCmdInformation
-
getCurrentStatNumber
public int getCurrentStatNumber()- Specified by:
getCurrentStatNumber
in interfaceCmdInformation
-
moreResults
public boolean moreResults()- Specified by:
moreResults
in interfaceCmdInformation
-
isCurrentUpdateCount
public boolean isCurrentUpdateCount()- Specified by:
isCurrentUpdateCount
in interfaceCmdInformation
-
addSuccessStat
public void addSuccessStat(long updateCount, long insertId) - Specified by:
addSuccessStat
in interfaceCmdInformation
-
setRewrite
public void setRewrite(boolean rewritten) - Specified by:
setRewrite
in interfaceCmdInformation
-