ReadLockMode

com.google.spanner.v1.transaction.TransactionOptions.ReadWrite.ReadLockMode
See theReadLockMode companion class
object ReadLockMode extends GeneratedEnumCompanion[ReadLockMode]

Attributes

Companion
class
Source
TransactionOptions.scala
Graph
Supertypes
trait Sum
trait Mirror
trait GeneratedEnumCompanion[ReadLockMode]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

case object OPTIMISTIC extends ReadLockMode, Recognized

Optimistic lock mode.

Optimistic lock mode.

Locks for reads within the transaction are not acquired on read. Instead the locks are acquired on a commit to validate that read/queried data has not changed since the transaction started.

Attributes

Source
TransactionOptions.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class ReadLockMode
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
OPTIMISTIC.type
case object PESSIMISTIC extends ReadLockMode, Recognized

Pessimistic lock mode.

Pessimistic lock mode.

Read locks are acquired immediately on read.

Attributes

Source
TransactionOptions.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class ReadLockMode
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Default value.

Default value.

If the value is not specified, the pessimistic read lock is used.

Attributes

Source
TransactionOptions.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class ReadLockMode
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
sealed trait Recognized extends ReadLockMode

Attributes

Source
TransactionOptions.scala
Supertypes
class ReadLockMode
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object OPTIMISTIC.type
object PESSIMISTIC.type
final case class Unrecognized(unrecognizedValue: Int) extends ReadLockMode, UnrecognizedEnum

Attributes

Source
TransactionOptions.scala
Supertypes
trait UnrecognizedEnum
class ReadLockMode
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type ValueType = A

Attributes

Inherited from:
GeneratedEnumCompanion
Source
GeneratedMessageCompanion.scala

Value members

Concrete methods

def fromValue(`__value`: Int): ReadLockMode

Attributes

Source
TransactionOptions.scala
def javaDescriptor: EnumDescriptor

Returns the Java descriptors for this enum. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Returns the Java descriptors for this enum. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Attributes

Source
TransactionOptions.scala
def scalaDescriptor: EnumDescriptor

Attributes

Source
TransactionOptions.scala

Inherited methods

def fromName(name: String): Option[A]

Attributes

Inherited from:
GeneratedEnumCompanion
Source
GeneratedMessageCompanion.scala

Concrete fields

lazy val values: Seq[ReadLockMode]

Attributes

Source
TransactionOptions.scala

Implicits

Implicits

implicit def enumCompanion: GeneratedEnumCompanion[ReadLockMode]

Attributes

Source
TransactionOptions.scala