public interface StatementResultA result of the execution of a statement. Statements that are executed by the Connection#execute(com.google.cloud.spanner.Statement) method could have different types of return values. These are wrapped in a StatementResult.
Methods
getClientSideStatementType()
public abstract StatementResult.ClientSideStatementType getClientSideStatementType()| Returns | |
|---|---|
| Type | Description |
StatementResult.ClientSideStatementType |
the ClientSideStatementType that was executed, or null if no such statement was executed. |
getResultSet()
public abstract ResultSet getResultSet()Returns the ResultSet held by this result. May only be called if the type of this result is ResultType#RESULT_SET.
| Returns | |
|---|---|
| Type | Description |
ResultSet |
the ResultSet held by this result. |
getResultType()
public abstract StatementResult.ResultType getResultType()Returns the ResultType of this result.
| Returns | |
|---|---|
| Type | Description |
StatementResult.ResultType |
the result type. |
getUpdateCount()
public abstract Long getUpdateCount()Returns the update count held by this result. May only be called if the type of this result is ResultType#UPDATE_COUNT.
| Returns | |
|---|---|
| Type | Description |
Long |
the update count held by this result. |