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()
Execution
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
TranslatorException
public int[] getUpdateCounts() throws DataNotAvailableException, TranslatorException
UpdateExecution
getUpdateCounts
in interface UpdateExecution
DataNotAvailableException
TranslatorException
public GoogleSpreadsheetConnection getConnection()
Copyright © 2019. All rights reserved.