Package org.teiid.translator.google
Class AbstractSpreadsheetExecution
- java.lang.Object
-
- org.teiid.translator.google.AbstractSpreadsheetExecution
-
- All Implemented Interfaces:
Execution,UpdateExecution
- Direct Known Subclasses:
SpreadsheetUpdateExecution
public abstract class AbstractSpreadsheetExecution extends Object implements UpdateExecution
-
-
Field Summary
Fields Modifier and Type Field Description protected Commandcommandprotected GoogleSpreadsheetConnectionconnectionprotected ExecutionContextcontextprotected RuntimeMetadatametadataprotected UpdateResultresult
-
Constructor Summary
Constructors Constructor Description AbstractSpreadsheetExecution(Command command, GoogleSpreadsheetConnection connection, ExecutionContext context, RuntimeMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidclose()GoogleSpreadsheetConnectiongetConnection()int[]getUpdateCounts()
-
-
-
Field Detail
-
connection
protected GoogleSpreadsheetConnection connection
-
metadata
protected RuntimeMetadata metadata
-
context
protected ExecutionContext context
-
command
protected Command command
-
result
protected UpdateResult result
-
-
Constructor Detail
-
AbstractSpreadsheetExecution
public AbstractSpreadsheetExecution(Command command, GoogleSpreadsheetConnection connection, ExecutionContext context, RuntimeMetadata metadata)
-
-
Method Detail
-
cancel
public void cancel() throws TranslatorException- Specified by:
cancelin interfaceExecution- Throws:
TranslatorException
-
getUpdateCounts
public int[] getUpdateCounts() throws DataNotAvailableException, TranslatorException- Specified by:
getUpdateCountsin interfaceUpdateExecution- Throws:
DataNotAvailableExceptionTranslatorException
-
getConnection
public GoogleSpreadsheetConnection getConnection()
-
-