Package oracle.sql
Class OPAQUE
java.lang.Object
oracle.sql.Datum
oracle.sql.DatumWithConnection
oracle.sql.OPAQUE
- All Implemented Interfaces:
Serializable,oracle.jdbc.internal.ACProxyable,oracle.jdbc.internal.OracleDatumWithConnection,oracle.jdbc.internal.OracleOpaque,OracleOpaque
Deprecated.
Use oracle.jdbc.OracleOpaque interface for declaration instead of using
concrete class oracle.sql.OPAQUE.
A class for opaque data type.
Use
OracleOpaque interface for declaration instead of using
concrete class oracle.sql.OPAQUE. oracle.jdbc.OracleOpaque has methods
declared for all opertions.
Obtaining an OracleOpaque from OracleResultSet
oracle.jdbc.OracleOpaque opaque = ((OracleResultSet)resultSet).getOPAQUE(...);
- Since:
- 8.2
- See Also:
-
Field Summary
Fields inherited from class oracle.sql.DatumWithConnection
targetDatumWithConnectionFields inherited from class oracle.sql.Datum
ojiOracleDatumWithConnection, targetDatum -
Constructor Summary
ConstructorsConstructorDescriptionOPAQUE(OpaqueDescriptor type, Connection conn, Object value) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Deprecated.Return a byte array that represents the attributes into the format that is actually used in the database.Deprecated.Oracle extension.Deprecated.Oracle extension Return the java.sql.Connection associated with the receiver.Deprecated.Return the type data for this objectDeprecated.Implements the Struct interface function Retrieves the SQL type name of the SQL structured type that thisStructobject represents.getValue()Deprecated.Return the Opaque value.booleanisConvertibleTo(Class<?> jClass) Deprecated.Determines if datum object can be converted to a particular classDeprecated.Convert to a String representation of the datum objecttoJdbc()Deprecated.Returns the JDBC representation of the datum objectMethods 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, equals, floatValue, getBytes, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValueMethods 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, getConnection, getInternalConnection, getLength, getOracleConnection, getStream, intValue, longValue, setBytes, setPhysicalConnectionOf, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue
-
Constructor Details
-
OPAQUE
Deprecated.Constructor. The raw bytes are computed at this time or a copy of attributes is made. In any event the caller is free to modify the array without affecting the values held in the OPAQUE.- Parameters:
type- the SQLStructType used to convert the type toattributes- the array specifying the attributes to be converted to raw bytes.- Throws:
SQLException- See Also:
-
oracle.sql.SQLStructType
-
-
Method Details
-
getSQLTypeName
Deprecated.Implements the Struct interface function Retrieves the SQL type name of the SQL structured type that thisStructobject represents.- Specified by:
getSQLTypeNamein interfaceOracleOpaque- Returns:
- the fully-qualified type name of the SQL structured
type for which this
Structobject is the generic representation - Throws:
SQLException- if a database access error occurs
-
stringValue
Deprecated.Description copied from class:DatumConvert to a String representation of the datum object- Specified by:
stringValuein interfaceoracle.jdbc.internal.OracleDatumWithConnection- Overrides:
stringValuein classDatum- Returns:
- String representation of the datum object
- Throws:
SQLException
-
getOracleMetaData
Deprecated.Return the type data for this object- Specified by:
getOracleMetaDatain interfaceOracleOpaque- Returns:
- type metadata
- Throws:
SQLException- if an error occurs- Since:
- 11.2.0.3.0
-
getDescriptor
Deprecated.Oracle extension. Return the OpaqueDescriptor object that contains the type information.- Specified by:
getDescriptorin interfaceoracle.jdbc.internal.OracleOpaque- Returns:
- the type descriptor
- Throws:
SQLException
-
getValue
Deprecated.Return the Opaque value.- Specified by:
getValuein interfaceOracleOpaque- Returns:
- a Java object that represents the opaque value
- Throws:
SQLException
-
getBytesValue
Deprecated.Return a byte array that represents the attributes into the format that is actually used in the database.- Specified by:
getBytesValuein interfaceoracle.jdbc.internal.OracleOpaque- Returns:
- a byte array that represents the opaque value
- Throws:
SQLException
-
isConvertibleTo
Deprecated.Determines if datum object can be converted to a particular class- Specified by:
isConvertibleToin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Specified by:
isConvertibleToin interfaceoracle.jdbc.internal.OracleOpaque- Specified by:
isConvertibleToin classDatum- Parameters:
cls- Class to convert to- Returns:
- true, if conversion to cls is permitted false, if conversion to cls is not permitted
-
toJdbc
Deprecated.Returns the JDBC representation of the datum object- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleOpaque- Specified by:
toJdbcin classDatum- Returns:
- an object containing the JDBC value
- Throws:
SQLException- if conversion to JDBC representation results in an error
-
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- Specified by:
getJavaSqlConnectionin interfaceoracle.jdbc.internal.OracleOpaque- Overrides:
getJavaSqlConnectionin classDatumWithConnection- Returns:
- the connection
- Throws:
SQLException- if an error occurs
-