Package oracle.sql.json
Interface OracleJsonTimestamp
-
- All Superinterfaces:
OracleJsonValue
public interface OracleJsonTimestamp extends OracleJsonValue
A SQL/JSON timestamp (without a timezone).
-
<section role="region">
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object other)
Compares the specified object with thisOracleJsonTimestamp
.java.time.Instant
getInstant()
Returns this value as anInstant
.String
getString()
Returns this date as a String in ISO 8601 format.TIMESTAMP
getTIMESTAMP()
Returns this value as a SQLTIMESTAMP
.int
hashCode()
Returns a hash code that is equal tojava.util.Arrays.hashCode(getTIMESTAMP().getBytes())
-
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
-
getInstant
java.time.Instant getInstant()
Returns this value as anInstant
.- Returns:
- the instant
-
getTIMESTAMP
TIMESTAMP getTIMESTAMP()
Returns this value as a SQLTIMESTAMP
.- 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(getTIMESTAMP().getBytes())
-
equals
boolean equals(Object other)
Compares the specified object with thisOracleJsonTimestamp
. Returns true if and only if the other object is an instance ofOracleJsonTimestamp
and is equal to this timestamp.
-
-