Class OracleJsonLocaleDateSerde
java.lang.Object
io.micronaut.serde.oracle.jdbc.json.serde.AbstractOracleJsonSerde<LocalDate>
io.micronaut.serde.oracle.jdbc.json.serde.OracleJsonLocaleDateSerde
- All Implemented Interfaces:
Deserializer<LocalDate>
,Serde<LocalDate>
,Serializer<LocalDate>
@Singleton
@Order(-100)
public class OracleJsonLocaleDateSerde
extends AbstractOracleJsonSerde<LocalDate>
Serde for
LocalDate
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 LocalDate
doDeserializeNonNull
(@NonNull OracleJdbcJsonParserDecoder decoder, @NonNull Deserializer.DecoderContext decoderContext, @NonNull io.micronaut.core.type.Argument<? super LocalDate> type) Deserializes object usingOracleJdbcJsonParserDecoder
.protected void
doSerializeNonNull
(OracleJdbcJsonGeneratorEncoder encoder, Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends LocalDate> type, LocalDate 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
-
OracleJsonLocaleDateSerde
-
-
Method Details
-
doDeserializeNonNull
@NonNull protected @NonNull LocalDate doDeserializeNonNull(@NonNull @NonNull OracleJdbcJsonParserDecoder decoder, @NonNull @NonNull Deserializer.DecoderContext decoderContext, @NonNull @NonNull io.micronaut.core.type.Argument<? super LocalDate> type) Description copied from class:AbstractOracleJsonSerde
Deserializes object usingOracleJdbcJsonParserDecoder
.- Specified by:
doDeserializeNonNull
in classAbstractOracleJsonSerde<LocalDate>
- 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 LocalDate> type, LocalDate value) Description copied from class:AbstractOracleJsonSerde
Serializes non null value.- Specified by:
doSerializeNonNull
in classAbstractOracleJsonSerde<LocalDate>
- Parameters:
encoder
- the encodercontext
- the encoder contexttype
- the type of object being serializedvalue
- the value being serialized
-
getDefault
- Specified by:
getDefault
in classAbstractOracleJsonSerde<LocalDate>
- Returns:
- The default behaviour
-