All Packages Class Hierarchy This Package Previous Next Index
Class oracle.sql.REF
oracle.sql.REF
- public class REF
- implements Ref
-
getBaseTypeName()
- Implements the Ref interface method.
-
getConnection()
- Oracle extension.
-
getDescriptor()
- Oracle extension.
-
getSTRUCT()
- Oracle extension.
-
getValue()
- Oracle extension.
-
getValue(Dictionary)
- Oracle extension.
-
isConvertibleTo(Class)
- Test whether this data object can be converted to the specified
Java data type.
-
setValue(Object)
- Oracle extension.
-
toJdbc()
- Convert this data object into its default Java object type.
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
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.
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.
getSTRUCT
public STRUCT getSTRUCT() throws SQLException
- Oracle extension.
Get the referenced object as a oracle.sql.STRUCT instance.
Customized type mapping is ignored.
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.
getDescriptor
public StructDescriptor getDescriptor() throws SQLException
- Oracle extension.
Return the type descriptor of the Struct type that this REF
object points to.
getConnection
public OracleConnection getConnection()
- Oracle extension.
Return current connection.
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.
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