Interface DatabaseClient (2.16.1)

public interface DatabaseClient

Methods

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

public abstract ServerStream<BatchWriteResponse> batchWriteAtLeastOnce(Iterable<MutationGroup> arg0, Options.TransactionOption[] arg1)
Parameters
NameDescription
arg0Iterable<MutationGroup>
arg1TransactionOption[]
Returns
TypeDescription
ServerStream<com.google.spanner.v1.BatchWriteResponse>
Exceptions
TypeDescription
SpannerException

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

public abstract long executePartitionedUpdate(Statement arg0, Options.UpdateOption[] arg1)
Parameters
NameDescription
arg0Statement
arg1UpdateOption[]
Returns
TypeDescription
long

getDatabaseRole()

public default String getDatabaseRole()
Returns
TypeDescription
String

getDialect()

public default Dialect getDialect()
Returns
TypeDescription
Dialect

readOnlyTransaction()

public abstract ReadOnlyTransaction readOnlyTransaction()
Returns
TypeDescription
ReadOnlyTransaction

readOnlyTransaction(TimestampBound arg0)

public abstract ReadOnlyTransaction readOnlyTransaction(TimestampBound arg0)
Parameter
NameDescription
arg0TimestampBound
Returns
TypeDescription
ReadOnlyTransaction

readWriteTransaction(Options.TransactionOption[] arg0)

public abstract TransactionRunner readWriteTransaction(Options.TransactionOption[] arg0)
Parameter
NameDescription
arg0TransactionOption[]
Returns
TypeDescription
TransactionRunner

runAsync(Options.TransactionOption[] arg0)

public abstract AsyncRunner runAsync(Options.TransactionOption[] arg0)
Parameter
NameDescription
arg0TransactionOption[]
Returns
TypeDescription
AsyncRunner

singleUse()

public abstract ReadContext singleUse()
Returns
TypeDescription
ReadContext

singleUse(TimestampBound arg0)

public abstract ReadContext singleUse(TimestampBound arg0)
Parameter
NameDescription
arg0TimestampBound
Returns
TypeDescription
ReadContext

singleUseReadOnlyTransaction()

public abstract ReadOnlyTransaction singleUseReadOnlyTransaction()
Returns
TypeDescription
ReadOnlyTransaction

singleUseReadOnlyTransaction(TimestampBound arg0)

public abstract ReadOnlyTransaction singleUseReadOnlyTransaction(TimestampBound arg0)
Parameter
NameDescription
arg0TimestampBound
Returns
TypeDescription
ReadOnlyTransaction

transactionManager(Options.TransactionOption[] arg0)

public abstract TransactionManager transactionManager(Options.TransactionOption[] arg0)
Parameter
NameDescription
arg0TransactionOption[]
Returns
TypeDescription
TransactionManager

transactionManagerAsync(Options.TransactionOption[] arg0)

public abstract AsyncTransactionManager transactionManagerAsync(Options.TransactionOption[] arg0)
Parameter
NameDescription
arg0TransactionOption[]
Returns
TypeDescription
AsyncTransactionManager

write(Iterable<Mutation> arg0)

public abstract Timestamp write(Iterable<Mutation> arg0)
Parameter
NameDescription
arg0Iterable<Mutation>
Returns
TypeDescription
com.google.cloud.Timestamp
Exceptions
TypeDescription
SpannerException

writeAtLeastOnce(Iterable<Mutation> arg0)

public abstract Timestamp writeAtLeastOnce(Iterable<Mutation> arg0)
Parameter
NameDescription
arg0Iterable<Mutation>
Returns
TypeDescription
com.google.cloud.Timestamp
Exceptions
TypeDescription
SpannerException

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

public abstract CommitResponse writeAtLeastOnceWithOptions(Iterable<Mutation> arg0, Options.TransactionOption[] arg1)
Parameters
NameDescription
arg0Iterable<Mutation>
arg1TransactionOption[]
Returns
TypeDescription
CommitResponse
Exceptions
TypeDescription
SpannerException

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

public abstract CommitResponse writeWithOptions(Iterable<Mutation> arg0, Options.TransactionOption[] arg1)
Parameters
NameDescription
arg0Iterable<Mutation>
arg1TransactionOption[]
Returns
TypeDescription
CommitResponse
Exceptions
TypeDescription
SpannerException