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>
public final class CSVImportConfigurationSpec extends FileImportConfigurationSpec<CSVTable>
Specifies the configuration used when importing data from a CSV file.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description CSVImportConfigurationSpec(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
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<Field,java.lang.String>getDateTimePatterns()Returns a map of date time patterns andFieldinstance as the key parameter.DecimalSymbolgetDecimalSymbol()Returns the decimal symbol.java.lang.StringgetDelimiter()Returns the character is used to mark the beginning and end of a cell in the CSV file.java.lang.StringgetFileEncoding()Returns the character encoding to use.LineReturnCharactersgetLineReturnCharacters()Returns the line return characters.java.lang.StringgetSeparator()Returns the separator character.java.lang.StringgetSeparatorUsedForValuesList()Returns the separator character to use for values lists.ServiceTypegetServiceType()Returns the service type.com.orchestranetworks.service.SessiongetSession()Returns the current session.java.util.Map<CSVTable,TableFilter>getSourceTableFilters()Returns a map of table filters andEBXTableinstance as the key parameter.java.util.List<CSVTable>getSourceTables()Returns the list of source tables.booleanisDataValidatedBeforeTransformation()Returnstrueif the import data is validated before transformation executing.booleanisDelimiterForOnlyStringUsed()Returnstrueif the delimiter is only used for string data types.booleanisHeaderComparedToIgnoreCase()Returntrueif case-insensitive comparison is used when matching the header column.booleanisImportOnlyValidRecord()Returnstrueif validation errors exist and the user chooses import only valid records.booleanisRedundantCharactersInHeaderRemoved()Returntrueif redundant characters contained in the header are removed during matching.voidsetDataValidatedBeforeTransformation(boolean isDataValidated)Sets whether the import data is validated before transformation executing.voidsetDateTimePatterns(java.util.Map<Field,java.lang.String> dateTimePatterns)Sets a map of date time patterns andFieldinstance as the key parameter.voidsetDecimalSymbol(DecimalSymbol decimalSymbol)Sets the decimal symbol.voidsetDelimiter(java.lang.String delimiter)Sets the character is used to mark the beginning and end of a cell in the CSV file.voidsetDelimiterForOnlyStringUsed(boolean delimiterForOnlyStringUsed)Sets whether the delimiter is only used for string data types.voidsetFileEncoding(java.lang.String fileEncoding)Sets the character encoding to use.voidsetHeaderComparedToIgnoreCase(boolean headerComparedToIgnoreCase)Sets whether case-insensitive comparison is used when matching the header column.voidsetImportOnlyValidRecord(boolean importOnlyValidRecord)Sets whether the validation errors exist and the user chooses import only valid records.voidsetLineReturnCharacters(LineReturnCharacters lineReturnCharacters)Sets the line return characters.voidsetRedundantCharactersInHeaderRemoved(boolean redundantCharactersInHeaderRemoved)Sets whether redundant characters contained in the header are removed during matching.voidsetSeparator(java.lang.String separator)Sets the separator character.voidsetSeparatorUsedForValuesList(java.lang.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 Detail
-
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 Detail
-
getServiceType
public ServiceType getServiceType()
Returns the service type.
-
getSeparator
public java.lang.String getSeparator()
Returns the separator character.
-
setSeparator
public void setSeparator(java.lang.String separator)
Sets the separator character.
-
getSeparatorUsedForValuesList
public java.lang.String getSeparatorUsedForValuesList()
Returns the separator character to use for values lists.
-
setSeparatorUsedForValuesList
public void setSeparatorUsedForValuesList(java.lang.String separatorUsedForValuesList)
Sets the separator character to use for values lists.
-
getFileEncoding
public java.lang.String getFileEncoding()
Returns the character encoding to use.
-
setFileEncoding
public void setFileEncoding(java.lang.String fileEncoding)
Sets the character encoding to use.
-
getDelimiter
public java.lang.String getDelimiter()
Returns the character is used to mark the beginning and end of a cell in the CSV file.
-
setDelimiter
public void setDelimiter(java.lang.String delimiter)
Sets the character is used to mark the beginning and end of a cell in the CSV file.
-
isDelimiterForOnlyStringUsed
public boolean isDelimiterForOnlyStringUsed()
Returnstrueif 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
public DecimalSymbol getDecimalSymbol()
Returns the decimal symbol.
-
setDecimalSymbol
public void setDecimalSymbol(DecimalSymbol decimalSymbol)
Sets the decimal symbol.
-
isHeaderComparedToIgnoreCase
public boolean isHeaderComparedToIgnoreCase()
Returntrueif 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()
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.
-
getDateTimePatterns
public java.util.Map<Field,java.lang.String> getDateTimePatterns()
Returns a map of date time patterns andFieldinstance as the key parameter.
-
setDateTimePatterns
public void setDateTimePatterns(java.util.Map<Field,java.lang.String> dateTimePatterns)
Sets a map of date time patterns andFieldinstance 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<CSVTable> getSourceTables()
Returns the list of source tables.
-
getSourceTableFilters
public java.util.Map<CSVTable,TableFilter> getSourceTableFilters()
Returns a map of table filters andEBXTableinstance as the key parameter. Returnsnullin case of importing CSV, Excel and XML.
-
isDataValidatedBeforeTransformation
public boolean isDataValidatedBeforeTransformation()
Returnstrueif 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()
Returnstrueif validation errors exist and the user chooses import only valid records.
-
getLineReturnCharacters
public LineReturnCharacters getLineReturnCharacters()
Returns the line return characters.- Since:
- 2.4.0
-
setLineReturnCharacters
public void setLineReturnCharacters(LineReturnCharacters lineReturnCharacters)
Sets the line return characters.- Since:
- 2.4.0
-
-