public final class CSVImportConfigurationSpec extends FileImportConfigurationSpec<CSVTable>
Constructor and 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) |
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<Field,String> |
getDateTimePatterns()
Returns a map of date time patterns and
Field instance as the key parameter. |
DecimalSymbol |
getDecimalSymbol()
Returns the decimal symbol.
|
String |
getDelimiter()
Returns the character is used to mark the beginning and end of a cell in the CSV file.
|
String |
getFileEncoding()
Returns the character encoding to use.
|
LineReturnCharacters |
getLineReturnCharacters()
Returns the line return characters.
|
String |
getSeparator()
Returns the separator character.
|
String |
getSeparatorUsedForValuesList()
Returns the separator character to use for values lists.
|
ServiceType |
getServiceType()
Returns the service type.
|
com.orchestranetworks.service.Session |
getSession()
Returns the current session.
|
Map<CSVTable,TableFilter> |
getSourceTableFilters()
Returns a map of table filters and
EBXTable instance as the key parameter. |
List<CSVTable> |
getSourceTables()
Returns the list of source tables.
|
boolean |
isDataValidatedBeforeTransformation()
Returns
true if the import data is validated before transformation executing. |
boolean |
isDelimiterForOnlyStringUsed()
Returns
true if the delimiter is only used for string data types. |
boolean |
isHeaderComparedToIgnoreCase()
Return
true if case-insensitive comparison is used when matching the header column. |
boolean |
isImportOnlyValidRecord()
Returns
true if validation errors exist and the user chooses import only valid records. |
boolean |
isRedundantCharactersInHeaderRemoved()
Return
true 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 and
Field 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.
|
getErrorFilePath, getImportedFile, getImportMode, isEmptyOrNullPrimaryKeyChecked, isEmptyOrNullValueIgnored, isHeaderUsed, isImportForced, isInvalidDataDownloaded, setEmptyOrNullPrimaryKeyChecked, setEmptyOrNullValueIgnored, setErrorFilePath, setHeaderUsed, setImportedFile, setImportForced, setImportMode, setInvalidDataDownloaded
public CSVImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session) throws DataExchangeException
DataExchangeException
public CSVImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, CSVTable csvTable, com.orchestranetworks.service.Session session) throws DataExchangeException
DataExchangeException
public ServiceType getServiceType()
public String getSeparator()
public void setSeparator(String separator)
public String getSeparatorUsedForValuesList()
public void setSeparatorUsedForValuesList(String separatorUsedForValuesList)
public String getFileEncoding()
public void setFileEncoding(String fileEncoding)
public String getDelimiter()
public void setDelimiter(String delimiter)
public boolean isDelimiterForOnlyStringUsed()
true
if the delimiter is only used for string data types.public void setDelimiterForOnlyStringUsed(boolean delimiterForOnlyStringUsed)
public DecimalSymbol getDecimalSymbol()
public void setDecimalSymbol(DecimalSymbol decimalSymbol)
public boolean isHeaderComparedToIgnoreCase()
true
if 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<Field,String> getDateTimePatterns()
Field
instance as the key parameter.public void setDateTimePatterns(Map<Field,String> dateTimePatterns)
Field
instance as the key parameter.public com.onwbp.adaptation.Adaptation getCurrentDataset()
public com.onwbp.adaptation.AdaptationTable getCurrentTable()
public com.orchestranetworks.service.Session getSession()
public Map<CSVTable,TableFilter> getSourceTableFilters()
EBXTable
instance as the key parameter.
Returns null
in case of importing CSV, Excel and XML.public boolean isDataValidatedBeforeTransformation()
true
if the import data is validated before transformation executing.public void setDataValidatedBeforeTransformation(boolean isDataValidated)
public void setImportOnlyValidRecord(boolean importOnlyValidRecord)
public boolean isImportOnlyValidRecord()
true
if validation errors exist and the user chooses import only valid records.public LineReturnCharacters getLineReturnCharacters()
public void setLineReturnCharacters(LineReturnCharacters lineReturnCharacters)