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

public class AfterQueryEvent extends ReadEvent
An event published immediately after a read-by-query request.
See Also:
  • Constructor Details

    • AfterQueryEvent

      public AfterQueryEvent(Iterable results, com.google.cloud.datastore.Query query)
      Constructor.
      Parameters:
      results - A list of results from the read operation where each item was mapped from a Cloud Datastore entity.
      query - The query run on Cloud Datastore.
  • Method Details

    • getQuery

      public com.google.cloud.datastore.Query getQuery()
      Get the query that was run.
      Returns:
      the query that was run.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object