Send feedback
Interface Connection (0.14.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.14.1 keyboard_arrow_down
public interface Connection extends AutoCloseable
Methods
abortBatch()
public abstract void abortBatch ()
addTransactionRetryListener(TransactionRetryListener arg0)
public abstract void addTransactionRetryListener ( TransactionRetryListener arg0 )
Parameter
analyzeQuery(Statement arg0, ReadContext.QueryAnalyzeMode arg1)
public abstract ResultSet analyzeQuery ( Statement arg0 , ReadContext . QueryAnalyzeMode arg1 )
Parameters
Name Description arg0 com.google.cloud.spanner.Statement
arg1 com.google.cloud.spanner.ReadContext.QueryAnalyzeMode
Returns
Type Description com.google.cloud.spanner.ResultSet
analyzeUpdate(Statement arg0, ReadContext.QueryAnalyzeMode arg1)
public default ResultSetStats analyzeUpdate ( Statement arg0 , ReadContext . QueryAnalyzeMode arg1 )
Parameters
Name Description arg0 com.google.cloud.spanner.Statement
arg1 com.google.cloud.spanner.ReadContext.QueryAnalyzeMode
Returns
Type Description com.google.spanner.v1.ResultSetStats
analyzeUpdateStatement(Statement arg0, ReadContext.QueryAnalyzeMode arg1, Options.UpdateOption[] arg2)
public default ResultSet analyzeUpdateStatement ( Statement arg0 , ReadContext . QueryAnalyzeMode arg1 , Options . UpdateOption [] arg2 )
Parameters
Name Description arg0 com.google.cloud.spanner.Statement
arg1 com.google.cloud.spanner.ReadContext.QueryAnalyzeMode
arg2 com.google.cloud.spanner.Options.UpdateOption []
Returns
Type Description com.google.cloud.spanner.ResultSet
beginTransaction()
public abstract void beginTransaction ()
beginTransactionAsync()
public abstract ApiFuture<Void> beginTransactionAsync ()
Returns
bufferedWrite(Mutation arg0)
public abstract void bufferedWrite ( Mutation arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Mutation
bufferedWrite(Iterable<Mutation> arg0)
public abstract void bufferedWrite ( Iterable<Mutation> arg0 )
Parameter
Name Description arg0 Iterable <com.google.cloud.spanner.Mutation >
cancel()
public abstract void cancel ()
clearStatementTimeout()
public abstract void clearStatementTimeout ()
close()
public abstract void close ()
closeAsync()
public abstract ApiFuture<Void> closeAsync ()
Returns
commit()
public abstract void commit ()
commitAsync()
public abstract ApiFuture<Void> commitAsync ()
Returns
execute(Statement arg0)
public abstract StatementResult execute ( Statement arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Statement
Returns
executeAsync(Statement arg0)
public abstract AsyncStatementResult executeAsync ( Statement arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Statement
Returns
executeBatchUpdate(Iterable<Statement> arg0)
public abstract long [] executeBatchUpdate ( Iterable<Statement> arg0 )
Parameter
Name Description arg0 Iterable <com.google.cloud.spanner.Statement >
Returns
executeBatchUpdateAsync(Iterable<Statement> arg0)
public abstract ApiFuture<long [] > executeBatchUpdateAsync ( Iterable<Statement> arg0 )
Parameter
Name Description arg0 Iterable <com.google.cloud.spanner.Statement >
Returns
executeQuery(Statement arg0, Options.QueryOption[] arg1)
public abstract ResultSet executeQuery ( Statement arg0 , Options . QueryOption [] arg1 )
Parameters
Name Description arg0 com.google.cloud.spanner.Statement
arg1 com.google.cloud.spanner.Options.QueryOption []
Returns
Type Description com.google.cloud.spanner.ResultSet
executeQueryAsync(Statement arg0, Options.QueryOption[] arg1)
public abstract AsyncResultSet executeQueryAsync ( Statement arg0 , Options . QueryOption [] arg1 )
Parameters
Name Description arg0 com.google.cloud.spanner.Statement
arg1 com.google.cloud.spanner.Options.QueryOption []
Returns
Type Description com.google.cloud.spanner.AsyncResultSet
executeUpdate(Statement arg0)
public abstract long executeUpdate ( Statement arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Statement
Returns
executeUpdateAsync(Statement arg0)
public abstract ApiFuture<Long> executeUpdateAsync ( Statement arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Statement
Returns
getAutocommitDmlMode()
public abstract AutocommitDmlMode getAutocommitDmlMode ()
Returns
getCommitResponse()
public abstract CommitResponse getCommitResponse ()
Returns
Type Description com.google.cloud.spanner.CommitResponse
getCommitTimestamp()
public abstract Timestamp getCommitTimestamp ()
Returns
Type Description com.google.cloud.Timestamp
getDatabaseClient()
public default DatabaseClient getDatabaseClient ()
Returns
Type Description com.google.cloud.spanner.DatabaseClient
getDialect()
public default Dialect getDialect ()
Returns
Type Description com.google.cloud.spanner.Dialect
getOptimizerStatisticsPackage()
public default String getOptimizerStatisticsPackage ()
Returns
getOptimizerVersion()
public abstract String getOptimizerVersion ()
Returns
getRPCPriority()
public default Options . RpcPriority getRPCPriority ()
Returns
Type Description com.google.cloud.spanner.Options.RpcPriority
getReadOnlyStaleness()
public abstract TimestampBound getReadOnlyStaleness ()
Returns
Type Description com.google.cloud.spanner.TimestampBound
getReadTimestamp()
public abstract Timestamp getReadTimestamp ()
Returns
Type Description com.google.cloud.Timestamp
getStatementTag()
public default String getStatementTag ()
Returns
getStatementTimeout(TimeUnit arg0)
public abstract long getStatementTimeout ( TimeUnit arg0 )
Parameter
Returns
getTransactionMode()
public abstract TransactionMode getTransactionMode ()
Returns
getTransactionRetryListeners()
public abstract Iterator<TransactionRetryListener> getTransactionRetryListeners ()
Returns
getTransactionTag()
public default String getTransactionTag ()
Returns
hasStatementTimeout()
public abstract boolean hasStatementTimeout ()
Returns
isAutocommit()
public abstract boolean isAutocommit ()
Returns
isClosed()
public abstract boolean isClosed ()
Returns
isDdlBatchActive()
public abstract boolean isDdlBatchActive ()
Returns
isDmlBatchActive()
public abstract boolean isDmlBatchActive ()
Returns
isInTransaction()
public abstract boolean isInTransaction ()
Returns
isReadOnly()
public abstract boolean isReadOnly ()
Returns
isRetryAbortsInternally()
public abstract boolean isRetryAbortsInternally ()
Returns
isReturnCommitStats()
public abstract boolean isReturnCommitStats ()
Returns
isTransactionStarted()
public abstract boolean isTransactionStarted ()
Returns
removeTransactionRetryListener(TransactionRetryListener arg0)
public abstract boolean removeTransactionRetryListener ( TransactionRetryListener arg0 )
Parameter
Returns
rollback()
public abstract void rollback ()
rollbackAsync()
public abstract ApiFuture<Void> rollbackAsync ()
Returns
runBatch()
public abstract long [] runBatch ()
Returns
runBatchAsync()
public abstract ApiFuture<long [] > runBatchAsync ()
Returns
setAutocommit(boolean arg0)
public abstract void setAutocommit ( boolean arg0 )
Parameter
setAutocommitDmlMode(AutocommitDmlMode arg0)
public abstract void setAutocommitDmlMode ( AutocommitDmlMode arg0 )
Parameter
setOptimizerStatisticsPackage(String arg0)
public default void setOptimizerStatisticsPackage ( String arg0 )
Parameter
setOptimizerVersion(String arg0)
public abstract void setOptimizerVersion ( String arg0 )
Parameter
setRPCPriority(Options.RpcPriority arg0)
public default void setRPCPriority ( Options . RpcPriority arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Options.RpcPriority
setReadOnly(boolean arg0)
public abstract void setReadOnly ( boolean arg0 )
Parameter
setReadOnlyStaleness(TimestampBound arg0)
public abstract void setReadOnlyStaleness ( TimestampBound arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.TimestampBound
setRetryAbortsInternally(boolean arg0)
public abstract void setRetryAbortsInternally ( boolean arg0 )
Parameter
setReturnCommitStats(boolean arg0)
public abstract void setReturnCommitStats ( boolean arg0 )
Parameter
setStatementTag(String arg0)
public default void setStatementTag ( String arg0 )
Parameter
setStatementTimeout(long arg0, TimeUnit arg1)
public abstract void setStatementTimeout ( long arg0 , TimeUnit arg1 )
Parameters
setTransactionMode(TransactionMode arg0)
public abstract void setTransactionMode ( TransactionMode arg0 )
Parameter
setTransactionTag(String arg0)
public default void setTransactionTag ( String arg0 )
Parameter
startBatchDdl()
public abstract void startBatchDdl ()
startBatchDml()
public abstract void startBatchDml ()
write(Mutation arg0)
public abstract void write ( Mutation arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Mutation
write(Iterable<Mutation> arg0)
public abstract void write ( Iterable<Mutation> arg0 )
Parameter
Name Description arg0 Iterable <com.google.cloud.spanner.Mutation >
writeAsync(Mutation arg0)
public abstract ApiFuture<Void> writeAsync ( Mutation arg0 )
Parameter
Name Description arg0 com.google.cloud.spanner.Mutation
Returns
writeAsync(Iterable<Mutation> arg0)
public abstract ApiFuture<Void> writeAsync ( Iterable<Mutation> arg0 )
Parameter
Name Description arg0 Iterable <com.google.cloud.spanner.Mutation >
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-06 UTC."],[],[]]