Class AbstractSpannerRequestOptions<A>

java.lang.Object
com.google.cloud.spring.data.spanner.core.AbstractSpannerRequestOptions<A>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SpannerQueryOptions, SpannerReadOptions

public class AbstractSpannerRequestOptions<A> extends Object implements Serializable
Abstract class of common Read and Query request settings.
See Also:
  • Field Details

    • requestOptions

      protected transient List<A> requestOptions
    • requestOptionType

      protected Class<A> requestOptionType
  • Constructor Details

    • AbstractSpannerRequestOptions

      public AbstractSpannerRequestOptions()
  • Method Details

    • getIncludeProperties

      public Set<String> getIncludeProperties()
    • setIncludeProperties

      public AbstractSpannerRequestOptions setIncludeProperties(Set<String> includeProperties)
    • getTimestampBound

      public com.google.cloud.spanner.TimestampBound getTimestampBound()
    • setTimestampBound

      public AbstractSpannerRequestOptions setTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
      Set if this query should be executed with bounded staleness.
      Parameters:
      timestampBound - the timestamp bound. Can be exact or bounded staleness.
      Returns:
      this options object.
    • getTimestamp

      public com.google.cloud.Timestamp getTimestamp()
    • setTimestamp

      public AbstractSpannerRequestOptions setTimestamp(com.google.cloud.Timestamp timestamp)
    • getOptions

      public A[] getOptions()
    • isAllowPartialRead

      public boolean isAllowPartialRead()
    • setAllowPartialRead

      public AbstractSpannerRequestOptions setAllowPartialRead(boolean allowPartialRead)