Package tech.ydb.yoj.databind.converter
Class StringValueConverter<J>
java.lang.Object
tech.ydb.yoj.databind.converter.StringValueConverter<J>
- Type Parameters:
J- Java type
- All Implemented Interfaces:
ValueConverter<J,String>
Possible String value type replacement: a generic converter that can be applied to your
type/your columns with
@Column(
customValueType=@CustomValueType(
columnValueType=STRING,
columnClass=<your type>,
converter=StringValueConverter.class
)
)
-
Nested Class Summary
Nested classes/interfaces inherited from interface tech.ydb.yoj.databind.converter.ValueConverter
ValueConverter.NoConverter -
Method Summary
Modifier and TypeMethodDescription@NonNull StringtoColumn(@NonNull Schema.JavaField field, J value) toJava(@NonNull Schema.JavaField field, @NonNull String column)
-
Method Details
-
toColumn
@NonNull public @NonNull String toColumn(@NonNull @NonNull Schema.JavaField field, @NonNull J value) - Specified by:
toColumnin interfaceValueConverter<J,String>
-
toJava
- Specified by:
toJavain interfaceValueConverter<J,String>
-