Class AfterQueryEvent
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
This event is published immediately following a read-by-query operation on Cloud Spanner.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAfterQueryEvent
(Iterable source, com.google.cloud.spanner.Statement query, SpannerQueryOptions spannerQueryOptions) Constructor. -
Method Summary
Methods inherited from class com.google.cloud.spring.data.spanner.core.mapping.event.LoadEvent
getRetrievedEntities
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
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 nevernull
.query
- the read query that was run.spannerQueryOptions
- the options that were used to conduct the query. This may benull
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
Get the options that were used to conduct the query.- Returns:
- This may be
null
if the operation was a key-based read.
-
equals
-
hashCode
public int hashCode()
-