Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.sql
Interface Ref


public interface Ref

A manifestation of the SQL REF type - a reference to an SQL type contained in the database.

The SQL REF's are held in a table along with SQL structured types. Every REF has an individual identifier for each single instance. The SQL REF is used instead of the structured type it references.

A Ref object is stored into the database using the PreparedStatement.setRef method.


Field Summary
static java.lang.Class CLASS_INSTANCE
           
 
Method Summary
 java.lang.String getBaseTypeName()
          Gets the fully-qualified SQL name of the SQL structured type that this Ref references.
 java.lang.Object getObject()
          Gets the SQL structured type instance referenced by this Ref.
 void setObject(java.lang.Object value)
          Sets the value of the structured typethat this Ref references to a supplied Object.
 

Field Detail

CLASS_INSTANCE

static final java.lang.Class CLASS_INSTANCE
Method Detail

getBaseTypeName

java.lang.String getBaseTypeName()
                                 throws SQLException
Gets the fully-qualified SQL name of the SQL structured type that this Ref references.

Returns:
the fully qualified name of the SQL structured type
Throws:
SQLException - if there is a database error

getObject

java.lang.Object getObject()
                           throws SQLException
Gets the SQL structured type instance referenced by this Ref.

Returns:
a Java object whose type is defined by the mapping for the SQL structured type.
Throws:
SQLException - if there is a database error

setObject

void setObject(java.lang.Object value)
               throws SQLException
Sets the value of the structured typethat this Ref references to a supplied Object.

Parameters:
value - the Object representing the new SQL structured type that this Ref will reference.
Throws:
SQLException - if there is a database error

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.