Interface DatabaseClient (2.25.0)

public interface DatabaseClient

Methods

batchWriteAtLeastOnce(Iterable<MutationGroup> arg0, Options.TransactionOption[] arg1)

public abstract ServerStream<BatchWriteResponse> batchWriteAtLeastOnce(Iterable<MutationGroup> arg0, Options.TransactionOption[] arg1)
Parameters
Name Description
arg0 Iterable<MutationGroup>
arg1 TransactionOption[]
Returns
Type Description
ServerStream<com.google.spanner.v1.BatchWriteResponse>
Exceptions
Type Description
SpannerException

executePartitionedUpdate(Statement arg0, Options.UpdateOption[] arg1)

public abstract long executePartitionedUpdate(Statement arg0, Options.UpdateOption[] arg1)
Parameters
Name Description
arg0 Statement
arg1 UpdateOption[]
Returns
Type Description
long

getDatabaseRole()

public default String getDatabaseRole()
Returns
Type Description
String

getDialect()

public default Dialect getDialect()
Returns
Type Description
Dialect

readOnlyTransaction()

public abstract ReadOnlyTransaction readOnlyTransaction()
Returns
Type Description
ReadOnlyTransaction

readOnlyTransaction(TimestampBound arg0)

public abstract ReadOnlyTransaction readOnlyTransaction(TimestampBound arg0)
Parameter
Name Description
arg0 TimestampBound
Returns
Type Description
ReadOnlyTransaction

readWriteTransaction(Options.TransactionOption[] arg0)

public abstract TransactionRunner readWriteTransaction(Options.TransactionOption[] arg0)
Parameter
Name Description
arg0 TransactionOption[]
Returns
Type Description
TransactionRunner

runAsync(Options.TransactionOption[] arg0)

public abstract AsyncRunner runAsync(Options.TransactionOption[] arg0)
Parameter
Name Description
arg0 TransactionOption[]
Returns
Type Description
AsyncRunner

singleUse()

public abstract ReadContext singleUse()
Returns
Type Description
ReadContext

singleUse(TimestampBound arg0)

public abstract ReadContext singleUse(TimestampBound arg0)
Parameter
Name Description
arg0 TimestampBound
Returns
Type Description
ReadContext

singleUseReadOnlyTransaction()

public abstract ReadOnlyTransaction singleUseReadOnlyTransaction()
Returns
Type Description
ReadOnlyTransaction

singleUseReadOnlyTransaction(TimestampBound arg0)

public abstract ReadOnlyTransaction singleUseReadOnlyTransaction(TimestampBound arg0)
Parameter
Name Description
arg0 TimestampBound
Returns
Type Description
ReadOnlyTransaction

transactionManager(Options.TransactionOption[] arg0)

public abstract TransactionManager transactionManager(Options.TransactionOption[] arg0)
Parameter
Name Description
arg0 TransactionOption[]
Returns
Type Description
TransactionManager

transactionManagerAsync(Options.TransactionOption[] arg0)

public abstract AsyncTransactionManager transactionManagerAsync(Options.TransactionOption[] arg0)
Parameter
Name Description
arg0 TransactionOption[]
Returns
Type Description
AsyncTransactionManager

write(Iterable<Mutation> arg0)

public abstract Timestamp write(Iterable<Mutation> arg0)
Parameter
Name Description
arg0 Iterable<Mutation>
Returns
Type Description
com.google.cloud.Timestamp
Exceptions
Type Description
SpannerException

writeAtLeastOnce(Iterable<Mutation> arg0)

public abstract Timestamp writeAtLeastOnce(Iterable<Mutation> arg0)
Parameter
Name Description
arg0 Iterable<Mutation>
Returns
Type Description
com.google.cloud.Timestamp
Exceptions
Type Description
SpannerException

writeAtLeastOnceWithOptions(Iterable<Mutation> arg0, Options.TransactionOption[] arg1)

public abstract CommitResponse writeAtLeastOnceWithOptions(Iterable<Mutation> arg0, Options.TransactionOption[] arg1)
Parameters
Name Description
arg0 Iterable<Mutation>
arg1 TransactionOption[]
Returns
Type Description
CommitResponse
Exceptions
Type Description
SpannerException

writeWithOptions(Iterable<Mutation> arg0, Options.TransactionOption[] arg1)

public abstract CommitResponse writeWithOptions(Iterable<Mutation> arg0, Options.TransactionOption[] arg1)
Parameters
Name Description
arg0 Iterable<Mutation>
arg1 TransactionOption[]
Returns
Type Description
CommitResponse
Exceptions
Type Description
SpannerException