public class REF extends DatumWithConnection implements oracle.jdbc.internal.OracleRef, Serializable, 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 |
|---|---|
Object |
clone()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
Test any object for equality with an Datum.
|
String |
getBaseTypeName()
Deprecated.
Implements the Ref interface method.
|
StructDescriptor |
getDescriptor()
Deprecated.
Oracle extension.
|
Connection |
getJavaSqlConnection()
Deprecated.
Oracle extension Return the java.sql.Connection associated with the receiver.
|
Object |
getObject()
Deprecated.
JDBC 3.0 Retrieves the SQL structured type instance referenced by this
Ref object. |
Object |
getObject(Map map)
Deprecated.
|
OracleTypeMetaData |
getOracleMetaData()
Deprecated.
Return the type data for this object
|
String |
getSQLTypeName()
Deprecated.
Oracle extension.
|
STRUCT |
getSTRUCT()
Deprecated.
Oracle extension.
|
oracle.jdbc.driver.OracleRef |
getTarget()
Deprecated.
|
Object |
getValue()
Deprecated.
Oracle extension.
|
Object |
getValue(Map map)
Deprecated.
Oracle extension.
|
int |
hashCode()
Deprecated.
|
boolean |
isConvertibleTo(Class jClass)
Deprecated.
Test whether this data object can be converted to the specified Java data type.
|
void |
setObject(Object value)
Deprecated.
JDBC 3.0 Sets the structured type value that this
Ref object references to the given instance of Object. |
void |
setValue(Object value)
Deprecated.
Oracle extension.
|
Object |
toClass(Class clazz, Map map)
Deprecated.
Returns the required object based on the class to which the SQL structured type is mapped to.
|
Object |
toJdbc()
Deprecated.
Convert this data object into its default Java object type.
|
Object |
toJdbc(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 String getBaseTypeName() throws SQLException
getBaseTypeName in interface RefSQLException - if a database access error occurspublic Object getValue(Map map) throws SQLException
map - contains mapping of SQL type names to Java classesSQLExceptionpublic Object getValue() throws SQLException
SQLExceptionpublic STRUCT getSTRUCT() throws SQLException
SQLExceptionpublic void setValue(Object value) throws SQLException
value - the value to be set.SQLExceptionpublic OracleTypeMetaData getOracleMetaData() throws SQLException
getOracleMetaData in interface OracleRefSQLException - if an error occurspublic StructDescriptor getDescriptor() throws SQLException
SQLExceptionpublic String getSQLTypeName() throws SQLException
SQLExceptionpublic Object getObject(Map map) throws SQLException
getObject in interface RefSQLExceptionpublic Object getObject() throws 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 RefObject that is the mapping for the SQL structured type to which this Ref object refersSQLException - if a database access error occurssetObject(java.lang.Object)public void setObject(Object value) throws 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 Refvalue - an Object representing the SQL structured type instance that this Ref object will referenceSQLException - if a database access error occursgetObject(), getObject(Map), PreparedStatement.setObject(int, Object), PreparedStatement#setObject(String, Object)public Object toJdbc() throws SQLException
toJdbc in interface oracle.jdbc.internal.OracleDatumWithConnectiontoJdbc in class DatumSQLException - if any of the lower layer code throws an exception.public Object toJdbc(Map map) throws SQLException
map - connection type mapSQLExceptionpublic Object toClass(Class clazz, Map map) throws SQLException
SQLExceptionpublic boolean isConvertibleTo(Class jClass)
isConvertibleTo in interface oracle.jdbc.internal.OracleDatumWithConnectionisConvertibleTo in class DatumjClass - specifies the Java data type to test against.public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean equals(Object obj)
Datumpublic Connection getJavaSqlConnection() throws SQLException
DatumWithConnectiongetJavaSqlConnection in interface oracle.jdbc.internal.OracleDatumWithConnectiongetJavaSqlConnection in class DatumWithConnectionSQLException - if an error occurs