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
    long getAffectedItemsCount()
    Get the count of affected items from manipulation statements.
    java.util.List<java.lang.String> getGeneratedIds()  
    java.lang.Long getLastInsertId()  
    java.util.Iterator<Warning> getWarnings()
    Get warnings generated during statement execution.
    int getWarningsCount()
    Get the number of warnings generated during statement execution.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: Result
      Get the count of affected items from manipulation statements. This method forces internal buffering of the result.
      Specified by:
      getAffectedItemsCount in interface Result
      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: Result
      Get the number of warnings generated during statement execution. This method forces internal buffering of the result.
      Specified by:
      getWarningsCount in interface Result
      Returns:
      number of warnings
    • getWarnings

      public java.util.Iterator<Warning> getWarnings()
      Description copied from interface: Result
      Get warnings generated during statement execution. This method forces internal buffering of the result.
      Specified by:
      getWarnings in interface Result
      Returns:
      iterator over warnings