Package oracle.sql.json
Interface OracleJsonBinary
- All Superinterfaces:
OracleJsonValue
A raw binary value (in any format) stored within JSON data. Used,
for example, to model a binary value stored witihin a JSON object.
-
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 thisOracleJsonBinary.byte[]getBytes()Returns this binary value as a byte array.getRAW()Returns this binary value as aoracle.sql.RAWReturns this binary value as a base-16 encoded string.inthashCode()The hashCode of this binary value.booleanisId()Returns true if this binary value is annotated as an identifierMethods 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
-
getBytes
byte[] getBytes()Returns this binary value as a byte array.- Returns:
- the binary value
-
getRAW
RAW getRAW()Returns this binary value as aoracle.sql.RAW- Returns:
- the binary value
-
getString
String getString()Returns this binary value as a base-16 encoded string.- Returns:
- the string value
-
isId
boolean isId()Returns true if this binary value is annotated as an identifier- Returns:
- true if an identifier, false otherwise.
-
hashCode
int hashCode()The hashCode of this binary value. Must return a hashCode equal tojava.util.Arrays.hashCode(getBytes()). -
equals
Compares the specified object with thisOracleJsonBinary. Returns true if and only if the other object is an instance ofOracleJsonBinaryand the result of callingjava.util.Arrays.equals(this.getBytes() , (OracleJsonBinary)obj.getBytes())returns true.
-