@InternalApi
public interface StatementResult
Connection.execute(com.google.cloud.spanner.Statement)
method could have different types of
return values. These are wrapped in a StatementResult
.Modifier and Type | Interface and Description |
---|---|
static class |
StatementResult.ClientSideStatementType
The type of client side statement that was executed.
|
static class |
StatementResult.ResultType
Enum indicating the type of result that was returned by
Connection.execute(com.google.cloud.spanner.Statement) |
Modifier and Type | Method and Description |
---|---|
StatementResult.ClientSideStatementType |
getClientSideStatementType() |
ResultSet |
getResultSet()
Returns the
ResultSet held by this result. |
StatementResult.ResultType |
getResultType()
Returns the
StatementResult.ResultType of this result. |
Long |
getUpdateCount()
Returns the update count held by this result.
|
StatementResult.ResultType getResultType()
StatementResult.ResultType
of this result.StatementResult.ClientSideStatementType getClientSideStatementType()
StatementResult.ClientSideStatementType
that was executed, or null if no such statement was
executed.ResultSet getResultSet()
ResultSet
held by this result. May only be called if the type of this
result is StatementResult.ResultType.RESULT_SET
.ResultSet
held by this result.Long getUpdateCount()
StatementResult.ResultType.UPDATE_COUNT
.Copyright © 2022 Google LLC. All rights reserved.