Class AfterExecuteDmlEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.google.cloud.spring.data.spanner.core.mapping.event.ExecuteDmlEvent
com.google.cloud.spring.data.spanner.core.mapping.event.AfterExecuteDmlEvent
All Implemented Interfaces:
Serializable

public class AfterExecuteDmlEvent extends ExecuteDmlEvent
This event is published immediately after a DML statement is executed. It contains the DML statement as well as the number of rows affected.
See Also:
  • Constructor Details

    • AfterExecuteDmlEvent

      public AfterExecuteDmlEvent(com.google.cloud.spanner.Statement statement, long numberOfRowsAffected)
      Constructor.
      Parameters:
      statement - the DML statement that was executed.
      numberOfRowsAffected - the number of rows affected.
  • Method Details

    • getNumberOfRowsAffected

      public long getNumberOfRowsAffected()
      Get the number of rows affected by the DML.
      Returns:
      the number of rows affected.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ExecuteDmlEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ExecuteDmlEvent