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