Package org.apache.derby.impl.load
Class ControlInfo
java.lang.Object
org.apache.derby.impl.load.ControlInfo
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
private Properties
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
commonToFieldAndRecordDelimiters
(String aDelimiter, String specialChars, char replacementChar) (package private) String
(package private) int[]
(package private) Properties
read the control file properties into a local variable which is used later on In case there is no control file, read the default values for these properties(package private) String
(package private) String
(package private) String
(package private) String
(package private) String
(package private) String
(package private) String
(package private) boolean
(package private) String
(package private) String
getPropertyValue
(String aKey) (package private) String
private void
private String
mapFromUserFriendlyFieldDelimiters
(String aDelimiter) private String
mapFromUserFriendlyRecordDelimiters
(String aDelimiter) void
setCharacterDelimiter
(String charDelimiter) void
setcolumnDefinition
(String columnDefinition) void
setColumnWidths
(String columnWidths) void
setControlProperties
(String characterDelimiter, String columnDelimiter, String codeset) void
setDataCodeset
(String codeset) void
setFieldEndDelimiter
(String fedl) void
setFieldSeparator
(String fieldSeperator) void
setFieldStartDelimiter
(String fsdl) void
setHasDelimiterAtEnd
(String hasDelimeterAtEnd) void
setNullString
(String nullString) void
setRecordSeparator
(String recordSeperator) private void
-
Field Details
-
ESCAPE
- See Also:
-
DEFAULT_ESCAPE
- See Also:
-
QUOTE
- See Also:
-
DEFAULT_QUOTE
- See Also:
-
COMMIT_COUNT
- See Also:
-
DEFAULT_COMMIT_COUNT
- See Also:
-
START_ROW
- See Also:
-
DEFAULT_START_ROW
- See Also:
-
STOP_ROW
- See Also:
-
DEFAULT_STOP_ROW
- See Also:
-
FIELD_SEPARATOR
- See Also:
-
DEFAULT_FIELD_SEPARATOR
- See Also:
-
RECORD_SEPARATOR
- See Also:
-
DEFAULT_RECORD_SEPARATOR
-
COLUMN_DEFINITION
- See Also:
-
DEFAULT_COLUMN_DEFINITION
- See Also:
-
NULL_STRING
- See Also:
-
DEFAULT_NULL_STRING
- See Also:
-
FORMAT
- See Also:
-
DEFAULT_FORMAT
- See Also:
-
DB2_DELIMITED_FORMAT
- See Also:
-
FIELD_START_DELIMITER
- See Also:
-
DEFAULT_FIELD_START_DELIMITER
- See Also:
-
FIELD_END_DELIMITER
- See Also:
-
DEFAULT_FIELD_END_DELIMITER
- See Also:
-
COLUMN_WIDTHS
- See Also:
-
MESSAGE_FILE
- See Also:
-
DEFAULT_VERSION
- See Also:
-
VERSION
- See Also:
-
NEWLINE
- See Also:
-
COMMA
- See Also:
-
SPACE
- See Also:
-
TAB
- See Also:
-
CR
- See Also:
-
LF
- See Also:
-
CRLF
- See Also:
-
LFCR
- See Also:
-
FF
- See Also:
-
EMPTY_LINE
- See Also:
-
SEMICOLON
- See Also:
-
DATA_CODESET
- See Also:
-
HAS_DELIMETER_AT_END
- See Also:
-
INTERNAL_NONE
- See Also:
-
INTERNAL_TRUE
- See Also:
-
INTERNAL_FALSE
- See Also:
-
INTERNAL_TAB
- See Also:
-
INTERNAL_SPACE
- See Also:
-
INTERNAL_CR
- See Also:
-
INTERNAL_LF
- See Also:
-
INTERNAL_CRLF
- See Also:
-
INTERNAL_LFCR
- See Also:
-
INTERNAL_COMMA
- See Also:
-
INTERNAL_SEMICOLON
- See Also:
-
INTERNAL_NEWLINE
- See Also:
-
INTERNAL_FF
- See Also:
-
INTERNAL_EMPTY_LINE
- See Also:
-
currentProperties
-
-
Constructor Details
-
ControlInfo
- Throws:
Exception
-
-
Method Details
-
getPropertyValue
- Throws:
Exception
-
loadDefaultValues
private void loadDefaultValues() -
getCurrentVersion
- Throws:
Exception
-
getFormat
- Throws:
Exception
-
getColumnWidths
int[] getColumnWidths() -
getFieldSeparator
- Throws:
Exception
-
getFieldStartDelimiter
- Throws:
Exception
-
getFieldEndDelimiter
- Throws:
Exception
-
getRecordSeparator
- Throws:
Exception
-
getHasDelimiterAtEnd
- Throws:
Exception
-
getHasDelimeterAtEndString
- Throws:
Exception
-
getNullString
- Throws:
Exception
-
getColumnDefinition
- Throws:
Exception
-
mapFromUserFriendlyFieldDelimiters
-
commonToFieldAndRecordDelimiters
-
mapFromUserFriendlyRecordDelimiters
-
getDataCodeset
- Returns:
- Code set, can return null for use the default code set.
- Throws:
Exception
-
getCurrentProperties
read the control file properties into a local variable which is used later on In case there is no control file, read the default values for these properties- Throws:
Exception
- if there is an error
-
setColumnWidths
- Throws:
Exception
-
setFieldSeparator
- Throws:
Exception
-
setFieldStartDelimiter
- Throws:
Exception
-
setFieldEndDelimiter
- Throws:
Exception
-
setRecordSeparator
- Throws:
Exception
-
setHasDelimiterAtEnd
- Throws:
Exception
-
setNullString
- Throws:
Exception
-
setcolumnDefinition
- Throws:
Exception
-
setDataCodeset
- Throws:
Exception
-
setCharacterDelimiter
- Throws:
Exception
-
setControlProperties
public void setControlProperties(String characterDelimiter, String columnDelimiter, String codeset) throws Exception - Throws:
Exception
-
validateDelimiters
- Throws:
Exception
-