Class CmdInformationSingle
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.read.dao.CmdInformationSingle
-
- All Implemented Interfaces:
CmdInformation
public class CmdInformationSingle extends Object implements CmdInformation
-
-
Field Summary
-
Fields inherited from interface org.mariadb.jdbc.internal.com.read.dao.CmdInformation
RESULT_SET_VALUE
-
-
Constructor Summary
Constructors Constructor Description CmdInformationSingle(long insertId, long updateCount, int autoIncrement)Object containing update / insert ids, optimized for only one result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddErrorStat()voidaddResultSetStat()voidaddSuccessStat(long updateCount, long insertId)ResultSetgetBatchGeneratedKeys(Protocol protocol)intgetCurrentStatNumber()ResultSetgetGeneratedKeys(Protocol protocol, String sql)Get generated Keys.longgetLargeUpdateCount()long[]getLargeUpdateCounts()int[]getServerUpdateCounts()intgetUpdateCount()int[]getUpdateCounts()booleanisCurrentUpdateCount()booleanmoreResults()voidreset()voidsetRewrite(boolean rewritten)
-
-
-
Constructor Detail
-
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 Detail
-
getUpdateCounts
public int[] getUpdateCounts()
- Specified by:
getUpdateCountsin interfaceCmdInformation
-
getServerUpdateCounts
public int[] getServerUpdateCounts()
- Specified by:
getServerUpdateCountsin interfaceCmdInformation
-
getLargeUpdateCounts
public long[] getLargeUpdateCounts()
- Specified by:
getLargeUpdateCountsin interfaceCmdInformation
-
getUpdateCount
public int getUpdateCount()
- Specified by:
getUpdateCountin interfaceCmdInformation
-
getLargeUpdateCount
public long getLargeUpdateCount()
- Specified by:
getLargeUpdateCountin interfaceCmdInformation
-
addErrorStat
public void addErrorStat()
- Specified by:
addErrorStatin interfaceCmdInformation
-
reset
public void reset()
- Specified by:
resetin interfaceCmdInformation
-
addResultSetStat
public void addResultSetStat()
- Specified by:
addResultSetStatin interfaceCmdInformation
-
getGeneratedKeys
public ResultSet getGeneratedKeys(Protocol protocol, String sql)
Get generated Keys.- Specified by:
getGeneratedKeysin interfaceCmdInformation- Parameters:
protocol- current protocolsql- SQL command- Returns:
- a resultSet containing the single insert ids.
-
getBatchGeneratedKeys
public ResultSet getBatchGeneratedKeys(Protocol protocol)
- Specified by:
getBatchGeneratedKeysin interfaceCmdInformation
-
getCurrentStatNumber
public int getCurrentStatNumber()
- Specified by:
getCurrentStatNumberin interfaceCmdInformation
-
moreResults
public boolean moreResults()
- Specified by:
moreResultsin interfaceCmdInformation
-
isCurrentUpdateCount
public boolean isCurrentUpdateCount()
- Specified by:
isCurrentUpdateCountin interfaceCmdInformation
-
addSuccessStat
public void addSuccessStat(long updateCount, long insertId)- Specified by:
addSuccessStatin interfaceCmdInformation
-
setRewrite
public void setRewrite(boolean rewritten)
- Specified by:
setRewritein interfaceCmdInformation
-
-