Class ImportSpecificationFieldUtils.MaxLengths
java.lang.Object
com.broadleafcommerce.dataimport.processor.specification.support.ImportSpecificationFieldUtils.MaxLengths
- Enclosing class:
- ImportSpecificationFieldUtils
Common maximum field length defaults for
ImportFieldConfig.getMaxLength()
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A safe value that usually matches the default database column lengthstatic final int
Matches the typical length limit of enum type fields (fields whose values are one of a handful of pre-defined values).static final int
Matches the typical length limit of ID fields such asTrackable.getContextId()
.static final int
Used in rare circumstances where a field may be significantly larger thanTEXT_LENGTH
.static final int
Generally should be used to define lengths of small snippet fields larger thanDEFAULT_LENGTH
.static final int
Generally should be used to define lengths of fields larger thanSHORT_TEXT_LENGTH
. -
Method Summary
-
Field Details
-
DEFAULT_LENGTH
public static final int DEFAULT_LENGTHA safe value that usually matches the default database column length- See Also:
-
ID_LENGTH
public static final int ID_LENGTHMatches the typical length limit of ID fields such asTrackable.getContextId()
.- See Also:
-
ENUM_TYPE_LENGTH
public static final int ENUM_TYPE_LENGTHMatches 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_LENGTHGenerally should be used to define lengths of small snippet fields larger thanDEFAULT_LENGTH
.- See Also:
-
TEXT_LENGTH
public static final int TEXT_LENGTHGenerally should be used to define lengths of fields larger thanSHORT_TEXT_LENGTH
.- See Also:
-
MEDIUM_TEXT_LENGTH
public static final int MEDIUM_TEXT_LENGTHUsed in rare circumstances where a field may be significantly larger thanTEXT_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:
-