Package oracle.sql.json
Interface OracleJsonDate
- All Superinterfaces:
OracleJsonValue
A SQL/JSON DATE value. The supported value space of this type is equivalent
to that of the Oracle DATE data type.
-
Nested Class Summary
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 thisOracleJsonDate.getDATE()Returns this value as a SQLDATE.Returns this value as anLocalDateTime.Returns this date as a String in ISO 8601 format.inthashCode()Returns a hash code that is equal tojava.util.Arrays.hashCode(getDATE().getBytes())Methods 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
-
getLocalDateTime
LocalDateTime getLocalDateTime()Returns this value as anLocalDateTime.- Returns:
- the
LocalDateTime
-
getDATE
DATE getDATE()Returns this value as a SQLDATE.- Returns:
- the date
-
getString
String getString()Returns this date as a String in ISO 8601 format.- Returns:
- the string value
-
hashCode
int hashCode()Returns a hash code that is equal tojava.util.Arrays.hashCode(getDATE().getBytes()) -
equals
Compares the specified object with thisOracleJsonDate. Returns true if and only if the other object is an instance ofOracleJsonDateand is equal to this date.
-