public class BaseExcelExecution extends Object implements Execution
Modifier and Type | Field and Description |
---|---|
protected VirtualFileConnection |
connection |
protected org.apache.poi.ss.usermodel.FormulaEvaluator |
evaluator |
protected ExecutionContext |
executionContext |
protected RuntimeMetadata |
metadata |
protected Iterator<org.apache.poi.ss.usermodel.Row> |
rowIterator |
protected ExcelQueryVisitor |
visitor |
protected org.apache.poi.ss.usermodel.Workbook |
workbook |
Constructor and Description |
---|
BaseExcelExecution(ExecutionContext executionContext,
RuntimeMetadata metadata,
VirtualFileConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
void |
execute()
Execute the associated command.
|
protected VirtualFile |
getCurrentXLSFile() |
protected VirtualFile |
getNextXLSFile() |
org.apache.poi.ss.usermodel.Row |
nextRow() |
void |
setDataFormatter(org.apache.poi.ss.usermodel.DataFormatter dataFormatter) |
void |
visit(LanguageObject command) |
protected ExecutionContext executionContext
protected RuntimeMetadata metadata
protected VirtualFileConnection connection
protected Iterator<org.apache.poi.ss.usermodel.Row> rowIterator
protected ExcelQueryVisitor visitor
protected org.apache.poi.ss.usermodel.FormulaEvaluator evaluator
protected org.apache.poi.ss.usermodel.Workbook workbook
public BaseExcelExecution(ExecutionContext executionContext, RuntimeMetadata metadata, VirtualFileConnection connection)
public void visit(LanguageObject command) throws TranslatorException
TranslatorException
public void execute() throws TranslatorException
Execution
execute
in interface Execution
TranslatorException
public org.apache.poi.ss.usermodel.Row nextRow() throws TranslatorException, DataNotAvailableException
protected VirtualFile getNextXLSFile() throws TranslatorException
TranslatorException
protected VirtualFile getCurrentXLSFile()
public void close()
Execution
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
TranslatorException
public void setDataFormatter(org.apache.poi.ss.usermodel.DataFormatter dataFormatter)
Copyright © 2019. All rights reserved.