Class SpreadsheetImportConfigurationSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dex.configuration.FileImportConfigurationSpec<SpreadsheetTable>
-
- com.orchestranetworks.addon.dex.configuration.SpreadsheetImportConfigurationSpec
-
- All Implemented Interfaces:
ConfigurationSpec<SpreadsheetTable>,ImportConfigurationSpec<SpreadsheetTable>
public final class SpreadsheetImportConfigurationSpec extends FileImportConfigurationSpec<SpreadsheetTable>
Defines the configuration used when importing data from an Excel file.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset, java.util.List<SpreadsheetTable> sourceTables, com.orchestranetworks.service.Session session)Imports data into multiple tables outside of aUIService.SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, SpreadsheetTable spreadsheetTable, com.orchestranetworks.service.Session session)Imports data into a table outside of aUIService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.onwbp.adaptation.AdaptationgetCurrentDataset()Returns the current dataset.com.onwbp.adaptation.AdaptationTablegetCurrentTable()Returns the current table.java.util.Map<java.lang.String,DataPosition>getDataPositionInSheets()Returns a map of data positions and Excel sheet names as the key parameter.ServiceTypegetServiceType()Returns the service type.com.orchestranetworks.service.SessiongetSession()Returns the current session.java.util.Map<SpreadsheetTable,TableFilter>getSourceTableFilters()Returns a map of source table filters.java.util.List<SpreadsheetTable>getSourceTables()Returns the list of source tables.booleanisDataBeforeTransformationValidated()Returnstrueif the import data is validated before transformation execution.booleanisForcePrecisionAsDisplayed()Returnstrueif the displayed value of numbers in each cell will be read and imported.booleanisHeaderComparedToIgnoreCase()Returntrueif a case-insensitive comparison is used when matching the header column.booleanisImportOnlyValidRecord()Returnstrueif validation errors exist and the user chooses to import only valid records.booleanisImportSequence()Returnstrueif the Excel sheet data are imported sequentially at simulation import mode.booleanisRedundantCharactersInHeaderRemoved()Returntrueif redundant characters contained in the header are removed during matching.voidsetDataBeforeTransformationValidated(boolean dataBeforeTransformationValidated)Sets whether the import data is validated before transformation execution.voidsetDataPositionInSheets(java.util.Map<java.lang.String,DataPosition> dataPositionInSheets)Sets a map of data positions and Excel sheet names as the key parameter.voidsetForcePrecisionAsDisplayed(boolean forcePrecisionAsDisplayed)Specifies the accuracy of numbers when importing Excel.voidsetHeaderComparedToIgnoreCase(boolean headerComparedToIgnoreCase)Sets whether a case-insensitive comparison is used when matching the header column.voidsetImportOnlyValidRecord(boolean importOnlyValidRecord)Sets whether only valid records are imported if validation errors exist.voidsetImportSequence(boolean importSequence)Sets whether the Excel sheet data are imported sequentially at simulation import mode.voidsetRedundantCharactersInHeaderRemoved(boolean redundantCharactersInHeaderRemoved)Sets whether redundant characters contained in the header are removed during matching.-
Methods inherited from class com.orchestranetworks.addon.dex.configuration.FileImportConfigurationSpec
getErrorFilePath, getImportedFile, getImportMode, isEmptyOrNullPrimaryKeyChecked, isEmptyOrNullValueIgnored, isHeaderUsed, isImportForced, isInvalidDataDownloaded, setEmptyOrNullPrimaryKeyChecked, setEmptyOrNullValueIgnored, setErrorFilePath, setHeaderUsed, setImportedFile, setImportForced, setImportMode, setInvalidDataDownloaded
-
-
-
-
Constructor Detail
-
SpreadsheetImportConfigurationSpec
public SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, SpreadsheetTable spreadsheetTable, com.orchestranetworks.service.Session session) throws DataExchangeExceptionImports data into a table outside of aUIService.- Throws:
DataExchangeException
-
SpreadsheetImportConfigurationSpec
public SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset, java.util.List<SpreadsheetTable> sourceTables, com.orchestranetworks.service.Session session) throws DataExchangeExceptionImports data into multiple tables outside of aUIService.- Throws:
DataExchangeException
-
-
Method Detail
-
getServiceType
public ServiceType getServiceType()
Returns the service type.
-
isHeaderComparedToIgnoreCase
public boolean isHeaderComparedToIgnoreCase()
Returntrueif a case-insensitive comparison is used when matching the header column.
-
setHeaderComparedToIgnoreCase
public void setHeaderComparedToIgnoreCase(boolean headerComparedToIgnoreCase)
Sets whether a case-insensitive comparison is used when matching the header column.
-
isRedundantCharactersInHeaderRemoved
public boolean isRedundantCharactersInHeaderRemoved()
Returntrueif redundant characters contained in the header are removed during matching.
-
setRedundantCharactersInHeaderRemoved
public void setRedundantCharactersInHeaderRemoved(boolean redundantCharactersInHeaderRemoved)
Sets whether redundant characters contained in the header are removed during matching.
-
getDataPositionInSheets
public java.util.Map<java.lang.String,DataPosition> getDataPositionInSheets()
Returns a map of data positions and Excel sheet names as the key parameter.
-
setDataPositionInSheets
public void setDataPositionInSheets(java.util.Map<java.lang.String,DataPosition> dataPositionInSheets)
Sets a map of data positions and Excel sheet names as the key parameter.
-
getCurrentDataset
public com.onwbp.adaptation.Adaptation getCurrentDataset()
Returns the current dataset.
-
getCurrentTable
public com.onwbp.adaptation.AdaptationTable getCurrentTable()
Returns the current table.
-
getSession
public com.orchestranetworks.service.Session getSession()
Returns the current session.
-
getSourceTables
public java.util.List<SpreadsheetTable> getSourceTables()
Returns the list of source tables.
-
getSourceTableFilters
public java.util.Map<SpreadsheetTable,TableFilter> getSourceTableFilters()
Returns a map of source table filters. Returnsnullwhen importing CSV, Excel and XML.
-
isForcePrecisionAsDisplayed
public boolean isForcePrecisionAsDisplayed()
Returnstrueif the displayed value of numbers in each cell will be read and imported. Returnsfalseif the accuracy value of numbers in each cell will be read and imported.
-
setForcePrecisionAsDisplayed
public void setForcePrecisionAsDisplayed(boolean forcePrecisionAsDisplayed)
Specifies the accuracy of numbers when importing Excel. If set totrue: The displayed value of numbers in each cell will be read and imported. If set tofalse: The accuracy value of numbers in each cell will be read and imported. This feature only applies to Number format cells (Number is used for general display of numbers). For the other cell formats, the accuracy value in each cell will be read and imported.
-
isDataBeforeTransformationValidated
public boolean isDataBeforeTransformationValidated()
Returnstrueif the import data is validated before transformation execution.
-
setDataBeforeTransformationValidated
public void setDataBeforeTransformationValidated(boolean dataBeforeTransformationValidated)
Sets whether the import data is validated before transformation execution.
-
isImportSequence
public boolean isImportSequence()
Returnstrueif the Excel sheet data are imported sequentially at simulation import mode.
-
setImportSequence
public void setImportSequence(boolean importSequence)
Sets whether the Excel sheet data are imported sequentially at simulation import mode.
-
setImportOnlyValidRecord
public void setImportOnlyValidRecord(boolean importOnlyValidRecord)
Sets whether only valid records are imported if validation errors exist.
-
isImportOnlyValidRecord
public boolean isImportOnlyValidRecord()
Returnstrueif validation errors exist and the user chooses to import only valid records.
-
-