All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.sql.REF

oracle.sql.REF

public class REF
implements Ref

Method Index

 o getBaseTypeName()
Implements the Ref interface method.
 o getConnection()
Oracle extension.
 o getDescriptor()
Oracle extension.
 o getSTRUCT()
Oracle extension.
 o getValue()
Oracle extension.
 o getValue(Dictionary)
Oracle extension.
 o isConvertibleTo(Class)
Test whether this data object can be converted to the specified Java data type.
 o setValue(Object)
Oracle extension.
 o toJdbc()
Convert this data object into its default Java object type.

Methods

 o getBaseTypeName
 public String getBaseTypeName() throws SQLException
Implements the Ref interface method. Gets the fully-qualified SQL structured type name of the referenced item.

Returns:
fully-qualified SQL structured type name of the referenced item.
Throws: SQLException
if a database access error occurs
 o getValue
 public Object getValue(Dictionary map) throws SQLException
Oracle extension. Get referenced object. Use "map" for customized type mapping.

Parameters:
map - contains mapping of SQL type names to Java classes
Returns:
the referenced object which can be a STRUCT or any java object defined in type map.
 o getValue
 public Object getValue() throws SQLException
Oracle extension. Get referenced object. Use the connection type map for customized type mapping.

Returns:
the referenced object which can be a STRUCT or any java object defined in type map.
 o getSTRUCT
 public STRUCT getSTRUCT() throws SQLException
Oracle extension. Get the referenced object as a oracle.sql.STRUCT instance. Customized type mapping is ignored.

 o setValue
 public void setValue(Object value) throws SQLException
Oracle extension. Set REF value. The method updated the underly object value in database.

Parameters:
value - the value to be set.
 o getDescriptor
 public StructDescriptor getDescriptor() throws SQLException
Oracle extension. Return the type descriptor of the Struct type that this REF object points to.

 o getConnection
 public OracleConnection getConnection()
Oracle extension. Return current connection.

 o toJdbc
 public Object toJdbc() throws SQLException
Convert this data object into its default Java object type.

Returns:
this object.
Throws: SQLException
if any of the lower layer code throws an exception.
 o isConvertibleTo
 public boolean isConvertibleTo(Class jClass)
Test whether this data object can be converted to the specified Java data type.

Parameters:
jClass specifies - the Java data type to test against.
Returns:
true if this data object is convertible to the specified Java class, and a corresponding xxxValue() method is available; otherwise, a false is returned.

All Packages  Class Hierarchy  This Package  Previous  Next  Index