Package oracle.sql.json
Interface OracleJsonDecimal
- All Superinterfaces:
OracleJsonNumber,OracleJsonValue
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 ClassesModifier and TypeInterfaceDescriptionstatic enumMarker 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
Modifier and TypeMethodDescriptionbooleanCompares the specified object with thisOracleJsonDecimal.Returns this binary value as aoracle.sql.NUMBERIndicates 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, longValueExactMethods inherited from interface oracle.sql.json.OracleJsonValue
asJsonArray, asJsonBinary, asJsonDate, asJsonDecimal, asJsonDouble, asJsonFloat, asJsonIntervalDS, asJsonIntervalYM, asJsonNumber, asJsonObject, asJsonString, asJsonTimestamp, asJsonTimestampTZ, asJsonVector, getOracleJsonType, toString, wrap
-
Method Details
-
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
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.
-