Package org.teiid.translator.google
Class SpreadsheetUpdateExecution
- java.lang.Object
-
- org.teiid.translator.google.AbstractSpreadsheetExecution
-
- org.teiid.translator.google.SpreadsheetUpdateExecution
-
- All Implemented Interfaces:
Execution
,UpdateExecution
public class SpreadsheetUpdateExecution extends AbstractSpreadsheetExecution
Execution of INSERT, DELETE and UPDATE commands- Author:
- felias
-
-
Field Summary
-
Fields inherited from class org.teiid.translator.google.AbstractSpreadsheetExecution
command, connection, context, metadata, result
-
-
Constructor Summary
Constructors Constructor Description SpreadsheetUpdateExecution(Command command, GoogleSpreadsheetConnection connection, ExecutionContext context, RuntimeMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancels the execution abnormally.void
execute()
Execute the associated command.-
Methods inherited from class org.teiid.translator.google.AbstractSpreadsheetExecution
close, getConnection, getUpdateCounts
-
-
-
-
Constructor Detail
-
SpreadsheetUpdateExecution
public SpreadsheetUpdateExecution(Command command, GoogleSpreadsheetConnection connection, ExecutionContext context, RuntimeMetadata metadata)
-
-
Method Detail
-
cancel
public void cancel() throws TranslatorException
Description copied from interface:Execution
Cancels the execution abnormally. This will happen via a different thread from the one performing the execution, so should be expected to happen in a multi-threaded scenario.- Specified by:
cancel
in interfaceExecution
- Overrides:
cancel
in classAbstractSpreadsheetExecution
- Throws:
TranslatorException
-
execute
public void execute() throws TranslatorException
Description copied from interface:Execution
Execute the associated command. Results will be retrieved through a specific sub-interface call.- Throws:
TranslatorException
-
-