Serializable
, Cloneable
, Ref
, oracle.jdbc.internal.ACProxyable
, oracle.jdbc.internal.OracleConcreteProxy
, oracle.jdbc.internal.OracleDatumWithConnection
, oracle.jdbc.internal.OracleRef
, OracleRef
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 FormModifier and Type | Field | Description |
---|---|---|
protected oracle.jdbc.driver.OracleRef |
target |
Deprecated.
|
ojiOracleDatumWithConnection, targetDatum
targetDatumWithConnection
Modifier and Type | Method | 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
|
asciiStreamValue, 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, toClass
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnection
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asciiStreamValue, 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, timeValue
public oracle.jdbc.driver.OracleRef getTarget()
public String getBaseTypeName() throws SQLException
getBaseTypeName
in interface Ref
SQLException
- if a database access error occurspublic Object getValue(Map map) throws SQLException
getValue
in interface oracle.jdbc.internal.OracleRef
map
- contains mapping of SQL type names to Java classesSQLException
public Object getValue() throws SQLException
getValue
in interface oracle.jdbc.internal.OracleRef
SQLException
public STRUCT getSTRUCT() throws SQLException
getSTRUCT
in interface oracle.jdbc.internal.OracleRef
SQLException
public void setValue(Object value) throws SQLException
setValue
in interface oracle.jdbc.internal.OracleRef
value
- the value to be set.SQLException
public OracleTypeMetaData getOracleMetaData() throws SQLException
getOracleMetaData
in interface OracleRef
SQLException
- if an error occurspublic StructDescriptor getDescriptor() throws SQLException
getDescriptor
in interface oracle.jdbc.internal.OracleRef
SQLException
public String getSQLTypeName() throws SQLException
getSQLTypeName
in interface oracle.jdbc.internal.OracleRef
SQLException
public Object getObject(Map map) throws SQLException
getObject
in interface Ref
SQLException
public 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 Ref
Object
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 Ref
value
- 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.OracleDatumWithConnection
toJdbc
in interface oracle.jdbc.internal.OracleRef
toJdbc
in class Datum
SQLException
- if any of the lower layer code throws an exception.public Object toJdbc(Map map) throws SQLException
map
- connection type mapSQLException
public Object toClass(Class clazz, Map map) throws SQLException
SQLException
public boolean isConvertibleTo(Class jClass)
isConvertibleTo
in interface oracle.jdbc.internal.OracleDatumWithConnection
isConvertibleTo
in interface oracle.jdbc.internal.OracleRef
isConvertibleTo
in class Datum
jClass
- specifies the Java data type to test against.public Object clone() throws CloneNotSupportedException
clone
in interface oracle.jdbc.internal.OracleRef
clone
in class Object
CloneNotSupportedException
public boolean equals(Object obj)
Datum
public int hashCode()
public Connection getJavaSqlConnection() throws SQLException
DatumWithConnection
getJavaSqlConnection
in interface oracle.jdbc.internal.OracleDatumWithConnection
getJavaSqlConnection
in class DatumWithConnection
SQLException
- if an error occurs