Class SimpleValueConverter<T>
- java.lang.Object
-
- me.hsgamer.topper.storage.simple.converter.SimpleValueConverter<T>
-
- All Implemented Interfaces:
ValueConverter<T>
- Direct Known Subclasses:
StringConverter,UUIDConverter
public class SimpleValueConverter<T> extends Object implements ValueConverter<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
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
-
-