Package oracle.sql.json
Interface OracleJsonIntervalYM
- All Superinterfaces:
OracleJsonValue
A SQL/JSON time interval in years and months.
-
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 thisOracleJsonIntervalYM.Returns this value as aoracle.sql.INTERVALYMReturns this interval as aPeriod.Returns this interval as an ISO 8601 String.inthashCode()Returns a hash code equal toArrays.hashCode(getINTERVALYM().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
-
getPeriod
Period getPeriod()Returns this interval as aPeriod.- Returns:
- the interval
-
getINTERVALYM
INTERVALYM getINTERVALYM()Returns this value as aoracle.sql.INTERVALYM- Returns:
- the interval value
-
getString
String getString()Returns this interval as an ISO 8601 String.- Returns:
- the string value
-
hashCode
int hashCode()Returns a hash code equal toArrays.hashCode(getINTERVALYM().getBytes()). -
equals
Compares the specified object with thisOracleJsonIntervalYM. Returns true if and only if the other object is an instance ofOracleJsonIntervalYMand the intervals are equal.
-