Package oracle.sql
Class REF
java.lang.Object
oracle.sql.Datum
oracle.sql.DatumWithConnection
oracle.sql.REF
- All Implemented Interfaces:
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
Deprecated.
Use java.sql.Ref interface for declaration instead of using concrete class
oracle.sql.REF.
The REF class is a representation of the Oracle REF datatype,
and it implements the java.sql.Ref interface.
Use
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.- See Also:
-
Field Summary
FieldsFields inherited from class oracle.sql.DatumWithConnection
targetDatumWithConnectionFields inherited from class oracle.sql.Datum
ojiOracleDatumWithConnection, targetDatum -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.booleanDeprecated.Test any object for equality with an Datum.Deprecated.Implements the Ref interface method.Deprecated.Oracle extension.Deprecated.Oracle extension Return the java.sql.Connection associated with the receiver.Deprecated.JDBC 3.0 Retrieves the SQL structured type instance referenced by thisRefobject.Deprecated.Deprecated.Return the type data for this objectDeprecated.Oracle extension.Deprecated.Oracle extension.oracle.jdbc.driver.OracleRefDeprecated.getValue()Deprecated.Oracle extension.Deprecated.Oracle extension.inthashCode()Deprecated.booleanisConvertibleTo(Class<?> jClass) Deprecated.Test whether this data object can be converted to the specified Java data type.voidDeprecated.JDBC 3.0 Sets the structured type value that thisRefobject references to the given instance ofObject.voidDeprecated.Oracle extension.Deprecated.Returns the required object based on the class to which the SQL structured type is mapped to.toJdbc()Deprecated.Convert this data object into its default Java object type.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 typeMethods inherited from class oracle.sql.DatumWithConnection
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnectionMethods inherited from class oracle.sql.Datum
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, toClassMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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 Details
-
target
protected oracle.jdbc.driver.OracleRef targetDeprecated.
-
-
Method Details
-
getTarget
public oracle.jdbc.driver.OracleRef getTarget()Deprecated. -
getBaseTypeName
Deprecated.Implements the Ref interface method. Gets the fully-qualified SQL structured type name of the referenced item.- Specified by:
getBaseTypeNamein interfaceRef- Returns:
- fully-qualified SQL structured type name of the referenced item.
- Throws:
SQLException- if a database access error occurs
-
getValue
Deprecated.Oracle extension. Get referenced object. Use "map" for customized type mapping.- Specified by:
getValuein interfaceoracle.jdbc.internal.OracleRef- 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.
- Throws:
SQLException
-
getValue
Deprecated.Oracle extension. Get referenced object. Use the connection type map for customized type mapping.- Specified by:
getValuein interfaceoracle.jdbc.internal.OracleRef- Returns:
- the referenced object which can be a STRUCT or any java object defined in type map.
- Throws:
SQLException
-
getSTRUCT
Deprecated.Oracle extension. Get the referenced object as a STRUCT instance. Customized type mapping is ignored.- Specified by:
getSTRUCTin interfaceoracle.jdbc.internal.OracleRef- Throws:
SQLException
-
setValue
Deprecated.Oracle extension. Set REF value. The method updated the underly object value in database.- Specified by:
setValuein interfaceoracle.jdbc.internal.OracleRef- Parameters:
value- the value to be set.- Throws:
SQLException
-
getOracleMetaData
Deprecated.Return the type data for this object- Specified by:
getOracleMetaDatain interfaceOracleRef- Returns:
- type metadata
- Throws:
SQLException- if an error occurs- Since:
- 11.2.0.3.0
-
getDescriptor
Deprecated.Oracle extension. Return the type descriptor of the ADT type that this REF object points to.- Specified by:
getDescriptorin interfaceoracle.jdbc.internal.OracleRef- Throws:
SQLException
-
getSQLTypeName
Deprecated.Oracle extension. Return the type name of the ADT type that this REF object points to.- Specified by:
getSQLTypeNamein interfaceoracle.jdbc.internal.OracleRef- Throws:
SQLException
-
getObject
Deprecated.- Specified by:
getObjectin interfaceRef- Throws:
SQLException
-
getObject
Deprecated.JDBC 3.0 Retrieves the SQL structured type instance referenced by thisRefobject. 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 aStructobject.- Specified by:
getObjectin interfaceRef- Returns:
- a Java
Objectthat is the mapping for the SQL structured type to which thisRefobject refers - Throws:
SQLException- if a database access error occurs- Since:
- 9.0.2
- See Also:
-
setObject
Deprecated.JDBC 3.0 Sets the structured type value that thisRefobject references to the given instance ofObject. The driver converts this to an SQL structured type when it sends it to the database.- Specified by:
setObjectin interfaceRef- Parameters:
value- anObjectrepresenting the SQL structured type instance that thisRefobject will reference- Throws:
SQLException- if a database access error occurs- Since:
- 10R1
- See Also:
-
getObject()getObject(Map)PreparedStatement.setObject(int, Object)PreparedStatement#setObject(String, Object)
-
toJdbc
Deprecated.Convert this data object into its default Java object type.- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleRef- Specified by:
toJdbcin classDatum- Returns:
- this object.
- Throws:
SQLException- if any of the lower layer code throws an exception.
-
toJdbc
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- Parameters:
map- connection type map- Returns:
- jdbcObject
- Throws:
SQLException
-
toClass
Deprecated.Returns the required object based on the class to which the SQL structured type is mapped to.- Throws:
SQLException
-
isConvertibleTo
Deprecated.Test whether this data object can be converted to the specified Java data type.- Specified by:
isConvertibleToin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Specified by:
isConvertibleToin interfaceoracle.jdbc.internal.OracleRef- Specified by:
isConvertibleToin classDatum- 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.
-
clone
Deprecated.- Specified by:
clonein interfaceoracle.jdbc.internal.OracleRef- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
equals
Deprecated.Description copied from class:DatumTest any object for equality with an Datum. Datums are equal if they are of the same class and their bytes are the same. -
hashCode
public int hashCode()Deprecated. -
getJavaSqlConnection
Deprecated.Description copied from class:DatumWithConnectionOracle extension Return the java.sql.Connection associated with the receiver. Since 9.0.0 not all Oracle JDBC connection objects are assignment compatible with oracle.jdbc.driver.OracleConnection. If the connection is wrapped, return the outermost wrapper.- Specified by:
getJavaSqlConnectionin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Overrides:
getJavaSqlConnectionin classDatumWithConnection- Returns:
- the connection
- Throws:
SQLException- if an error occurs
-