Package oracle.nosql.driver.values
Class JsonNullValue
java.lang.Object
oracle.nosql.driver.values.FieldValue
oracle.nosql.driver.values.JsonNullValue
- All Implemented Interfaces:
Comparable<FieldValue>
A
FieldValue instance representing an explicit JSON null
value in a JSON object or array.
On input this type can only be used in a table field of type JSON. This
is an immutable singleton object.-
Nested Class Summary
Nested classes/interfaces inherited from class oracle.nosql.driver.values.FieldValue
FieldValue.Type -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FieldValue other) booleanstatic JsonNullValueReturns an instance (singleton) of JsonNullValue.Returns a String value for the field.getType()Returns the type of the objectinthashCode()toJson(JsonOptions options) Returns a JSON representation of the value using the options, if specified.Methods inherited from class oracle.nosql.driver.values.FieldValue
asArray, asBinary, asBoolean, asDouble, asInteger, asJsonNull, asLong, asMap, asNull, asNumber, asString, asTimestamp, castAsDouble, createFromJson, createFromJson, createFromJson, getBinary, getBoolean, getDouble, getInt, getLong, getNumber, getSerializedSize, getTimestamp, isAnyNull, isArray, isAtomic, isBinary, isBoolean, isDouble, isInteger, isJsonNull, isLong, isMap, isNull, isNumber, isNumeric, isString, isTimestamp, toJson, toString
-
Method Details
-
getType
Description copied from class:FieldValueReturns the type of the object- Specified by:
getTypein classFieldValue- Returns:
- the type
-
getInstance
Returns an instance (singleton) of JsonNullValue.- Returns:
- the value
-
compareTo
-
getString
Description copied from class:FieldValueReturns a String value for the field. The String value cannot be created for MapValue, ArrayValue and BinaryValue. String values that are coerced use Java rules for representation.- Overrides:
getStringin classFieldValue- Returns:
- a String value
-
toJson
Description copied from class:FieldValueReturns a JSON representation of the value using the options, if specified.- Overrides:
toJsonin classFieldValue- Parameters:
options- configurable options used to affect the JSON output format of some data types. May be null.- Returns:
- the JSON representation of this value.
-
equals
-
hashCode
public int hashCode()
-