Class OracleJsonLocaleTimeSerde
java.lang.Object
io.micronaut.serde.oracle.jdbc.json.serde.AbstractOracleJsonSerde<LocalTime>
io.micronaut.serde.oracle.jdbc.json.serde.OracleJsonLocaleTimeSerde
- All Implemented Interfaces:
Deserializer<LocalTime>
,Serde<LocalTime>
,Serializer<LocalTime>
@Singleton
@Order(-100)
public class OracleJsonLocaleTimeSerde
extends AbstractOracleJsonSerde<LocalTime>
Serde for
LocalTime
from Oracle JSON.- Since:
- 2.0.0
- Author:
- radovanradic
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContext
Nested classes/interfaces inherited from interface io.micronaut.serde.Serializer
Serializer.EncoderContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull LocalTime
doDeserializeNonNull
(@NonNull OracleJdbcJsonParserDecoder decoder, @NonNull Deserializer.DecoderContext decoderContext, @NonNull io.micronaut.core.type.Argument<? super LocalTime> type) Deserializes object usingOracleJdbcJsonParserDecoder
.protected void
doSerializeNonNull
(OracleJdbcJsonGeneratorEncoder encoder, Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends LocalTime> type, LocalTime value) Serializes non null value.Methods inherited from class io.micronaut.serde.oracle.jdbc.json.serde.AbstractOracleJsonSerde
deserialize, serialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.serde.Deserializer
allowNull, createSpecific, deserializeNullable, getDefaultValue
Methods inherited from interface io.micronaut.serde.Serializer
createSpecific, isAbsent, isEmpty
-
Constructor Details
-
OracleJsonLocaleTimeSerde
-
-
Method Details
-
doDeserializeNonNull
@NonNull protected @NonNull LocalTime doDeserializeNonNull(@NonNull @NonNull OracleJdbcJsonParserDecoder decoder, @NonNull @NonNull Deserializer.DecoderContext decoderContext, @NonNull @NonNull io.micronaut.core.type.Argument<? super LocalTime> type) Description copied from class:AbstractOracleJsonSerde
Deserializes object usingOracleJdbcJsonParserDecoder
.- Specified by:
doDeserializeNonNull
in classAbstractOracleJsonSerde<LocalTime>
- Parameters:
decoder
- the Oracle JSON decoderdecoderContext
- the decoder contexttype
- the type being deserialized- Returns:
- the deserialized instance of given type
-
doSerializeNonNull
protected void doSerializeNonNull(OracleJdbcJsonGeneratorEncoder encoder, Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends LocalTime> type, LocalTime value) Description copied from class:AbstractOracleJsonSerde
Serializes non null value.- Specified by:
doSerializeNonNull
in classAbstractOracleJsonSerde<LocalTime>
- Parameters:
encoder
- the encodercontext
- the encoder contexttype
- the type of object being serializedvalue
- the value being serialized
-
getDefault
- Specified by:
getDefault
in classAbstractOracleJsonSerde<LocalTime>
- Returns:
- The default behaviour
-