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 Detail

      • getNUMBER

        NUMBER getNUMBER()
        Returns this binary value as a oracle.sql.NUMBER
        Returns:
        the binary value
        Throws:
        java.lang.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 java.lang.Object
        Returns:
        the hash code
      • equals

        boolean equals​(java.lang.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 java.lang.Object
        Parameters:
        obj - the object to be compared for equality
        Returns:
        true if the specified object is equal to this OracleJsonBinary.