Class CSVImportConfigurationSpec
java.lang.Object
com.orchestranetworks.addon.dex.configuration.FileImportConfigurationSpec<CSVTable>
com.orchestranetworks.addon.dex.configuration.CSVImportConfigurationSpec
- All Implemented Interfaces:
ConfigurationSpec<CSVTable>
,ImportConfigurationSpec<CSVTable>
Specifies the configuration used when importing data from a CSV file.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorDescriptionCSVImportConfigurationSpec
(com.onwbp.adaptation.AdaptationTable currentTable, CSVTable csvTable, com.orchestranetworks.service.Session session) CSVImportConfigurationSpec
(com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session) -
Method Summary
Modifier and TypeMethodDescriptioncom.onwbp.adaptation.Adaptation
Returns the current dataset.com.onwbp.adaptation.AdaptationTable
Returns the current table.Returns a map of date time patterns andField
instance as the key parameter.Returns the decimal symbol.Returns the character is used to mark the beginning and end of a cell in the CSV file.Returns the character encoding to use.Returns the line return characters.Returns the separator character.Returns the separator character to use for values lists.Returns the service type.com.orchestranetworks.service.Session
Returns the current session.Returns a map of table filters andEBXTable
instance as the key parameter.Returns the list of source tables.boolean
Returnstrue
if the import data is validated before transformation executing.boolean
Returnstrue
if the delimiter is only used for string data types.boolean
Returntrue
if case-insensitive comparison is used when matching the header column.boolean
Returnstrue
if validation errors exist and the user chooses import only valid records.boolean
Returntrue
if redundant characters contained in the header are removed during matching.void
setDataValidatedBeforeTransformation
(boolean isDataValidated) Sets whether the import data is validated before transformation executing.void
setDateTimePatterns
(Map<Field, String> dateTimePatterns) Sets a map of date time patterns andField
instance as the key parameter.void
setDecimalSymbol
(DecimalSymbol decimalSymbol) Sets the decimal symbol.void
setDelimiter
(String delimiter) Sets the character is used to mark the beginning and end of a cell in the CSV file.void
setDelimiterForOnlyStringUsed
(boolean delimiterForOnlyStringUsed) Sets whether the delimiter is only used for string data types.void
setFileEncoding
(String fileEncoding) Sets the character encoding to use.void
setHeaderComparedToIgnoreCase
(boolean headerComparedToIgnoreCase) Sets whether case-insensitive comparison is used when matching the header column.void
setImportOnlyValidRecord
(boolean importOnlyValidRecord) Sets whether the validation errors exist and the user chooses import only valid records.void
setLineReturnCharacters
(LineReturnCharacters lineReturnCharacters) Sets the line return characters.void
setRedundantCharactersInHeaderRemoved
(boolean redundantCharactersInHeaderRemoved) Sets whether redundant characters contained in the header are removed during matching.void
setSeparator
(String separator) Sets the separator character.void
setSeparatorUsedForValuesList
(String separatorUsedForValuesList) Sets the separator character to use for values lists.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 Details
-
CSVImportConfigurationSpec
public CSVImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session) throws DataExchangeException - Throws:
DataExchangeException
-
CSVImportConfigurationSpec
public CSVImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, CSVTable csvTable, com.orchestranetworks.service.Session session) throws DataExchangeException - Throws:
DataExchangeException
-
-
Method Details
-
getServiceType
Returns the service type. -
getSeparator
Returns the separator character. -
setSeparator
Sets the separator character. -
getSeparatorUsedForValuesList
Returns the separator character to use for values lists. -
setSeparatorUsedForValuesList
Sets the separator character to use for values lists. -
getFileEncoding
Returns the character encoding to use. -
setFileEncoding
Sets the character encoding to use. -
getDelimiter
Returns the character is used to mark the beginning and end of a cell in the CSV file. -
setDelimiter
Sets the character is used to mark the beginning and end of a cell in the CSV file. -
isDelimiterForOnlyStringUsed
public boolean isDelimiterForOnlyStringUsed()Returnstrue
if the delimiter is only used for string data types. -
setDelimiterForOnlyStringUsed
public void setDelimiterForOnlyStringUsed(boolean delimiterForOnlyStringUsed) Sets whether the delimiter is only used for string data types. -
getDecimalSymbol
Returns the decimal symbol. -
setDecimalSymbol
Sets the decimal symbol. -
isHeaderComparedToIgnoreCase
public boolean isHeaderComparedToIgnoreCase()Returntrue
if case-insensitive comparison is used when matching the header column. -
setHeaderComparedToIgnoreCase
public void setHeaderComparedToIgnoreCase(boolean headerComparedToIgnoreCase) Sets whether case-insensitive comparison is used when matching the header column. -
isRedundantCharactersInHeaderRemoved
public boolean isRedundantCharactersInHeaderRemoved()Returntrue
if 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. -
getDateTimePatterns
Returns a map of date time patterns andField
instance as the key parameter. -
setDateTimePatterns
Sets a map of date time patterns andField
instance 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
Returns the list of source tables. -
getSourceTableFilters
Returns a map of table filters andEBXTable
instance as the key parameter. Returnsnull
in case of importing CSV, Excel and XML. -
isDataValidatedBeforeTransformation
public boolean isDataValidatedBeforeTransformation()Returnstrue
if the import data is validated before transformation executing. -
setDataValidatedBeforeTransformation
public void setDataValidatedBeforeTransformation(boolean isDataValidated) Sets whether the import data is validated before transformation executing. -
setImportOnlyValidRecord
public void setImportOnlyValidRecord(boolean importOnlyValidRecord) Sets whether the validation errors exist and the user chooses import only valid records. -
isImportOnlyValidRecord
public boolean isImportOnlyValidRecord()Returnstrue
if validation errors exist and the user chooses import only valid records. -
getLineReturnCharacters
Returns the line return characters.- Since:
- 2.4.0
-
setLineReturnCharacters
Sets the line return characters.- Since:
- 2.4.0
-