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

public class AfterQueryEvent extends LoadEvent
This event is published immediately following a read-by-query operation on Cloud Spanner.
See Also:
  • Constructor Details

    • AfterQueryEvent

      public AfterQueryEvent(Iterable source, com.google.cloud.spanner.Statement query, SpannerQueryOptions spannerQueryOptions)
      Constructor.
      Parameters:
      source - The entities that were read from Cloud Spanner.This is never null.
      query - the read query that was run.
      spannerQueryOptions - the options that were used to conduct the query. This may be null if the operation was a key-based read.
  • Method Details

    • getQuery

      public com.google.cloud.spanner.Statement getQuery()
      Get the read query that was run.
      Returns:
      the query statement.
    • getSpannerQueryOptions

      public SpannerQueryOptions getSpannerQueryOptions()
      Get the options that were used to conduct the query.
      Returns:
      This may be null if the operation was a key-based read.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class LoadEvent