Class OsonValueJDBCTypeAdapter

java.lang.Object
org.hibernate.type.format.OsonValueJDBCTypeAdapter
All Implemented Interfaces:
JsonValueJDBCTypeAdapter

public class OsonValueJDBCTypeAdapter extends Object implements JsonValueJDBCTypeAdapter
JDBC type adapter for OSON-based JSON document reader.
  • Constructor Details

    • OsonValueJDBCTypeAdapter

      public OsonValueJDBCTypeAdapter()
  • Method Details

    • fromValue

      public Object fromValue(JavaType<?> jdbcJavaType, JdbcType jdbcType, JsonDocumentReader source, WrapperOptions options) throws SQLException
      Description copied from interface: JsonValueJDBCTypeAdapter
      Gets an Object out of a JSON document reader according to a given types.
      Specified by:
      fromValue in interface JsonValueJDBCTypeAdapter
      Parameters:
      jdbcJavaType - the desired JavaType for the return Object.
      jdbcType - the desired JdbcType for the return Object.
      source - the JSON document reader from which to get the value to be translated.
      options - the wrapping option
      Returns:
      the translated value.
      Throws:
      SQLException - if translation failed.
    • fromNumericValue

      public Object fromNumericValue(JavaType<?> jdbcJavaType, JdbcType jdbcType, JsonDocumentReader source, WrapperOptions options) throws SQLException
      Description copied from interface: JsonValueJDBCTypeAdapter
      Gets an Object out of a JSON document reader according to a given types. This method is called when the current available value in the reader is a numeric one.
      Specified by:
      fromNumericValue in interface JsonValueJDBCTypeAdapter
      Parameters:
      jdbcJavaType - the desired JavaType for the return Object.
      jdbcType - the desired JdbcType for the return Object.
      source - the JSON document reader from which to get the value to be translated.
      options - the wrapping option
      Returns:
      the translated value.
      Throws:
      SQLException - if translation failed.