|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.sql.Datum oracle.sql.DatumWithConnection oracle.sql.REF
public class REF
The REF class is a representation of the Oracle REF datatype, and it implements the java.sql.Ref interface.
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static boolean |
TRACE
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
Test any object for equality with an Datum. |
java.lang.String |
getBaseTypeName()
Implements the Ref interface method. |
StructDescriptor |
getDescriptor()
Oracle extension. |
java.sql.Connection |
getJavaSqlConnection()
Oracle extension Return the java.sql.Connection associated with the receiver. |
java.lang.Object |
getObject()
JDBC 3.0 Retrieves the SQL structured type instance referenced by this Ref object. |
java.lang.Object |
getObject(java.util.Map map)
|
OracleTypeMetaData |
getOracleMetaData()
Return the type data for this object |
java.lang.String |
getSQLTypeName()
Oracle extension. |
STRUCT |
getSTRUCT()
Oracle extension. |
java.lang.Object |
getValue()
Oracle extension. |
java.lang.Object |
getValue(java.util.Map map)
Oracle extension. |
int |
hashCode()
|
boolean |
isConvertibleTo(java.lang.Class jClass)
Test whether this data object can be converted to the specified Java data type. |
void |
setObject(java.lang.Object value)
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)
Oracle extension. |
java.lang.Object |
toJdbc()
Convert this data object into its default Java object type. |
Methods inherited from class oracle.sql.DatumWithConnection |
---|
assertNotNull, assertNotNull, getConnection, getOracleConnection |
Methods inherited from class oracle.sql.Datum |
---|
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, floatValue, getBytes, getLength, getStream, intValue, longValue, setBytes, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jdbc.internal.OracleDatumWithConnection |
---|
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 |
Field Detail |
---|
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Method Detail |
---|
public java.lang.String getBaseTypeName() throws java.sql.SQLException
getBaseTypeName
in interface java.sql.Ref
java.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 classes
java.sql.SQLException
public java.lang.Object getValue() throws java.sql.SQLException
java.sql.SQLException
public STRUCT getSTRUCT() throws java.sql.SQLException
java.sql.SQLException
public void setValue(java.lang.Object value) throws java.sql.SQLException
value
- the value to be set.
java.sql.SQLException
public OracleTypeMetaData getOracleMetaData() throws java.sql.SQLException
getOracleMetaData
in interface OracleRef
java.sql.SQLException
- if an error occurspublic StructDescriptor getDescriptor() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getSQLTypeName() throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object getObject(java.util.Map map) throws java.sql.SQLException
getObject
in interface java.sql.Ref
java.sql.SQLException
public 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.Ref
Object
that is the mapping for
the SQL structured type to which this Ref
object refers
java.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.Ref
value
- an Object
representing the SQL
structured type instance that this
Ref
object will reference
java.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
toJdbc
in interface oracle.jdbc.internal.OracleDatumWithConnection
toJdbc
in class Datum
java.sql.SQLException
- if any of the lower layer code throws an exception.public boolean isConvertibleTo(java.lang.Class jClass)
isConvertibleTo
in interface oracle.jdbc.internal.OracleDatumWithConnection
isConvertibleTo
in class Datum
jClass
- specifies the Java data type to test against.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
Datum
equals
in class Datum
obj
- object to compare this
with
this
is the same as the class of
obj
and the byte representation of this
is the
same as the byte representation of obj
.public int hashCode()
hashCode
in class java.lang.Object
public java.sql.Connection getJavaSqlConnection() throws java.sql.SQLException
DatumWithConnection
getJavaSqlConnection
in interface oracle.jdbc.internal.OracleDatumWithConnection
getJavaSqlConnection
in class DatumWithConnection
java.sql.SQLException
- if an error occurs
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |