public final class ExcelImportTemplateSpec extends ImportExportTemplateSpec<ExcelSourceTable,EBXTargetTable> implements com.orchestranetworks.addon.dint.dataconnector.spec.InvalidDataExcelFileValidator
Constructor and Description |
---|
ExcelImportTemplateSpec(String templateId,
File sourceFile,
com.orchestranetworks.service.Session session)
Constructs a new
ExcelImportTemplateSpec instance. |
ExcelImportTemplateSpec(String templateId,
File sourceFile,
String sheetName,
com.orchestranetworks.service.Session session)
Deprecated.
Use
ExcelImportTemplateSpec(String, File, Session) instead. Since v4.3.2, it's no longer required to specify a sheet name. |
ExcelImportTemplateSpec(TemplateConfig<ExcelSourceTable,EBXTargetTable> templateConfig,
File sourceFile,
com.orchestranetworks.service.Session session) |
Modifier and Type | Method and Description |
---|---|
void |
configureProcedure(java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext> config)
Configures the
ProcedureContext instance when writing in EBX. |
File |
getInvalidDataFile()
Returns the file that contains invalid records.
|
java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext> |
getProcedureConfig()
Returns the
ProcedureContext configuration or null . |
String |
getSheetName()
Deprecated.
Since 4.3.2, it's no longer required to specify a sheet name.
|
File |
getSourceFile()
Returns the source Excel file.
|
void |
setInvalidDataFile(File invalidDataFile)
Sets the file that contains invalid records.
|
getDataset, setDataset
getSession, getTemplateConfig, getTemplateId
@Deprecated public ExcelImportTemplateSpec(String templateId, File sourceFile, String sheetName, com.orchestranetworks.service.Session session)
ExcelImportTemplateSpec(String, File, Session)
instead. Since v4.3.2, it's no longer required to specify a sheet name.ExcelImportTemplateSpec
instance.templateId
- The unique template id.sourceFile
- The source Excel file.sheetName
- The sheet name of the Excel file.session
- The session.IllegalArgumentException
- If any parameter is null
or source file does not exist.public ExcelImportTemplateSpec(String templateId, File sourceFile, com.orchestranetworks.service.Session session)
ExcelImportTemplateSpec
instance.templateId
- The unique template id.sourceFile
- The source Excel file.session
- The session.IllegalArgumentException
- If any parameter is null
or the source file does not exist.public ExcelImportTemplateSpec(TemplateConfig<ExcelSourceTable,EBXTargetTable> templateConfig, File sourceFile, com.orchestranetworks.service.Session session)
public File getSourceFile()
@Deprecated public String getSheetName()
public void configureProcedure(java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext> config)
ProcedureContext
instance when writing in EBX.Procedure.execute(ProcedureContext)
public java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext> getProcedureConfig()
ProcedureContext
configuration or null
.Procedure.execute(ProcedureContext)
public File getInvalidDataFile()
public void setInvalidDataFile(File invalidDataFile)