public final class CSVExportConfigurationSpec extends FileExportConfigurationSpec
Constructor and Description |
---|
CSVExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
TableFilter tableFilter,
com.orchestranetworks.service.Session session) |
CSVExportConfigurationSpec(EBXTable sourceTable,
TableFilter tableFilter,
com.orchestranetworks.service.Session session) |
CSVExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext) |
Modifier and Type | Method and Description |
---|---|
Map<Field,String> |
getDateTimePatterns()
Returns a map of date time patterns and
Field instance as the key parameter. |
String |
getDelimiter()
Returns the character used to mark the beginning and end of a cell in the CSV file.
|
String |
getFileEncoding()
Returns the character encoding to use.
|
Locale |
getLocaleForNumberFormat()
Returns the locale and the corresponding number format policy used in the exported file.
|
String |
getSeparator()
Returns the separator character.
|
String |
getSeparatorUsedForValuesList()
Returns the separator character to use for value lists.
|
ServiceType |
getServiceType()
Returns the service type.
|
Map<EBXTable,TableFilter> |
getSourceTableFilters()
Returns a map of table filters and
EBXTable instance as the key parameter. |
List<EBXTable> |
getSourceTables()
Returns the list of source tables.
|
boolean |
isDelimiterUsedForOnlyString()
Returns
true if the delimiter is only used for string data types. |
boolean |
isEnumerationLabelExported()
Returns
true if the exported file will contain an information
column with the label of the enumeration. |
boolean |
isForeignKeyLabelExported()
Returns
true if the exported file contains an information column with the foreign key label. |
boolean |
isLocaleForNumberFormatUsed()
Returns
true if the language and corresponding number format policy are applied. |
boolean |
isPrimaryKeyLabelExported()
Returns
true if the exported file contains an information column with the primary key label. |
void |
setDateTimePatterns(Map<Field,String> dateTimePatterns)
Sets a map of date time patterns and
Field instance as the key parameter. |
void |
setDelimiter(String delimiter)
Sets the character is used to mark the beginning and end of a cell in the CSV file.
|
void |
setDelimiterUsedForOnlyString(boolean delimiterUsedForOnlyString)
Sets whether the delimiter is only used for string data types.
|
void |
setEnumerationLabelExported(boolean enumerationLabelExported)
Sets whether the exported file will contain an information column with the
label of the enumeration.
|
void |
setFileEncoding(String fileEncoding)
Sets the character encoding to use.
|
void |
setForeignKeyLabelExported(boolean foreignKeyLabelExported)
Sets whether the exported file contains an information column with the foreign key label.
|
void |
setLocaleForNumberFormat(Locale localeForFormattingNumbers)
Sets the locale and the corresponding number format policy used in the exported file.
|
void |
setLocaleForNumberFormatUsed(boolean localeForFormattingNumbersUsed)
Sets whether the language and corresponding number format policy are applied.
|
void |
setPrimaryKeyLabelExported(boolean primaryKeyLabelExported)
Sets whether the exported file contains an information column with the label of the primary key.
|
void |
setSeparator(String separator)
Sets the separator character.
|
void |
setSeparatorUsedForValuesList(String separatorUsedForValuesList)
Sets the separator character to use for value lists.
|
getCurrentDataset, getCurrentTable, getLocale, getSession, isComputedValueIncluded, isDataFromReferencedTablesExported, isDataReferencingSelectedRecordExported, isHeaderExported, isWriteAccessLockDisabled, setComputedValueIncluded, setDataFromReferencedTablesExported, setDataReferencingSelectedRecordExported, setHeaderExported, setLocale, setWriteAccessLockDisabled
public CSVExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext) throws DataExchangeException
DataExchangeException
public CSVExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, TableFilter tableFilter, com.orchestranetworks.service.Session session) throws DataExchangeException
DataExchangeException
public CSVExportConfigurationSpec(EBXTable sourceTable, TableFilter tableFilter, 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 isDelimiterUsedForOnlyString()
true
if the delimiter is only used for string data types.public void setDelimiterUsedForOnlyString(boolean delimiterUsedForOnlyString)
public boolean isPrimaryKeyLabelExported()
true
if the exported file contains an information column with the primary key label.public void setPrimaryKeyLabelExported(boolean primaryKeyLabelExported)
public boolean isForeignKeyLabelExported()
true
if the exported file contains an information column with the foreign key label.public void setForeignKeyLabelExported(boolean foreignKeyLabelExported)
public boolean isLocaleForNumberFormatUsed()
true
if the language and corresponding number format policy are applied.public void setLocaleForNumberFormatUsed(boolean localeForFormattingNumbersUsed)
public Locale getLocaleForNumberFormat()
public void setLocaleForNumberFormat(Locale localeForFormattingNumbers)
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 Map<EBXTable,TableFilter> getSourceTableFilters()
EBXTable
instance as the key parameter.
Returns null
when importing CSV, Excel or XML.public boolean isEnumerationLabelExported()
true
if the exported file will contain an information
column with the label of the enumeration.public void setEnumerationLabelExported(boolean enumerationLabelExported)