public abstract class AbstractSpreadsheetExecution extends Object implements UpdateExecution
| Modifier and Type | Field and Description |
|---|---|
protected Command |
command |
protected GoogleSpreadsheetConnection |
connection |
protected ExecutionContext |
context |
protected RuntimeMetadata |
metadata |
protected UpdateResult |
result |
| Constructor and Description |
|---|
AbstractSpreadsheetExecution(Command command,
GoogleSpreadsheetConnection connection,
ExecutionContext context,
RuntimeMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
GoogleSpreadsheetConnection |
getConnection() |
int[] |
getUpdateCounts()
Returns the update counts for the execution.
|
protected GoogleSpreadsheetConnection connection
protected RuntimeMetadata metadata
protected ExecutionContext context
protected Command command
protected UpdateResult result
public AbstractSpreadsheetExecution(Command command, GoogleSpreadsheetConnection connection, ExecutionContext context, RuntimeMetadata metadata)
public void close()
Executionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionpublic int[] getUpdateCounts()
throws DataNotAvailableException,
TranslatorException
UpdateExecutiongetUpdateCounts in interface UpdateExecutionDataNotAvailableExceptionTranslatorExceptionpublic GoogleSpreadsheetConnection getConnection()
Copyright © 2020. All rights reserved.