Class OracleJdbcJsonBinaryObjectMapper
java.lang.Object
io.micronaut.serde.oracle.jdbc.json.OracleJdbcJsonBinaryObjectMapper
- All Implemented Interfaces:
io.micronaut.json.JsonMapper
,ObjectMapper
Implementation of the
JsonMapper
interface for Oracle JDBC Binary JSON.- Since:
- 1.2.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.ObjectMapper
ObjectMapper.CloseableObjectMapper
-
Field Summary
Modifier and TypeFieldDescriptionprotected final oracle.sql.json.OracleJsonFactory
protected final SerdeRegistry
protected final @Nullable SerdeConfiguration
protected final Class<?>
-
Constructor Summary
ConstructorDescriptionDeprecated.OracleJdbcJsonBinaryObjectMapper
(SerdeRegistry registry, SerdeConfiguration serdeConfiguration) OracleJdbcJsonBinaryObjectMapper
(SerdeRegistry registry, Class<?> view) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.json.JsonMapper
cloneWithViewClass
(Class<?> viewClass) org.reactivestreams.Processor<byte[],
io.micronaut.json.tree.JsonNode> createReactiveParser
(Consumer<org.reactivestreams.Processor<byte[], io.micronaut.json.tree.JsonNode>> onSubscribe, boolean streamArray) io.micronaut.json.JsonStreamConfig
<T> T
readValue
(byte[] byteArray, io.micronaut.core.type.Argument<T> type) <T> T
readValue
(@NonNull oracle.sql.json.OracleJsonParser parser, @NonNull io.micronaut.core.type.Argument<T> type) Read the value using the oracle parser.<T> T
readValue
(InputStream inputStream, io.micronaut.core.type.Argument<T> type) <T> T
readValueFromTree
(io.micronaut.json.tree.JsonNode tree, io.micronaut.core.type.Argument<T> type) <T> void
writeValue
(@NonNull oracle.sql.json.OracleJsonGenerator generator, T value, @NonNull io.micronaut.core.type.Argument<T> type) Writes the value to the json generator.<T> void
writeValue
(OutputStream outputStream, io.micronaut.core.type.Argument<T> type, T object) void
writeValue
(OutputStream outputStream, Object object) <T> byte[]
writeValueAsBytes
(io.micronaut.core.type.Argument<T> type, T object) byte[]
writeValueAsBytes
(Object object) <T> io.micronaut.json.tree.JsonNode
writeValueToTree
(io.micronaut.core.type.Argument<T> type, T value) io.micronaut.json.tree.JsonNode
writeValueToTree
(Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.json.JsonMapper
createSpecific, detectFeatures, readValue, readValue, readValue, readValue, readValue, readValueFromTree, updateValueFromTree, writeValueAsString, writeValueAsString
Methods inherited from interface io.micronaut.serde.ObjectMapper
cloneWithConfiguration, cloneWithFeatures, writeValueAsString
-
Field Details
-
registry
-
serdeConfiguration
-
view
-
oracleJsonFactory
protected final oracle.sql.json.OracleJsonFactory oracleJsonFactory
-
-
Constructor Details
-
OracleJdbcJsonBinaryObjectMapper
Deprecated. -
OracleJdbcJsonBinaryObjectMapper
Deprecated. -
OracleJdbcJsonBinaryObjectMapper
@Internal @Inject public OracleJdbcJsonBinaryObjectMapper(SerdeRegistry registry, SerdeConfiguration serdeConfiguration)
-
-
Method Details
-
cloneWithViewClass
-
readValueFromTree
public <T> T readValueFromTree(io.micronaut.json.tree.JsonNode tree, io.micronaut.core.type.Argument<T> type) throws IOException - Specified by:
readValueFromTree
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
readValue
public <T> T readValue(InputStream inputStream, io.micronaut.core.type.Argument<T> type) throws IOException - Specified by:
readValue
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
readValue
public <T> T readValue(byte[] byteArray, io.micronaut.core.type.Argument<T> type) throws IOException - Specified by:
readValue
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
readValue
@NonNull public <T> T readValue(@NonNull @NonNull oracle.sql.json.OracleJsonParser parser, @NonNull @NonNull io.micronaut.core.type.Argument<T> type) throws IOException Read the value using the oracle parser.- Type Parameters:
T
- The type- Parameters:
parser
- The parsertype
- The argument- Returns:
- The value
- Throws:
IOException
-
createReactiveParser
public org.reactivestreams.Processor<byte[],io.micronaut.json.tree.JsonNode> createReactiveParser(Consumer<org.reactivestreams.Processor<byte[], io.micronaut.json.tree.JsonNode>> onSubscribe, boolean streamArray) - Specified by:
createReactiveParser
in interfaceio.micronaut.json.JsonMapper
-
writeValueToTree
- Specified by:
writeValueToTree
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
writeValueToTree
public <T> io.micronaut.json.tree.JsonNode writeValueToTree(io.micronaut.core.type.Argument<T> type, T value) throws IOException - Specified by:
writeValueToTree
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
writeValue
- Specified by:
writeValue
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
writeValue
public <T> void writeValue(OutputStream outputStream, io.micronaut.core.type.Argument<T> type, T object) throws IOException - Specified by:
writeValue
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
writeValue
public <T> void writeValue(@NonNull @NonNull oracle.sql.json.OracleJsonGenerator generator, @NonNull T value, @NonNull @NonNull io.micronaut.core.type.Argument<T> type) throws IOException Writes the value to the json generator.- Type Parameters:
T
- The type- Parameters:
generator
- The generatorvalue
- The valuetype
- The argument- Throws:
IOException
-
writeValueAsBytes
- Specified by:
writeValueAsBytes
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
writeValueAsBytes
public <T> byte[] writeValueAsBytes(io.micronaut.core.type.Argument<T> type, T object) throws IOException - Specified by:
writeValueAsBytes
in interfaceio.micronaut.json.JsonMapper
- Throws:
IOException
-
getStreamConfig
public io.micronaut.json.JsonStreamConfig getStreamConfig()- Specified by:
getStreamConfig
in interfaceio.micronaut.json.JsonMapper
-