public class LocalTimeStringConverter extends Object implements TypeConverter<java.time.LocalTime,String>, ColumnLengthDefiningTypeConverter
| Constructor and Description |
|---|
LocalTimeStringConverter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultColumnLength(int columnPosition)
Accessor for the default column length to use for the datastore column at the specified position.
|
String |
toDatastoreType(java.time.LocalTime date)
Method to convert the passed member value to the datastore type.
|
java.time.LocalTime |
toMemberType(String str)
Method to convert the passed datastore value to the member type.
|
public java.time.LocalTime toMemberType(String str)
TypeConvertertoMemberType in interface TypeConverter<java.time.LocalTime,String>str - Value from the datastorepublic String toDatastoreType(java.time.LocalTime date)
TypeConvertertoDatastoreType in interface TypeConverter<java.time.LocalTime,String>date - Value from the memberpublic int getDefaultColumnLength(int columnPosition)
ColumnLengthDefiningTypeConvertergetDefaultColumnLength in interface ColumnLengthDefiningTypeConvertercolumnPosition - Position of the column being enquired about (0 = first)Copyright © 2020. All rights reserved.