Class ComplexValueConverter<T>
- java.lang.Object
-
- me.hsgamer.topper.storage.simple.converter.ComplexValueConverter<T>
-
- All Implemented Interfaces:
ValueConverter<T>
public final class ComplexValueConverter<T> extends Object implements ValueConverter<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComplexValueConverter.Builder<T>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> ComplexValueConverter.Builder<T>builder()TfromObjectMap(@NotNull Map<String,Object> map)TfromRawString(@NotNull String value)TfromSqlResultSet(@NotNull ResultSet resultSet)String[]getSqlColumnDefinitions()String[]getSqlColumns()@NotNull Map<String,Object>toObjectMap(T value)@NotNull StringtoRawString(T value)Object[]toSqlValues(T value)
-
-
-
Method Detail
-
builder
public static <T> ComplexValueConverter.Builder<T> builder()
-
toRawString
@NotNull public @NotNull String toRawString(@NotNull T value)
- Specified by:
toRawStringin interfaceValueConverter<T>
-
fromRawString
@Nullable public T fromRawString(@NotNull @NotNull String value)
- Specified by:
fromRawStringin interfaceValueConverter<T>
-
toObjectMap
@NotNull public @NotNull Map<String,Object> toObjectMap(@NotNull T value)
- Specified by:
toObjectMapin interfaceValueConverter<T>
-
fromObjectMap
@Nullable public T fromObjectMap(@NotNull @NotNull Map<String,Object> map)
- Specified by:
fromObjectMapin interfaceValueConverter<T>
-
getSqlColumns
public String[] getSqlColumns()
- Specified by:
getSqlColumnsin interfaceValueConverter<T>
-
getSqlColumnDefinitions
public String[] getSqlColumnDefinitions()
- Specified by:
getSqlColumnDefinitionsin interfaceValueConverter<T>
-
toSqlValues
public Object[] toSqlValues(@NotNull T value)
- Specified by:
toSqlValuesin interfaceValueConverter<T>
-
fromSqlResultSet
@Nullable public T fromSqlResultSet(@NotNull @NotNull ResultSet resultSet) throws SQLException
- Specified by:
fromSqlResultSetin interfaceValueConverter<T>- Throws:
SQLException
-
-