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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OracleJsonDecimal.TargetType
Marker 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 boolean
equals(Object obj)
Compares the specified object with thisOracleJsonDecimal
.NUMBER
getNUMBER()
Returns this binary value as aoracle.sql.NUMBER
OracleJsonDecimal.TargetType
getTargetType()
Indicates if this value is intended to be stored in a Java int, long, or BigDecimal/BigInteger.int
hashCode()
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, asJsonTimestampTZ, getOracleJsonType, toString, wrap
-
-
-
-
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 ofOracleJsonDecimal
and 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.
-
-