Class SimpleValueConverter<T>
java.lang.Object
me.hsgamer.topper.storage.simple.converter.SimpleValueConverter<T>
- All Implemented Interfaces:
ValueConverter<T>
- Direct Known Subclasses:
StringConverter
,UUIDConverter
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleValueConverter
(Function<@NotNull T, @NotNull String> toStringConverter, Function<@NotNull String, @Nullable T> fromStringConverter, String valueName, boolean isStringNationalized, int stringMaxLength) SimpleValueConverter
(Function<@NotNull T, @NotNull String> toStringConverter, Function<@NotNull String, @Nullable T> fromStringConverter, String valueName, String sqlType) -
Method Summary
Modifier and TypeMethodDescriptionfromObjectMap
(@NotNull Map<String, Object> map) fromRawString
(@NotNull String value) fromSqlResultSet
(@NotNull ResultSet resultSet) String[]
String[]
toObjectMap
(T value) @NotNull String
toRawString
(T value) Object[]
toSqlValues
(T value)
-
Constructor Details
-
SimpleValueConverter
-
SimpleValueConverter
-
-
Method Details
-
toRawString
- Specified by:
toRawString
in interfaceValueConverter<T>
-
fromRawString
- Specified by:
fromRawString
in interfaceValueConverter<T>
-
toObjectMap
- Specified by:
toObjectMap
in interfaceValueConverter<T>
-
fromObjectMap
- Specified by:
fromObjectMap
in interfaceValueConverter<T>
-
getSqlColumns
- Specified by:
getSqlColumns
in interfaceValueConverter<T>
-
getSqlColumnDefinitions
- Specified by:
getSqlColumnDefinitions
in interfaceValueConverter<T>
-
toSqlValues
- Specified by:
toSqlValues
in interfaceValueConverter<T>
-
fromSqlResultSet
- Specified by:
fromSqlResultSet
in interfaceValueConverter<T>
- Throws:
SQLException
-