Package com.mysql.cj.protocol.x
Class StatementExecuteOk
java.lang.Object
com.mysql.cj.protocol.x.StatementExecuteOk
- All Implemented Interfaces:
ProtocolEntity,QueryResult,Result
public class StatementExecuteOk extends java.lang.Object implements ProtocolEntity, Result
ProtocolEntity representing a
StatementExecuteOk message.-
Constructor Summary
Constructors Constructor Description StatementExecuteOk()StatementExecuteOk(long rowsAffected, java.lang.Long lastInsertId, java.util.List<java.lang.String> generatedIds, java.util.List<Warning> warnings) -
Method Summary
Modifier and Type Method Description longgetAffectedItemsCount()Get the count of affected items from manipulation statements.java.util.List<java.lang.String>getGeneratedIds()java.lang.LonggetLastInsertId()java.util.Iterator<Warning>getWarnings()Get warnings generated during statement execution.intgetWarningsCount()Get the number of warnings generated during statement execution.
-
Constructor Details
-
StatementExecuteOk
public StatementExecuteOk() -
StatementExecuteOk
public StatementExecuteOk(long rowsAffected, java.lang.Long lastInsertId, java.util.List<java.lang.String> generatedIds, java.util.List<Warning> warnings)
-
-
Method Details
-
getAffectedItemsCount
public long getAffectedItemsCount()Description copied from interface:ResultGet the count of affected items from manipulation statements. This method forces internal buffering of the result.- Specified by:
getAffectedItemsCountin interfaceResult- Returns:
- count
-
getLastInsertId
public java.lang.Long getLastInsertId() -
getGeneratedIds
public java.util.List<java.lang.String> getGeneratedIds() -
getWarningsCount
public int getWarningsCount()Description copied from interface:ResultGet the number of warnings generated during statement execution. This method forces internal buffering of the result.- Specified by:
getWarningsCountin interfaceResult- Returns:
- number of warnings
-
getWarnings
Description copied from interface:ResultGet warnings generated during statement execution. This method forces internal buffering of the result.- Specified by:
getWarningsin interfaceResult- Returns:
- iterator over warnings
-