Serializable
public class RAW extends Datum
ojiOracleDatumWithConnection, targetDatum
Constructor | Description |
---|---|
RAW(byte[] raw_bytes) |
Construct a RAW from a byte array.
|
RAW(Object val) |
Deprecated.
in 9.2.
|
Modifier and Type | Method | Description |
---|---|---|
protected oracle.jdbc.internal.OracleConnection |
getConnectionDuringExceptionHandling() |
|
static byte[] |
hexString2Bytes(String hexString) |
Converts a String of hex digits into a byte array with the corresponding byte values.
|
boolean |
isConvertibleTo(Class jClass) |
Test whether this data object can be converted to the specified Java data type.
|
static RAW |
newRAW(Object obj) |
Creates a new RAW from an Object in the manner of the RAW(Object) constructor beginning in 10i R1.
|
static RAW |
oldRAW(Object obj) |
Creates a new RAW from an Object in the manner of the RAW(Object) constructor in versions of Oracle JDBC 9.2 and earlier.
|
String |
stringValue() |
Convert this data object into a String.
|
Object |
toJdbc() |
Convert this data object into its default Java object type.
|
bigDecimalValue, booleanValue, bytesEqual, bytesHashCode, byteValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClass
public RAW(byte[] raw_bytes)
raw_bytes
- input data from which this class instance is constructed.public RAW(Object val) throws SQLException
val
- input data from which this class instance is constructed.SQLException
public static byte[] hexString2Bytes(String hexString) throws SQLException
hexString
- A String of hex digitsSQLException
- if one of the characters in the argument is not a hex digitpublic static RAW newRAW(Object obj) throws SQLException
In Oracle JDBC versions beginning in 10i R1 this is identical to RAW(Object). In versions 9.2 and earlier, it provides the functionality that will be provided in versions beginning in 10i R1.
Note that the behavior of RAW(Object) when passed a String argument changed in 10i R1.
obj
- Object used to create the new RAW valueSQLException
- if the argument is a String and one of the characters is not a hex digitoldRAW(java.lang.Object)
public static RAW oldRAW(Object obj) throws SQLException
In Oracle JDBC versions 9.2 and earlier this is identical to the RAW(Object) constructor. Beginning in 10i R1, it provides the functionality that previously was provided by that constructor.
Note that the behavior of RAW(Object) when passed a String argument changed in 10i R1.
obj
- Object used to create the RAW valueSQLException
- if something goes wrongnewRAW(java.lang.Object)
public Object toJdbc() throws SQLException
toJdbc
in class Datum
SQLException
- if any of the lower layer code throws an exception.public boolean isConvertibleTo(Class jClass)
isConvertibleTo
in class Datum
jClass
- specifies the Java data type to test against.public String stringValue()
stringValue
in class Datum
protected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()
getConnectionDuringExceptionHandling
in class Datum