Package oracle.sql.json
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.
-
<section role="region">
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOracleJsonDecimal.TargetTypeMarker indicating if this value is intended to be mapped to Java int, long, or BigDecimal/BigInteger.-
Nested classes/interfaces inherited from interface oracle.sql.json.OracleJsonValue
OracleJsonValue.OracleJsonType
-
-
Field Summary
-
Fields inherited from interface oracle.sql.json.OracleJsonValue
FALSE, NULL, TRUE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)Compares the specified object with thisOracleJsonDecimal.NUMBERgetNUMBER()Returns this binary value as aoracle.sql.NUMBEROracleJsonDecimal.TargetTypegetTargetType()Indicates if this value is intended to be stored in a Java int, long, or BigDecimal/BigInteger.inthashCode()Returns a hash code equal tothis bigDecimalValue().hashCode().-
Methods inherited from interface oracle.sql.json.OracleJsonNumber
bigDecimalValue, bigIntegerValue, bigIntegerValueExact, doubleValue, floatValue, intValue, intValueExact, isIntegral, longValue, longValueExact
-
Methods inherited from interface oracle.sql.json.OracleJsonValue
asJsonArray, asJsonBinary, asJsonDate, asJsonDecimal, asJsonDouble, asJsonFloat, asJsonIntervalDS, asJsonIntervalYM, asJsonNumber, asJsonObject, asJsonString, asJsonTimestamp, getOracleJsonType, toString, wrap
-
-
-
<section role="region">
-
Method Detail
-
getNUMBER
NUMBER getNUMBER()
Returns this binary value as aoracle.sql.NUMBER- Returns:
- the binary value
- Throws:
UnsupportedOperationException- if this value can not be mapped tooracle.sql.NUMBER
-
hashCode
int hashCode()
Returns a hash code equal tothis bigDecimalValue().hashCode().
-
equals
boolean equals(Object obj)
Compares the specified object with thisOracleJsonDecimal. Returns true if and only if the other object is an instance ofOracleJsonDecimaland the result of callingbigDecimalValue().equals(((OracleJsonDecimal)obj).bigDecimalValue()))returns true.
-
getTargetType
OracleJsonDecimal.TargetType 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 asOracleJsonGenerator.write(int)andOracleJsonFactory.createDecimal(int).- Returns:
- the target type or null if not specified.
-
-