Class OracleJdbcJsonTextObjectMapper

java.lang.Object
io.micronaut.serde.oracle.jdbc.json.OracleJdbcJsonTextObjectMapper
All Implemented Interfaces:
io.micronaut.json.JsonMapper, ObjectMapper

@Singleton @Order(199) public final class OracleJdbcJsonTextObjectMapper extends Object
Implementation of the JsonMapper interface for Oracle JDBC Text JSON.
Since:
1.2.0
Author:
Denis Stepanov
  • Field Details

    • registry

      protected final SerdeRegistry registry
    • serdeConfiguration

      @Nullable protected final @Nullable SerdeConfiguration serdeConfiguration
    • view

      protected final Class<?> view
    • oracleJsonFactory

      protected final oracle.sql.json.OracleJsonFactory oracleJsonFactory
  • Constructor Details

  • Method Details

    • cloneWithViewClass

      public io.micronaut.json.JsonMapper cloneWithViewClass(Class<?> viewClass)
    • getSerdeRegistry

      public SerdeRegistry getSerdeRegistry()
      Description copied from interface: ObjectMapper
      Returns the SerdeRegistry used by this object mapper, if possible.
      Specified by:
      getSerdeRegistry in interface ObjectMapper
      Returns:
      The serde registry
    • readValueFromTree

      public <T> T readValueFromTree(io.micronaut.json.tree.JsonNode tree, io.micronaut.core.type.Argument<T> type) throws IOException
      Specified by:
      readValueFromTree in interface io.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 interface io.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 interface io.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 parser
      type - 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 interface io.micronaut.json.JsonMapper
    • writeValueToTree

      public io.micronaut.json.tree.JsonNode writeValueToTree(Object value) throws IOException
      Specified by:
      writeValueToTree in interface io.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 interface io.micronaut.json.JsonMapper
      Throws:
      IOException
    • writeValue

      public void writeValue(OutputStream outputStream, Object object) throws IOException
      Specified by:
      writeValue in interface io.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 interface io.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 generator
      value - The value
      type - The argument
      Throws:
      IOException
    • writeValueAsBytes

      public byte[] writeValueAsBytes(Object object) throws IOException
      Specified by:
      writeValueAsBytes in interface io.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 interface io.micronaut.json.JsonMapper
      Throws:
      IOException
    • getStreamConfig

      public io.micronaut.json.JsonStreamConfig getStreamConfig()
      Specified by:
      getStreamConfig in interface io.micronaut.json.JsonMapper