Package io.ebeaninternal.server.type
Class ScalarTypeZoneId
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<T>
-
- io.ebeaninternal.server.type.ScalarTypeBaseVarchar<ZoneId>
-
- io.ebeaninternal.server.type.ScalarTypeZoneId
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<ZoneId>
,ScalarType<ZoneId>
public class ScalarTypeZoneId extends ScalarTypeBaseVarchar<ZoneId>
ScalarType for java.time.OffsetTime stored as DB VARCHAR
-
-
Constructor Summary
Constructors Constructor Description ScalarTypeZoneId()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZoneId
convertFromDbString(String dbValue)
Convert from DB string value to the target type.String
convertToDbString(ZoneId beanValue)
Convert to DB string from the target type.String
formatValue(ZoneId v)
Format the target type to a string.int
getLength()
Just return 0.ZoneId
parse(String value)
Parse from a formatted string value.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBaseVarchar
bind, convertFromMillis, format, getDocType, isDateTimeCapable, jsonRead, jsonWrite, read, readData, toBeanType, toJdbcType, writeData
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBase
asVersion, getJdbcType, getType, isBinaryType, isDirty, isJdbcNative, isMutable, loadIgnore
-
-
-
-
Constructor Detail
-
ScalarTypeZoneId
public ScalarTypeZoneId()
-
-
Method Detail
-
getLength
public int getLength()
Description copied from class:ScalarTypeBase
Just return 0.- Specified by:
getLength
in interfaceScalarType<ZoneId>
- Overrides:
getLength
in classScalarTypeBase<ZoneId>
-
formatValue
public String formatValue(ZoneId v)
Description copied from class:ScalarTypeBaseVarchar
Format the target type to a string.- Specified by:
formatValue
in interfaceScalarType<ZoneId>
- Specified by:
formatValue
in classScalarTypeBaseVarchar<ZoneId>
-
parse
public ZoneId parse(String value)
Description copied from class:ScalarTypeBaseVarchar
Parse from a formatted string value.- Specified by:
parse
in interfaceScalarType<ZoneId>
- Specified by:
parse
in interfaceStringParser
- Specified by:
parse
in classScalarTypeBaseVarchar<ZoneId>
-
convertFromDbString
public ZoneId convertFromDbString(String dbValue)
Description copied from class:ScalarTypeBaseVarchar
Convert from DB string value to the target type.- Specified by:
convertFromDbString
in classScalarTypeBaseVarchar<ZoneId>
-
convertToDbString
public String convertToDbString(ZoneId beanValue)
Description copied from class:ScalarTypeBaseVarchar
Convert to DB string from the target type.- Specified by:
convertToDbString
in classScalarTypeBaseVarchar<ZoneId>
-
-