Uses of Class
com.google.cloud.spanner.Statement
-
Packages that use Statement Package Description com.google.cloud.spanner A client for Cloud Spanner - A no-compromise relational database service.com.google.cloud.spanner.connection Internal API for Google Cloud Spanner. -
-
Uses of Statement in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return Statement Modifier and Type Method Description StatementStatement.Builder. build()Builds theStatement.static StatementStatement. of(String sql)Creates aStatementwith the given SQL textsql.Methods in com.google.cloud.spanner with parameters of type Statement Modifier and Type Method Description ResultSetReadContext. analyzeQuery(Statement statement, ReadContext.QueryAnalyzeMode queryMode)Analyzes a query and returns query plan and/or query execution statistics information.default ResultSetStatsTransactionContext. analyzeUpdate(Statement statement, ReadContext.QueryAnalyzeMode analyzeMode, Options.UpdateOption... options)Deprecated.UseTransactionContext.analyzeUpdateStatement(Statement, QueryAnalyzeMode, UpdateOption...)instead to get both statement plan and parameter metadatadefault ResultSetTransactionContext. analyzeUpdateStatement(Statement statement, ReadContext.QueryAnalyzeMode analyzeMode, Options.UpdateOption... options)Analyzes a DML statement and returns query plan and statement parameter metadata and optionally execution statistics information.longDatabaseClient. executePartitionedUpdate(Statement stmt, Options.UpdateOption... options)Returns the lower bound of rows modified by this DML statement.ResultSetReadContext. executeQuery(Statement statement, Options.QueryOption... options)Executes a query against the database.AsyncResultSetReadContext. executeQueryAsync(Statement statement, Options.QueryOption... options)Same asReadContext.executeQuery(Statement, QueryOption...), but is guaranteed to be non-blocking and returns its results as anAsyncResultSet.longTransactionContext. executeUpdate(Statement statement, Options.UpdateOption... options)Executes the DML statement (which can be a simple DML statement or DML statement with a returning clause) and returns the number of rows modified.com.google.api.core.ApiFuture<Long>TransactionContext. executeUpdateAsync(Statement statement, Options.UpdateOption... options)Same as#executeUpdate(Statement), but is guaranteed to be non-blocking.List<Partition>BatchReadOnlyTransaction. partitionQuery(PartitionOptions partitionOptions, Statement statement, Options.QueryOption... options)Returns a list ofPartitionto execute a query against the database.Method parameters in com.google.cloud.spanner with type arguments of type Statement Modifier and Type Method Description long[]TransactionContext. batchUpdate(Iterable<Statement> statements, Options.UpdateOption... options)Executes a list of DML statements (which can include simple DML statements or DML statements with returning clause) in a single request.com.google.api.core.ApiFuture<long[]>TransactionContext. batchUpdateAsync(Iterable<Statement> statements, Options.UpdateOption... options)Same as#batchUpdate(Iterable), but is guaranteed to be non-blocking. -
Uses of Statement in com.google.cloud.spanner.connection
Methods in com.google.cloud.spanner.connection with parameters of type Statement Modifier and Type Method Description ResultSetConnection. analyzeQuery(Statement query, ReadContext.QueryAnalyzeMode queryMode)Analyzes a query or a DML statement and returns query plan and/or query execution statistics information.default ResultSetStatsConnection. analyzeUpdate(Statement update, ReadContext.QueryAnalyzeMode analyzeMode)Deprecated.default ResultSetConnection. analyzeUpdateStatement(Statement statement, ReadContext.QueryAnalyzeMode analyzeMode, Options.UpdateOption... options)Analyzes a DML statement and returns execution plan, undeclared parameters and optionally execution statistics information.StatementResultConnection. execute(Statement statement)Executes the given statement if allowed in the currentTransactionModeand connection state.AsyncStatementResultConnection. executeAsync(Statement statement)Executes the given statement if allowed in the currentTransactionModeand connection state asynchronously.ResultSetConnection. executeQuery(Statement query, Options.QueryOption... options)Executes the given statement (a query or a DML statement with returning clause) and returns the result as aResultSet.AsyncResultSetConnection. executeQueryAsync(Statement query, Options.QueryOption... options)Executes the given statement (a query or a DML statement with returning clause) asynchronously and returns the result as anAsyncResultSet.longConnection. executeUpdate(Statement update)Executes the given statement as a simple DML statement.com.google.api.core.ApiFuture<Long>Connection. executeUpdateAsync(Statement update)Executes the given statement asynchronously as a simple DML statement.AbstractStatementParser.ParsedStatementAbstractStatementParser. parse(Statement statement)Parses the given statement and categorizes it as one of the possibleAbstractStatementParser.StatementTypes.Method parameters in com.google.cloud.spanner.connection with type arguments of type Statement Modifier and Type Method Description long[]Connection. executeBatchUpdate(Iterable<Statement> updates)Executes a list of DML statements (can be simple DML statements or DML statements with returning clause) in a single request.com.google.api.core.ApiFuture<long[]>Connection. executeBatchUpdateAsync(Iterable<Statement> updates)Executes a list of DML statements (can be simple DML statements or DML statements with returning clause) in a single request.
-