oracle.sql
Class RAW
java.lang.Object
|
+--oracle.sql.Datum
|
+--oracle.sql.RAW
- public class RAW
- extends Datum
The RAW class is a representation of the Oracle RAW datatype.
It is intended to be immutable. The user should not try to change
its contents once it is constructed.
RAW(byte[] raw_bytes)
Construct a RAW from a byte array. |
RAW(java.lang.Object val)
Construct a RAW from a Java object. |
Type | Method |
boolean |
isConvertibleTo(java.lang.Class jClass)
Test whether this data object can be converted to the specified
Java data type. |
java.lang.String |
stringValue()
Convert this data object into a String. |
java.lang.Object |
toJdbc()
Convert this data object into its default Java object type. |
Methods inherited from class oracle.sql.Datum |
asciiStreamValue,
bigDecimalValue,
binaryStreamValue,
booleanValue,
byteValue,
characterStreamValue,
dateValue,
doubleValue,
equals,
floatValue,
getBytes,
getLength,
getStream,
intValue,
longValue,
makeJdbcArray,
setBytes,
setShareBytes,
shareBytes,
timestampValue,
timeValue |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RAW
public RAW(byte[] raw_bytes)
- Construct a RAW from a byte array.
- Parameters:
raw_bytes
- input data from which this class instance is
constructed.
RAW
public RAW(java.lang.Object val)
throws java.sql.SQLException
- Construct a RAW from a Java object. The possible object types are
java.lang.String and byte[].
- Parameters:
raw_bytes
- input data from which this class instance is
constructed.
toJdbc
public java.lang.Object toJdbc()
throws java.sql.SQLException
- Convert this data object into its default Java object type.
- Returns:
- the data value as a byte array.
- Throws:
- java.sql.SQLException - if any of the lower layer code throws an exception.
- Overrides:
- toJdbc in class Datum
isConvertibleTo
public boolean isConvertibleTo(java.lang.Class jClass)
- Test whether this data object can be converted to the specified
Java data type.
- Parameters:
jClass
- specifies the Java data type to test against.- Returns:
- true if this data object is convertible to the
specified Java class, and a corresponding xxxValue()
method is available; otherwise, a false is returned.
- Overrides:
- isConvertibleTo in class Datum
stringValue
public java.lang.String stringValue()
- Convert this data object into a String.
- Returns:
- the data value in String representation.
- Overrides:
- stringValue in class Datum