Interface TransactionSelectorOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    TransactionSelector, TransactionSelector.Builder

    public interface TransactionSelectorOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TransactionOptions getBegin()
      Begin a new transaction and execute this read or SQL query in it.
      TransactionOptionsOrBuilder getBeginOrBuilder()
      Begin a new transaction and execute this read or SQL query in it.
      com.google.protobuf.ByteString getId()
      Execute the read or SQL query in a previously-started transaction.
      TransactionSelector.SelectorCase getSelectorCase()  
      TransactionOptions getSingleUse()
      Execute the read or SQL query in a temporary transaction.
      TransactionOptionsOrBuilder getSingleUseOrBuilder()
      Execute the read or SQL query in a temporary transaction.
      boolean hasBegin()
      Begin a new transaction and execute this read or SQL query in it.
      boolean hasId()
      Execute the read or SQL query in a previously-started transaction.
      boolean hasSingleUse()
      Execute the read or SQL query in a temporary transaction.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasSingleUse

        boolean hasSingleUse()
         Execute the read or SQL query in a temporary transaction.
         This is the most efficient way to execute a transaction that
         consists of a single SQL query.
         
        .google.spanner.v1.TransactionOptions single_use = 1;
        Returns:
        Whether the singleUse field is set.
      • getSingleUse

        TransactionOptions getSingleUse()
         Execute the read or SQL query in a temporary transaction.
         This is the most efficient way to execute a transaction that
         consists of a single SQL query.
         
        .google.spanner.v1.TransactionOptions single_use = 1;
        Returns:
        The singleUse.
      • getSingleUseOrBuilder

        TransactionOptionsOrBuilder getSingleUseOrBuilder()
         Execute the read or SQL query in a temporary transaction.
         This is the most efficient way to execute a transaction that
         consists of a single SQL query.
         
        .google.spanner.v1.TransactionOptions single_use = 1;
      • hasId

        boolean hasId()
         Execute the read or SQL query in a previously-started transaction.
         
        bytes id = 2;
        Returns:
        Whether the id field is set.
      • getId

        com.google.protobuf.ByteString getId()
         Execute the read or SQL query in a previously-started transaction.
         
        bytes id = 2;
        Returns:
        The id.
      • hasBegin

        boolean hasBegin()
         Begin a new transaction and execute this read or SQL query in
         it. The transaction ID of the new transaction is returned in
         [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction],
         which is a [Transaction][google.spanner.v1.Transaction].
         
        .google.spanner.v1.TransactionOptions begin = 3;
        Returns:
        Whether the begin field is set.
      • getBegin

        TransactionOptions getBegin()
         Begin a new transaction and execute this read or SQL query in
         it. The transaction ID of the new transaction is returned in
         [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction],
         which is a [Transaction][google.spanner.v1.Transaction].
         
        .google.spanner.v1.TransactionOptions begin = 3;
        Returns:
        The begin.
      • getBeginOrBuilder

        TransactionOptionsOrBuilder getBeginOrBuilder()
         Begin a new transaction and execute this read or SQL query in
         it. The transaction ID of the new transaction is returned in
         [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction],
         which is a [Transaction][google.spanner.v1.Transaction].
         
        .google.spanner.v1.TransactionOptions begin = 3;