Package org.teiid.translator.excel
Class ExcelUpdateExecution
- java.lang.Object
-
- org.teiid.translator.excel.BaseExcelExecution
-
- org.teiid.translator.excel.ExcelUpdateExecution
-
- All Implemented Interfaces:
Execution
,UpdateExecution
public class ExcelUpdateExecution extends BaseExcelExecution implements UpdateExecution
-
-
Field Summary
-
Fields inherited from class org.teiid.translator.excel.BaseExcelExecution
connection, evaluator, executionContext, immutable, metadata, rowIterator, visitor, workbook
-
-
Constructor Summary
Constructors Constructor Description ExcelUpdateExecution(LanguageObject command, ExecutionContext executionContext, RuntimeMetadata metadata, VirtualFileConnection connection, boolean immutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute the associated command.protected VirtualFile
getNextXLSFile()
int[]
getUpdateCounts()
Returns the update counts for the execution.void
setWriteTo(VirtualFile writeTo)
-
Methods inherited from class org.teiid.translator.excel.BaseExcelExecution
cancel, close, getCurrentXLSFile, nextRow, setDataFormatter, visit
-
-
-
-
Constructor Detail
-
ExcelUpdateExecution
public ExcelUpdateExecution(LanguageObject command, ExecutionContext executionContext, RuntimeMetadata metadata, VirtualFileConnection connection, boolean immutable) throws TranslatorException
- Throws:
TranslatorException
-
-
Method Detail
-
getUpdateCounts
public int[] getUpdateCounts() throws DataNotAvailableException, TranslatorException
Description copied from interface:UpdateExecution
Returns the update counts for the execution.
A single positive integer value is expected for non bulk/batch commands.
bulk/batch should return an integer for each value/command. 0 or greater for successful update count, -2 for no info, -3 failure- Specified by:
getUpdateCounts
in interfaceUpdateExecution
- Returns:
- the update counts corresponding to the command executed
- Throws:
DataNotAvailableException
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.- Specified by:
execute
in interfaceExecution
- Overrides:
execute
in classBaseExcelExecution
- Throws:
TranslatorException
-
getNextXLSFile
protected VirtualFile getNextXLSFile() throws TranslatorException
- Overrides:
getNextXLSFile
in classBaseExcelExecution
- Throws:
TranslatorException
-
setWriteTo
public void setWriteTo(VirtualFile writeTo)
-
-