|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.sql.Datum
|
+--oracle.sql.RAW
|
+--oracle.jbo.domain.Raw
This class provides a lightweight wrapper for oracle.sql.Raw, the Java representation of the RAW database type. This wrapper allows an instance of the oracle.sql.Raw to be used as an immutable Domain object.
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.
| Constructor Summary | |
Raw()
Creates a default Raw Domain object. |
|
Raw(byte[] value)
Internal: Applications should not invoke this constructor. |
|
Raw(java.lang.Object value)
Creates a Raw Domain object from a
Java Object. |
|
Raw(Raw value)
Creates a Raw object identical to an
existing Raw object. |
|
Raw(oracle.sql.RAW value)
Creates a Raw Domain object encapsulating an SQL
RAW object. |
|
Raw(java.lang.String value)
Creates a Raw Domain object from a
Java String. |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
Tests this for equality with another object. |
static oracle.sql.CustomDatumFactory |
getCustomDatumFactory()
Internal: Applications should not invoke this method. |
java.lang.Object |
getData()
Internal: Applications should not invoke this method. Converts this to a JDBC object. |
static XMLDomainFactory |
getXMLDomainFactory(java.lang.Class attrClass)
Internal: Applications should not use this method. |
int |
hashCode()
Computes a hash code for this. |
void |
setContext(DomainOwnerInterface owner,
Transaction trans,
java.lang.Object ctx)
Internal: Applications should not invoke this method. |
oracle.sql.Datum |
toDatum(oracle.jdbc.driver.OracleConnection conn)
Internal: Applications should not invoke this method. |
java.lang.String |
toString()
For testing purposes only: converts this to a character string. |
| Methods inherited from class oracle.sql.RAW |
asciiStreamValue,
binaryStreamValue,
characterStreamValue,
isConvertibleTo,
makeJdbcArray,
stringValue,
toJdbc |
| Methods inherited from class oracle.sql.Datum |
bigDecimalValue,
booleanValue,
byteValue,
compareBytes,
dateValue,
doubleValue,
floatValue,
getBytes,
getLength,
getStream,
intValue,
longValue,
setBytes,
setShareBytes,
shareBytes,
timestampValue,
timeValue |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public 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.
public Raw(oracle.sql.RAW value)
throws java.sql.SQLException
Raw Domain object encapsulating an SQL
RAW object.value - a RAW SQL object.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.SQLException - if the representation is invalid.
public 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.byte[] or String.| Method Detail |
public static oracle.sql.CustomDatumFactory getCustomDatumFactory()
Initializes the Raw Domain.
This method is invoked when Business Components for Java is initialized.
CustomDatumFactory for the
Raw Domain.
public oracle.sql.Datum toDatum(oracle.jdbc.driver.OracleConnection conn)
throws java.sql.SQLException
Converts this Raw Domain object back into an
SQL RAW object.
conn - Not used.Datum containing RAW object.SQLException - Never.public java.lang.Object getData()
this to a JDBC object.this as a JBDC object.
public void setContext(DomainOwnerInterface owner,
Transaction trans,
java.lang.Object ctx)
public java.lang.String toString()
this to a character string.public boolean equals(java.lang.Object other)
this for equality with another object.
The argument is converted to a Raw object, if necessary.
other - an arbitrary Object.true if conversion was successful and the converted
argument is identical to this.public int hashCode()
this.this.public static XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||