|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jbo.domain.RowID
This class provides a lightweight wrapper for oracle.sql.RowID, the Java representation of the ROWID database type. This wrapper allows an instance of the oracle.sql.RowID to be used as an immutable Domain object.
RowID
objects consist of data (a byte array)
and a Domain type code.
Domain row IDs extend SQL row IDs by being convertable to
JDBC values.
The oracle.jbo.domain.RowID 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 |
RowID()
Creates a default RowID Domain object. |
RowID(byte[] value)
Internal: Applications should not invoke this constructor. |
RowID(java.lang.String value)
Internal: Applications should not invoke this constructor. |
Method Summary |
Type | Method |
---|---|
boolean |
equals(java.lang.Object other)
Tests this for equality with another object. |
static CustomDatumFactory |
getCustomDatumFactory()
Internal: Applications should not invoke this method. |
java.lang.Object |
getData()
Internal: Applications should not invoke this method. |
int |
hashCode()
Computes a hash code for this . |
void |
setContext(oracle.jbo.domain.DomainOwnerInterface owner,
oracle.jbo.Transaction trans,
java.lang.Object ctx)
Internal: Applications should not invoke this method. |
Datum |
toDatum(OracleConnection conn)
Internal: Applications should not invoke this method. |
java.lang.String |
toString()
For testing purposes only: converts this to a textual representation. |
Constructor Detail |
public RowID()
RowID
Domain object.
This constructor does not create a null RowID. To create a
null RowID,
use one of the oracle.jbo.domain.NullValue
objects to indicate
null.
public RowID(byte[] value)
Creates a RowID
Domain object from the given byte array.
value
- a value returned by a previous call to
getBytes()
on an SQL object compatable with
RowID
.value
- byte array containing the value of the RowID.public RowID(java.lang.String value)
Creates a RowID
Domain object from a
Java String
.
value
- a textual representation of a RowID
.java.sql.SQLException
- if the representation is invalid.Method Detail |
public static CustomDatumFactory getCustomDatumFactory()
Initializes the RowID
Domain.
This method is invoked when Business Components for Java is initialized.
CustomDatumFactory
for the
RowID
Domain.public Datum toDatum(OracleConnection conn) throws java.sql.SQLException
Converts this RowID
Domain object back into an
SQL ROWID
object.
conn
- Not used.Datum
containing ROWID
object.java.sql.SQLException
- Never.public java.lang.Object getData()
Converts this
to a JDBC object.
this
, or null
,
if the conversion fails.public void setContext(oracle.jbo.domain.DomainOwnerInterface owner, oracle.jbo.Transaction trans, java.lang.Object ctx)
public java.lang.String toString()
this
to a textual representation.public boolean equals(java.lang.Object other)
this
for equality with another object.
The argument is converted to a RowID
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
.
|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |