All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.sql.RAW

oracle.sql.RAW

public class RAW
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.


Constructor Index

 o RAW(byte[])
Construct a RAW from a byte array.
 o RAW(Object)
Construct a RAW from a Java object.

Method Index

 o isConvertibleTo(Class)
Test whether this data object can be converted to the specified Java data type.
 o stringValue()
Convert this data object into a String.
 o toJdbc()
Convert this data object into its default Java object type.

Constructors

 o 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.
 o RAW
 public RAW(Object val) throws 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.

Methods

 o toJdbc
 public Object toJdbc() throws SQLException
Convert this data object into its default Java object type.

Returns:
the data value as a byte array.
Throws: SQLException
if any of the lower layer code throws an exception.
 o isConvertibleTo
 public boolean isConvertibleTo(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.
 o stringValue
 public String stringValue()
Convert this data object into a String.

Returns:
the data value in String representation.

All Packages  Class Hierarchy  This Package  Previous  Next  Index