Class ExcelImportTemplateSpec
java.lang.Object
com.orchestranetworks.addon.dint.template.TemplateSpec<ST,TT>
 
com.orchestranetworks.addon.dint.template.ImportExportTemplateSpec<ExcelSourceTable,EBXTargetTable>
 
com.orchestranetworks.addon.dint.template.ExcelImportTemplateSpec
- All Implemented Interfaces:
 com.orchestranetworks.addon.dint.dataconnector.spec.InvalidDataExcelFileValidator
public final class ExcelImportTemplateSpec
extends ImportExportTemplateSpec<ExcelSourceTable,EBXTargetTable>
implements com.orchestranetworks.addon.dint.dataconnector.spec.InvalidDataExcelFileValidator 
Template specification for Excel import.
- Since:
 - 4.1.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionExcelImportTemplateSpec(TemplateConfig<ExcelSourceTable, EBXTargetTable> templateConfig, File sourceFile, com.orchestranetworks.service.Session session) ExcelImportTemplateSpec(String templateId, File sourceFile, com.orchestranetworks.service.Session session) Constructs a newExcelImportTemplateSpecinstance.ExcelImportTemplateSpec(String templateId, File sourceFile, String sheetName, com.orchestranetworks.service.Session session) Deprecated. - 
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureProcedure(Consumer<com.orchestranetworks.service.ProcedureContext> config) Configures theProcedureContextinstance when writing in EBX.Returns the file that contains invalid records.Consumer<com.orchestranetworks.service.ProcedureContext>Returns theProcedureContextconfiguration ornull.Deprecated.Since 4.3.2, it's no longer required to specify a sheet name.Returns the source Excel file.voidsetInvalidDataFile(File invalidDataFile) Sets the file that contains invalid records.Methods inherited from class com.orchestranetworks.addon.dint.template.ImportExportTemplateSpec
getDataset, setDatasetMethods inherited from class com.orchestranetworks.addon.dint.template.TemplateSpec
getSession, getTemplateConfig, getTemplateIdMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orchestranetworks.addon.dint.dataconnector.spec.InvalidDataExcelFileValidator
validate 
- 
Constructor Details
- 
ExcelImportTemplateSpec
@Deprecated public ExcelImportTemplateSpec(String templateId, File sourceFile, String sheetName, com.orchestranetworks.service.Session session) Deprecated.UseExcelImportTemplateSpec(String, File, Session)instead. Since v4.3.2, it's no longer required to specify a sheet name.Constructs a newExcelImportTemplateSpecinstance.- Parameters:
 templateId- The unique template id.sourceFile- The source Excel file.sheetName- The sheet name of the Excel file.session- The session.- Throws:
 IllegalArgumentException- If any parameter isnullor source file does not exist.
 - 
ExcelImportTemplateSpec
public ExcelImportTemplateSpec(String templateId, File sourceFile, com.orchestranetworks.service.Session session) Constructs a newExcelImportTemplateSpecinstance.- Parameters:
 templateId- The unique template id.sourceFile- The source Excel file.session- The session.- Throws:
 IllegalArgumentException- If any parameter isnullor the source file does not exist.- Since:
 - 4.3.2
 
 - 
ExcelImportTemplateSpec
public ExcelImportTemplateSpec(TemplateConfig<ExcelSourceTable, EBXTargetTable> templateConfig, File sourceFile, com.orchestranetworks.service.Session session)  
 - 
 - 
Method Details
- 
getSourceFile
Returns the source Excel file. - 
getSheetName
Deprecated.Since 4.3.2, it's no longer required to specify a sheet name.Returns the sheet name. - 
configureProcedure
Configures theProcedureContextinstance when writing in EBX.- Since:
 - 4.5.0
 - See Also:
 - 
Procedure.execute(ProcedureContext)
 
 - 
getProcedureConfig
Returns theProcedureContextconfiguration ornull.- Since:
 - 4.5.0
 - See Also:
 - 
Procedure.execute(ProcedureContext)
 
 - 
getInvalidDataFile
Returns the file that contains invalid records.- Since:
 - 4.5.0
 
 - 
setInvalidDataFile
Sets the file that contains invalid records.- Since:
 - 4.5.0
 
 
 - 
 
ExcelImportTemplateSpec(String, File, Session)instead.