|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jbo.domain.Ref
public class Ref
This class provides a lightweight wrapper for oracle.sql.Ref, the Java representation of the REF database type. This wrapper allows an instance of the oracle.sql.Ref to be used as an immutable Domain object.
The oracle.jbo.domain.Ref 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 | |
|---|---|
protected |
Ref()Internal: Applications should not invoke this constructor. |
|
Ref(Datum d)Internal: Applications should not invoke this constructor. |
|
Ref(java.lang.String structName, byte[] data)Internal: Applications should not invoke this constructor. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)Tests this for equality with another object. |
byte[] |
getBytes()Returns the contents of the Ref in byte format. |
java.lang.Object |
getData()Internal: Applications should not invoke this method. |
static ORADataFactory |
getORADataFactory()Internal: Applications should not invoke this method. |
Row |
getReferencedObject(DomainAttributeDef ad)Returns an an instance of the refernced row, given the attribute definition object. |
java.lang.String |
getStructName()Returns the name of the struct associated with this RefDomain. |
void |
setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object fac)Internal: Applications should not invoke this method. |
Datum |
toDatum(java.sql.Connection conn)Internal: Applications should not invoke this method. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Ref()
throws java.sql.SQLException
java.sql.SQLException
public Ref(java.lang.String structName,
byte[] data)
Creates a Ref Domain object.
public Ref(Datum d)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public static ORADataFactory getORADataFactory()
Initializes the Ref Domain. This method is invoked when Business Components for Java is initialized.
ORADataFactory for the Ref Domain.
public Datum toDatum(java.sql.Connection conn)
throws java.sql.SQLException
Converts this Ref Domain object back into a SQL REF object.
toDatum in interface ORADataconn - OracleConnection Not used.Datum containing REF object.java.sql.SQLException - Never.
public void setContext(DomainOwnerInterface owner,
Transaction trans,
java.lang.Object fac)
setContext in interface DomainInterfacepublic java.lang.Object getData()
Converts this to a JDBC object.
getData in interface DomainInterfacethis, or null, if the conversion fails.public java.lang.String getStructName()
public byte[] getBytes()
public Row getReferencedObject(DomainAttributeDef ad)
Row object.ad - the attribute's attribute definition object.Rowpublic boolean equals(java.lang.Object obj)
this for equality with another object.
The argument is converted to a Ref object, if necessary.
equals in class java.lang.Objectobj - an arbitrary Object.true if conversion was successful and the converted argument is identical to this.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||