Skip to content

Commit

Permalink
TEIIDDES-2394
Browse files Browse the repository at this point in the history
 * added support for Row Delimeter options
 * changed delimeter dialog editor to include row and field delimeters
  • Loading branch information
blafond committed Jan 24, 2017
1 parent a2d31ad commit abc8c5b
Show file tree
Hide file tree
Showing 7 changed files with 287 additions and 36 deletions.
Expand Up @@ -36,6 +36,18 @@ public interface ITeiidMetadataFileInfo extends ITeiidFileInfo, ISQLConstants {
* @return the data file's delimiter character
*/
String getDelimiter();

/**
*
* @return the data file's delimiter character
*/
int getRowDelimiterOption();

/**
*
* @return the data file's delimiter character
*/
String getRowDelimiter();

/**
*
Expand Down
Expand Up @@ -110,12 +110,21 @@ public interface ISQLConstants {
String QUOTE_STR = "QUOTE"; //$NON-NLS-1$
String DELIMITER_STR = "DELIMITER"; //$NON-NLS-1$

String NO_ROW_DELIMIETER_STR = "NO ROW DELIMITER"; //$NON-NLS-1$
String ROW_DELIMIETER_STR= "ROW DELIMITER"; //$NON-NLS-1$

interface INSERT_OPTIONS {
int REPLACE_ALL = 0;
int INSERT_AT_BEGINNING = 1;
int INSERT_AT_CURSOR = 2;
int INSERT_AT_END = 3;

}

interface ROW_DELIMETER_OPTIONS {
int DEFAULT = 0;
int CUSTOM = 1;
int NONE = 2;
}

}
Expand Up @@ -987,21 +987,30 @@ TeiidMetadataImportOptionsPage.filePreviewOptionsGroup=File Preview Options
TeiidMetadataImportOptionsPage.columnOptionsGroup=Column Options
TeiidMetadataImportOptionsPage.createColumnActionLabel=Add Column
TeiidMetadataImportOptionsPage.editTextTableOptionsButtonLabel=Edit TEXTTABLE() function options
TeiidMetadataImportOptionsPage.editDelimiterButtonLabel=Edit Delimiter Character
TeiidMetadataImportOptionsPage.editDelimiterButtonLabel=Configure Delimiters
TeiidMetadataImportOptionsPage.sqlUseSelectedFile=Selected File Only
TeiidMetadataImportOptionsPage.sqlUseSelectedFilter=Use Specified File Filter
TeiidMetadataImportOptionsPage.noTrimLabel=No Trim

DelimiterOptionsDialog.title=Select Delimiter Character
DelimiterOptionsDialog.titleMessage=Select delimiter type or specify custom using 'Other' option.
DelimiterOptionsDialog.delimiter=Delimiter
DelimiterOptionsDialog.commaLabel=Comma ','
DelimiterOptionsDialog.title=Flat File Delimiter
DelimiterOptionsDialog.titleMessage=Select delimiter options and click OK
DelimiterOptionsDialog.delimiter=Column Data Delimiter
DelimiterOptionsDialog.commaLabel=Default (',')
DelimiterOptionsDialog.spaceLabel=Space ' '
DelimiterOptionsDialog.tabLabel=Tab
DelimiterOptionsDialog.semicolonLabel=Semicolon ':'
DelimiterOptionsDialog.semicolonLabel=Semicolon ';'
DelimiterOptionsDialog.barLabel=Bar '|'
DelimiterOptionsDialog.otherLabel=Other
DelimiterOptionsDialog.otherLabel=Custom character:
DelimiterOptionsDialog.delimiterCannotBeNull=Delimiter cannot be null
DelimiterOptionsDialog.rowDelimeter=Row Delimeter
DelimiterOptionsDialog.none=None
DelimiterOptionsDialog.customCharacter=Custom character:
DelimiterOptionsDialog.customCharacterTooltip=Define alternate row delimiter character.\nNote that carriage return will be given no special treatment.
DelimiterOptionsDialog.useDefaultText=Use Default (new line character)
DelimiterOptionsDialog.fieldDelimeter=Field Delimeter
DelimiterOptionsDialog.customCharacterUndefined=Custom row delimiter is undefined
DelimiterOptionsDialog.customCharacterLengthError=Custom row delimiter can only be a single character
DelimiterOptionsDialog.noRowDelimeterTooltip=Indicates that fixed parsing should not assume the presence of newline row delimiters

TextTableFunctionOptionsDialog.title=Edit TEXTTABLE() Function Options
TextTableFunctionOptionsDialog.titleMessage=Edit TEXTTABLE() function options to customize your generated SQL statement
Expand Down

0 comments on commit abc8c5b

Please sign in to comment.