com.elasticpath.commons.constants
Class ImportConstants

java.lang.Object
  extended by com.elasticpath.commons.constants.ImportConstants

public final class ImportConstants
extends java.lang.Object

Contains all constants used by the import manager.


Field Summary
static java.lang.String COMMA
          Comma.
static int COMMIT_UNIT
          The import commit unit.
static java.lang.String EMAIL_FROM
          The attribute name of the "from" email address.
static java.lang.String EMAIL_IMPORT_REPORT_TXT_TEMPLATE
          Text email template for import report.
static int FLUSH_MAGIC_NUMBER
          Flush magic number.
static java.lang.String IMPORT_DIRECTORY_NAME
          The import directory name.
static java.lang.String IMPORT_ERROR_REPORT_SUFFIX
          The suffix of the error report file.
static java.lang.String IMPORT_LEFT_OVER_SUFFIX
          The suffix of the leftover rows file.
static java.lang.String[] IMPORT_NULL_VALUES
          The strings to express null in import data files.
static java.lang.String MAIL_HOST
          The attribute name of the email host.
static java.lang.String ROW_SEPERATOR
          Row separator in error report file.
static java.lang.String SHORT_TEXT_MULTI_VALUE_SEPERATOR
          Seperator for multi values in the short text type.
static java.lang.String VALIDATION_ERROR_NONNULL_PREFIX
          The prefix of the validation error code -- not null.
 
Constructor Summary
ImportConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMA

public static final java.lang.String COMMA
Comma.

See Also:
Constant Field Values

COMMIT_UNIT

public static final int COMMIT_UNIT
The import commit unit. This number is not a number selected randomly. We have tested the following numbers: 1, 6, 8, 12, 25, 50, 100. We observed the best performace when the commit unit is set between 8 and 12 when the hibernate second level cache is not enabled. This range seems to be a good tradeoff between the benefits of the session cache and the overhead of the big transaction.

See Also:
Constant Field Values

EMAIL_FROM

public static final java.lang.String EMAIL_FROM
The attribute name of the "from" email address.

See Also:
Constant Field Values

EMAIL_IMPORT_REPORT_TXT_TEMPLATE

public static final java.lang.String EMAIL_IMPORT_REPORT_TXT_TEMPLATE
Text email template for import report.

See Also:
Constant Field Values

FLUSH_MAGIC_NUMBER

public static final int FLUSH_MAGIC_NUMBER
Flush magic number.

See Also:
Constant Field Values

IMPORT_DIRECTORY_NAME

public static final java.lang.String IMPORT_DIRECTORY_NAME
The import directory name.

See Also:
Constant Field Values

IMPORT_ERROR_REPORT_SUFFIX

public static final java.lang.String IMPORT_ERROR_REPORT_SUFFIX
The suffix of the error report file.

See Also:
Constant Field Values

IMPORT_LEFT_OVER_SUFFIX

public static final java.lang.String IMPORT_LEFT_OVER_SUFFIX
The suffix of the leftover rows file.

See Also:
Constant Field Values

IMPORT_NULL_VALUES

public static final java.lang.String[] IMPORT_NULL_VALUES
The strings to express null in import data files.


MAIL_HOST

public static final java.lang.String MAIL_HOST
The attribute name of the email host.

See Also:
Constant Field Values

ROW_SEPERATOR

public static final java.lang.String ROW_SEPERATOR
Row separator in error report file.

See Also:
Constant Field Values

SHORT_TEXT_MULTI_VALUE_SEPERATOR

public static final java.lang.String SHORT_TEXT_MULTI_VALUE_SEPERATOR
Seperator for multi values in the short text type.

See Also:
Constant Field Values

VALIDATION_ERROR_NONNULL_PREFIX

public static final java.lang.String VALIDATION_ERROR_NONNULL_PREFIX
The prefix of the validation error code -- not null.

See Also:
Constant Field Values
Constructor Detail

ImportConstants

public ImportConstants()