public final class SpreadsheetImportConfigurationSpec extends FileImportConfigurationSpec<SpreadsheetTable>
Constructor and Description |
---|
SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset,
List<SpreadsheetTable> sourceTables,
com.orchestranetworks.service.Session session)
Imports data into multiple tables outside of a
UIService . |
SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
SpreadsheetTable spreadsheetTable,
com.orchestranetworks.service.Session session)
Imports data into a table outside of a
UIService . |
Modifier and Type | Method and Description |
---|---|
com.onwbp.adaptation.Adaptation |
getCurrentDataset()
Returns the current dataset.
|
com.onwbp.adaptation.AdaptationTable |
getCurrentTable()
Returns the current table.
|
Map<String,DataPosition> |
getDataPositionInSheets()
Returns a map of data positions and Excel sheet names as the key parameter.
|
ServiceType |
getServiceType()
Returns the service type.
|
com.orchestranetworks.service.Session |
getSession()
Returns the current session.
|
Map<SpreadsheetTable,TableFilter> |
getSourceTableFilters()
Returns a map of source table filters.
|
List<SpreadsheetTable> |
getSourceTables()
Returns the list of source tables.
|
boolean |
isDataBeforeTransformationValidated()
Returns
true if the import data is validated before transformation execution. |
boolean |
isForcePrecisionAsDisplayed()
Returns
true if the displayed value of numbers in each cell will be read and imported. |
boolean |
isHeaderComparedToIgnoreCase()
Return
true if a case-insensitive comparison is used when matching the header column. |
boolean |
isImportOnlyValidRecord()
Returns
true if validation errors exist and the user chooses to import only valid records. |
boolean |
isImportSequence()
Returns
true if the Excel sheet data are imported sequentially at simulation import mode. |
boolean |
isRedundantCharactersInHeaderRemoved()
Return
true if redundant characters contained in the header are removed during matching. |
void |
setDataBeforeTransformationValidated(boolean dataBeforeTransformationValidated)
Sets whether the import data is validated before transformation execution.
|
void |
setDataPositionInSheets(Map<String,DataPosition> dataPositionInSheets)
Sets a map of data positions and Excel sheet names as the key parameter.
|
void |
setForcePrecisionAsDisplayed(boolean forcePrecisionAsDisplayed)
Specifies the accuracy of numbers when importing Excel.
|
void |
setHeaderComparedToIgnoreCase(boolean headerComparedToIgnoreCase)
Sets whether a case-insensitive comparison is used when matching the header column.
|
void |
setImportOnlyValidRecord(boolean importOnlyValidRecord)
Sets whether only valid records are imported if validation errors exist.
|
void |
setImportSequence(boolean importSequence)
Sets whether the Excel sheet data are imported sequentially at simulation import mode.
|
void |
setRedundantCharactersInHeaderRemoved(boolean redundantCharactersInHeaderRemoved)
Sets whether redundant characters contained in the header are removed during matching.
|
getErrorFilePath, getImportedFile, getImportMode, isEmptyOrNullPrimaryKeyChecked, isEmptyOrNullValueIgnored, isHeaderUsed, isImportForced, isInvalidDataDownloaded, setEmptyOrNullPrimaryKeyChecked, setEmptyOrNullValueIgnored, setErrorFilePath, setHeaderUsed, setImportedFile, setImportForced, setImportMode, setInvalidDataDownloaded
public SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, SpreadsheetTable spreadsheetTable, com.orchestranetworks.service.Session session) throws DataExchangeException
UIService
.DataExchangeException
public SpreadsheetImportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset, List<SpreadsheetTable> sourceTables, com.orchestranetworks.service.Session session) throws DataExchangeException
UIService
.DataExchangeException
public ServiceType getServiceType()
public boolean isHeaderComparedToIgnoreCase()
true
if a case-insensitive comparison is used when matching the header column.public void setHeaderComparedToIgnoreCase(boolean headerComparedToIgnoreCase)
public boolean isRedundantCharactersInHeaderRemoved()
true
if redundant characters contained in the header are removed during matching.public void setRedundantCharactersInHeaderRemoved(boolean redundantCharactersInHeaderRemoved)
public Map<String,DataPosition> getDataPositionInSheets()
public void setDataPositionInSheets(Map<String,DataPosition> dataPositionInSheets)
public com.onwbp.adaptation.Adaptation getCurrentDataset()
public com.onwbp.adaptation.AdaptationTable getCurrentTable()
public com.orchestranetworks.service.Session getSession()
public List<SpreadsheetTable> getSourceTables()
public Map<SpreadsheetTable,TableFilter> getSourceTableFilters()
null
when importing CSV, Excel and XML.public boolean isForcePrecisionAsDisplayed()
true
if the displayed value of numbers in each cell will be read and imported.
Returns false
if the accuracy value of numbers in each cell will be read and imported.public void setForcePrecisionAsDisplayed(boolean forcePrecisionAsDisplayed)
true
: The displayed value of numbers in each cell will be read and imported.
If set to false
: 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.public boolean isDataBeforeTransformationValidated()
true
if the import data is validated before transformation execution.public void setDataBeforeTransformationValidated(boolean dataBeforeTransformationValidated)
public boolean isImportSequence()
true
if the Excel sheet data are imported sequentially at simulation import mode.public void setImportSequence(boolean importSequence)
public void setImportOnlyValidRecord(boolean importOnlyValidRecord)
public boolean isImportOnlyValidRecord()
true
if validation errors exist and the user chooses to import only valid records.