Package oracle.sql
Class DatumWithConnection
java.lang.Object
oracle.sql.Datum
oracle.sql.DatumWithConnection
- All Implemented Interfaces:
Serializable,oracle.jdbc.internal.OracleDatumWithConnection
public abstract class DatumWithConnection
extends Datum
implements oracle.jdbc.internal.OracleDatumWithConnection
A supper class for some Oracle specific datatypes,
such as BFILE, BLOB, etc.
- See Also:
-
Field Summary
FieldsFields inherited from class oracle.sql.Datum
ojiOracleDatumWithConnection, targetDatum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertNotNull(Connection conn) static voidassertNotNull(TypeDescriptor desc) oracle.jdbc.driver.OracleConnectionDeprecated.since 9.0.0.protected oracle.jdbc.internal.OracleConnectionOracle extension Return the java.sql.Connection associated with the receiver.Oracle extension.Methods inherited from class oracle.sql.Datum
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, bytesEqual, bytesHashCode, byteValue, characterStreamValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, isConvertibleTo, isNull, longValue, makeJdbcArray, setBytes, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClass, toJdbcMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.jdbc.internal.OracleDatumWithConnection
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, floatValue, getBytes, getInternalConnection, getLength, getStream, intValue, isConvertibleTo, longValue, makeJdbcArray, setBytes, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue, toJdbc
-
Field Details
-
targetDatumWithConnection
-
-
Constructor Details
-
DatumWithConnection
- Throws:
SQLException
-
DatumWithConnection
public DatumWithConnection()
-
-
Method Details
-
assertNotNull
- Throws:
SQLException
-
assertNotNull
- Throws:
SQLException
-
getJavaSqlConnection
Oracle 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- Returns:
- the connection
- Throws:
SQLException- if an error occurs- Since:
- 9iR2
-
getOracleConnection
Oracle extension. The OracleConnection object associated with the object. If the internal connection is wrapped return the wrapping instance.- Specified by:
getOracleConnectionin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Returns:
- the possibly wrapped connection for external use
- Throws:
SQLException- if an error occurs- Since:
- 9.2
-
getConnection
Deprecated.since 9.0.0. UseorgetJavaSqlConnection(), or UsegetInternalConnection()instead.getOracleConnection()Oracle extension. Returns the oracle.jdbc.driver.OracleConnection object associated with the receiver. This is always a physical connection. Any logical connection or connection wrapper associated with the physical connection is ignored by this mehtod- Specified by:
getConnectionin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Returns:
- the connection if it is assignment compatible with oracle.jdbc.driver.OracleConnection
- Throws:
SQLException- if the connection is not assignment compatible
-
getConnectionDuringExceptionHandling
protected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()- Overrides:
getConnectionDuringExceptionHandlingin classDatum
-