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