Interface ColumnLengthDefiningTypeConverter
- All Known Implementing Classes:
CalendarStringConverter, CurrencyStringConverter, DateStringConverter, LocalDateStringConverter, LocalDateTimeStringConverter, LocaleStringConverter, LocalTimeStringConverter, OffsetDateTimeStringConverter, OffsetTimeStringConverter, TimeZoneStringConverter, UUIDStringConverter, ZonedDateTimeStringConverter
public interface ColumnLengthDefiningTypeConverter
Interface implemented by a TypeConverter if it has default length values for any of its datastore columns.
Typically used by a column stored as a String.
-
Method Summary
Modifier and TypeMethodDescriptionintgetDefaultColumnLength(int columnPosition) Accessor for the default column length to use for the datastore column at the specified position.
-
Method Details
-
getDefaultColumnLength
int getDefaultColumnLength(int columnPosition) Accessor for the default column length to use for the datastore column at the specified position.- Parameters:
columnPosition- Position of the column being enquired about (0 = first)- Returns:
- The column length (-1 if no preference)
-