public class Raw extends RAW implements NativeTypeDomainInterface, KeyAttributeInterface, ORAData, OracleData, java.io.Serializable
The intent of many of the methods in this class is to wrap the corresponding method in the oracle.sql class such that it returns an instance of an oracle.jbo.domain.* object.
Raw objects consist of data (a byte array)
 and a Domain type code.
 
The oracle.jbo.domain.Raw class is the Java representation of the underlying database type that you must use if you want to exploit the domain feature of Business Components for Java.
BUILD_DATE, TRACE| Constructor and Description | 
|---|
| Raw()Creates a default  RawDomain object. | 
| Raw(byte[] value)Internal: Applications should not invoke this constructor. | 
| Raw(java.lang.Object value)Creates a  RawDomain object from a
 JavaObject. | 
| Raw(Raw value)Creates a  Rawobject identical to an
 existingRawobject. | 
| Raw(RAW value)Creates a  RawDomain object encapsulating an SQLRAWobject. | 
| Raw(java.lang.String value)Creates a  RawDomain object from a
 JavaString. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object other)Tests  thisfor equality with another object. | 
| java.lang.Object | getData()Internal: Applications should not invoke this method.
 Converts  thisto a JDBC object. | 
| java.lang.Object | getNativeObject() | 
| static ORADataFactory | getORADataFactory()Internal: Applications should not invoke this method. | 
| byte[] | getValue()Return a byte[] object with this domain's value. | 
| static XMLDomainFactory | getXMLDomainFactory(java.lang.Class attrClass)Internal: Applications should not use this method. | 
| int | hashCode()Computes a hash code for  this. | 
| static byte[] | readBytesFromXML(Node node) | 
| void | setContext(DomainOwnerInterface owner,
          Transaction trans,
          java.lang.Object ctx)Internal: Applications should not invoke this method. | 
| Datum | toDatum(java.sql.Connection conn)Internal: Applications should not invoke this method. | 
| java.lang.Object | toJDBCObject(java.sql.Connection connection) | 
| java.lang.String | toString()For testing purposes only: converts  thisto a character string. | 
asciiStreamValue, binaryStreamValue, characterStreamValue, getConnectionDuringExceptionHandling, hexString2Bytes, isConvertibleTo, makeJdbcArray, newRAW, oldRAW, stringValue, toJdbcbigDecimalValue, booleanValue, bytesEqual, byteValue, compareBytes, dateValue, doubleValue, floatValue, getBytes, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClassclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBytes, setBytespublic Raw()
Raw Domain object.
 This constructor does not create a null object. To create a null object,
 use the NullValue object to indicate null.
public Raw(Raw value) throws java.sql.SQLException
Raw object identical to an
 existing Raw object.value - a Raw Domain object.java.sql.SQLException - never.public Raw(RAW value) throws java.sql.SQLException
Raw Domain object encapsulating an SQL
 RAW object.value - a RAW SQL object.java.sql.SQLException - never.public Raw(byte[] value)
Creates a Raw Domain object from the given byte array.
value - a value returned by a previous call to
 getBytes() on an SQL object compatable with
 Raw.public Raw(java.lang.String value)
    throws java.sql.SQLException
Raw Domain object from a
 Java String.value - a textual representation of a Raw object.SQLExceptionjava.sql.SQLExceptionpublic Raw(java.lang.Object value)
    throws java.sql.SQLException
Raw Domain object from a
 Java Object.
 The Object must be an instance of byte[],
 which becomes the body of the Raw object, or an instance of
 String, which is first converted into a byte array.
value - an arbitrary Object.java.sql.SQLException - if the object is not an instance
 of byte[] or String.public static ORADataFactory getORADataFactory()
Initializes the Raw Domain.
 This method is invoked when Business Components for Java is initialized.
ORADataFactory for the
 Raw Domain.public Datum toDatum(java.sql.Connection conn) throws java.sql.SQLException
Converts this Raw Domain object back into an
 SQL RAW object.
public java.lang.Object getNativeObject()
getNativeObject in interface NativeTypeDomainInterfacepublic byte[] getValue()
public java.lang.Object getData()
this to a JDBC object.getData in interface DomainInterfacethis as a JBDC object.public void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
setContext in interface DomainInterfacepublic java.lang.String toString()
this to a character string.toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
this for equality with another object.
 The argument is converted to a Raw object, if necessary.
public int hashCode()
this.hashCode in class java.lang.Objectthis.public static XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public static byte[] readBytesFromXML(Node node)
public java.lang.Object toJDBCObject(java.sql.Connection connection)
                              throws java.sql.SQLException
toJDBCObject in interface OracleDatajava.sql.SQLException