Class UpdateResult

java.lang.Object
com.mysql.cj.xdevapi.UpdateResult
All Implemented Interfaces:
QueryResult, Result
Direct Known Subclasses:
AddResultImpl, InsertResultImpl, SqlUpdateResult

public class UpdateResult
extends java.lang.Object
implements Result
A result from a statement that doesn't return a set of rows.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected StatementExecuteOk ok  
  • Constructor Summary

    Constructors 
    Constructor Description
    UpdateResult​(StatementExecuteOk ok)
    Create a new result.
  • Method Summary

    Modifier and Type Method Description
    long getAffectedItemsCount()
    Get the count of affected items from manipulation statements.
    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
  • Field Details

  • Constructor Details

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