Class OracleJsonBinarySerde
java.lang.Object
io.micronaut.serde.oracle.jdbc.json.serde.AbstractOracleJsonSerde<byte[]>
io.micronaut.serde.oracle.jdbc.json.serde.OracleJsonBinarySerde
- All Implemented Interfaces:
Deserializer<byte[]>
,Serde<byte[]>
,Serializer<byte[]>
The custom serde for binary values for 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 byte @NonNull []
doDeserializeNonNull
(@NonNull OracleJdbcJsonParserDecoder decoder, @NonNull Deserializer.DecoderContext decoderContext, @NonNull io.micronaut.core.type.Argument<? super byte[]> type) Deserializes object usingOracleJdbcJsonParserDecoder
.protected void
doSerializeNonNull
(@NonNull OracleJdbcJsonGeneratorEncoder encoder, @NonNull Serializer.EncoderContext context, @NonNull io.micronaut.core.type.Argument<? extends byte[]> type, @io.micronaut.core.annotation.NonNull byte[] value) Serializes non null value.protected Serde<byte[]>
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
-
OracleJsonBinarySerde
-
OracleJsonBinarySerde
Deprecated.
-
-
Method Details
-
doDeserializeNonNull
protected byte @NonNull [] doDeserializeNonNull(@NonNull @NonNull OracleJdbcJsonParserDecoder decoder, @NonNull @NonNull Deserializer.DecoderContext decoderContext, @NonNull @NonNull io.micronaut.core.type.Argument<? super byte[]> type) Description copied from class:AbstractOracleJsonSerde
Deserializes object usingOracleJdbcJsonParserDecoder
.- Specified by:
doDeserializeNonNull
in classAbstractOracleJsonSerde<byte[]>
- Parameters:
decoder
- the Oracle JSON decoderdecoderContext
- the decoder contexttype
- the type being deserialized- Returns:
- the deserialized instance of given type
-
doSerializeNonNull
protected void doSerializeNonNull(@NonNull @NonNull OracleJdbcJsonGeneratorEncoder encoder, @NonNull @NonNull Serializer.EncoderContext context, @NonNull @NonNull io.micronaut.core.type.Argument<? extends byte[]> type, @NonNull @io.micronaut.core.annotation.NonNull byte[] value) Description copied from class:AbstractOracleJsonSerde
Serializes non null value.- Specified by:
doSerializeNonNull
in classAbstractOracleJsonSerde<byte[]>
- Parameters:
encoder
- the encodercontext
- the encoder contexttype
- the type of object being serializedvalue
- the value being serialized
-
getDefault
- Specified by:
getDefault
in classAbstractOracleJsonSerde<byte[]>
- Returns:
- The default behaviour
-