Interface OracleJsonDecimal

All Superinterfaces:
OracleJsonNumber, OracleJsonValue

public interface OracleJsonDecimal extends OracleJsonNumber
A SQL/JSON fixed decimal value. Values are commonly backed by SQL NUMBER type and may only support up to 38 digits of precision.
  • Method Details

    • getNUMBER

      NUMBER getNUMBER()
      Returns this binary value as a oracle.sql.NUMBER
      Returns:
      the binary value
      Throws:
      UnsupportedOperationException - if this value can not be mapped to oracle.sql.NUMBER
    • hashCode

      int hashCode()
      Returns a hash code equal to this bigDecimalValue().hashCode().
      Overrides:
      hashCode in class Object
      Returns:
      the hash code
    • equals

      boolean equals(Object obj)
      Compares the specified object with this OracleJsonDecimal. Returns true if and only if the other object is an instance of OracleJsonDecimal and the result of calling bigDecimalValue().equals(((OracleJsonDecimal)obj).bigDecimalValue())) returns true.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to be compared for equality
      Returns:
      true if the specified object is equal to this OracleJsonBinary.
    • getTargetType

      Indicates if this value is intended to be stored in a Java int, long, or BigDecimal/BigInteger. This value is determined by the method that created this value such as OracleJsonGenerator.write(int) and OracleJsonFactory.createDecimal(int).
      Returns:
      the target type or null if not specified.