Class ImportSpecificationFieldUtils.MaxLengths

java.lang.Object
com.broadleafcommerce.dataimport.processor.specification.support.ImportSpecificationFieldUtils.MaxLengths
Enclosing class:
ImportSpecificationFieldUtils

public static final class ImportSpecificationFieldUtils.MaxLengths extends Object
Common maximum field length defaults for ImportFieldConfig.getMaxLength().
  • Field Details

    • DEFAULT_LENGTH

      public static final int DEFAULT_LENGTH
      A safe value that usually matches the default database column length
      See Also:
    • ID_LENGTH

      public static final int ID_LENGTH
      Matches the typical length limit of ID fields such as Trackable.getContextId().
      See Also:
    • ENUM_TYPE_LENGTH

      public static final int ENUM_TYPE_LENGTH
      Matches the typical length limit of enum type fields (fields whose values are one of a handful of pre-defined values).
      See Also:
    • SHORT_TEXT_LENGTH

      public static final int SHORT_TEXT_LENGTH
      Generally should be used to define lengths of small snippet fields larger than DEFAULT_LENGTH.
      See Also:
    • TEXT_LENGTH

      public static final int TEXT_LENGTH
      Generally should be used to define lengths of fields larger than SHORT_TEXT_LENGTH.
      See Also:
    • MEDIUM_TEXT_LENGTH

      public static final int MEDIUM_TEXT_LENGTH
      Used in rare circumstances where a field may be significantly larger than TEXT_LENGTH.

      Note that while persistence layers may allow for fields of this size, actually supporting them through import will likely require adjusting message broker message size limits.

      See Also: