public class REF extends DatumWithConnection implements oracle.jdbc.internal.OracleRef, java.io.Serializable, java.lang.Cloneable, oracle.jdbc.internal.OracleConcreteProxy
Ref interface for declaration instead of using concrete class
oracle.sql.REF. java.sql.Ref has methods declared for all opertions.
For Oracle specific methods use the interface OracleRef.
Obtaining java.sql.Ref from ResultSet
java.sql.Ref ref = resultSet.getRef(...);
There is no way to create Ref on the client side.Ref,
OracleRef,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected oracle.jdbc.driver.OracleRef |
target
Deprecated.
|
targetDatumWithConnectionojiOracleDatumWithConnection, targetDatum| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Deprecated.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
Test any object for equality with an Datum.
|
java.lang.String |
getBaseTypeName()
Deprecated.
Implements the Ref interface method.
|
StructDescriptor |
getDescriptor()
Deprecated.
Oracle extension.
|
java.sql.Connection |
getJavaSqlConnection()
Deprecated.
Oracle extension
Return the java.sql.Connection associated with the
receiver.
|
java.lang.Object |
getObject()
Deprecated.
JDBC 3.0
Retrieves the SQL structured type instance referenced by
this
Ref object. |
java.lang.Object |
getObject(java.util.Map map)
Deprecated.
|
OracleTypeMetaData |
getOracleMetaData()
Deprecated.
Return the type data for this object
|
java.lang.String |
getSQLTypeName()
Deprecated.
Oracle extension.
|
STRUCT |
getSTRUCT()
Deprecated.
Oracle extension.
|
oracle.jdbc.driver.OracleRef |
getTarget()
Deprecated.
|
java.lang.Object |
getValue()
Deprecated.
Oracle extension.
|
java.lang.Object |
getValue(java.util.Map map)
Deprecated.
Oracle extension.
|
int |
hashCode()
Deprecated.
|
boolean |
isConvertibleTo(java.lang.Class<?> jClass)
Deprecated.
Test whether this data object can be converted to the specified
Java data type.
|
void |
setObject(java.lang.Object value)
Deprecated.
JDBC 3.0
Sets the structured type value that this
Ref
object references to the given instance of Object. |
void |
setValue(java.lang.Object value)
Deprecated.
Oracle extension.
|
java.lang.Object |
toClass(java.lang.Class clazz,
java.util.Map map)
Deprecated.
Returns the required object based on the class to which the SQL
structured type is mapped to.
|
java.lang.Object |
toJdbc()
Deprecated.
Convert this data object into its default Java object type.
|
java.lang.Object |
toJdbc(java.util.Map map)
Deprecated.
Convert this data object into the Java object as defined in map
if the data object type is not mapped to any class then its converted into
default Java object type
|
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnectionasciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, bytesEqual, bytesHashCode, byteValue, characterStreamValue, compareBytes, dateValue, doubleValue, floatValue, getBytes, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClassfinalize, getClass, notify, notifyAll, toString, wait, wait, waitasciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, floatValue, getBytes, getConnection, getInternalConnection, getLength, getOracleConnection, getStream, intValue, longValue, setBytes, setPhysicalConnectionOf, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValuepublic oracle.jdbc.driver.OracleRef getTarget()
public java.lang.String getBaseTypeName()
throws java.sql.SQLException
getBaseTypeName in interface java.sql.Refjava.sql.SQLException - if a database access error occurspublic java.lang.Object getValue(java.util.Map map)
throws java.sql.SQLException
map - contains mapping of SQL type names to Java classesjava.sql.SQLExceptionpublic java.lang.Object getValue()
throws java.sql.SQLException
java.sql.SQLExceptionpublic STRUCT getSTRUCT() throws java.sql.SQLException
java.sql.SQLExceptionpublic void setValue(java.lang.Object value)
throws java.sql.SQLException
value - the value to be set.java.sql.SQLExceptionpublic OracleTypeMetaData getOracleMetaData() throws java.sql.SQLException
getOracleMetaData in interface OracleRefjava.sql.SQLException - if an error occurspublic StructDescriptor getDescriptor() throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getSQLTypeName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getObject(java.util.Map map)
throws java.sql.SQLException
getObject in interface java.sql.Refjava.sql.SQLExceptionpublic java.lang.Object getObject()
throws java.sql.SQLException
Ref object. If the connection's type map has an entry
for the structured type, the instance will be custom mapped to
the Java class indicated in the type map. Otherwise, the
structured type instance will be mapped to a Struct object.getObject in interface java.sql.RefObject that is the mapping for
the SQL structured type to which this Ref
object refersjava.sql.SQLException - if a database access error occurssetObject(java.lang.Object)public void setObject(java.lang.Object value)
throws java.sql.SQLException
Ref
object references to the given instance of Object.
The driver converts this to an SQL structured type when it
sends it to the database.setObject in interface java.sql.Refvalue - an Object representing the SQL
structured type instance that this
Ref object will referencejava.sql.SQLException - if a database access error occursgetObject(),
getObject(Map),
PreparedStatement.setObject(int, Object),
PreparedStatement#setObject(String, Object)public java.lang.Object toJdbc()
throws java.sql.SQLException
public java.lang.Object toJdbc(java.util.Map map)
throws java.sql.SQLException
map - connection type mapjava.sql.SQLExceptionpublic java.lang.Object toClass(java.lang.Class clazz,
java.util.Map map)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isConvertibleTo(java.lang.Class<?> jClass)
isConvertibleTo in interface oracle.jdbc.internal.OracleDatumWithConnectionisConvertibleTo in class DatumjClass - specifies the Java data type to test against.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
Datumpublic int hashCode()
hashCode in class java.lang.Objectpublic java.sql.Connection getJavaSqlConnection()
throws java.sql.SQLException
DatumWithConnectiongetJavaSqlConnection in interface oracle.jdbc.internal.OracleDatumWithConnectiongetJavaSqlConnection in class DatumWithConnectionjava.sql.SQLException - if an error occurs