public class OPAQUE extends DatumWithConnection implements oracle.jdbc.internal.OracleOpaque
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(...);
OracleOpaque,
Serialized Form| Constructor and Description |
|---|
OPAQUE(OpaqueDescriptor type,
Connection conn,
Object value)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytesValue()
Deprecated.
Return a byte array that represents the attributes into the format
that is actually used in the database.
|
OpaqueDescriptor |
getDescriptor()
Deprecated.
Oracle extension.
|
Connection |
getJavaSqlConnection()
Deprecated.
Oracle extension
Return the java.sql.Connection associated with the
receiver.
|
OracleTypeMetaData |
getOracleMetaData()
Deprecated.
Return the type data for this object
|
String |
getSQLTypeName()
Deprecated.
Implements the Struct interface function
Retrieves the SQL type name of the SQL structured type
that this
Struct object represents. |
Object |
getValue()
Deprecated.
Return the Opaque value.
|
boolean |
isConvertibleTo(Class jClass)
Deprecated.
Determines if datum object can be converted to a particular class
|
String |
stringValue()
Deprecated.
Convert to a String representation of the datum object
|
Object |
toJdbc()
Deprecated.
Returns the JDBC representation of the datum object
|
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnectionasciiStreamValue, 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, timeValueclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, floatValue, getBytes, getConnection, getInternalConnection, getLength, getOracleConnection, getStream, intValue, longValue, setBytes, setPhysicalConnectionOf, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValuepublic OPAQUE(OpaqueDescriptor type, Connection conn, Object value) throws SQLException
type - the SQLStructType used to convert the type toattributes - the array specifying the attributes to be
converted to raw bytes.SQLExceptionoracle.sql.SQLStructTypepublic String getSQLTypeName() throws SQLException
Struct object represents.getSQLTypeName in interface OracleOpaqueStruct object
is the generic representationSQLException - if a database access error occurspublic String stringValue() throws SQLException
DatumstringValue in interface oracle.jdbc.internal.OracleDatumWithConnectionstringValue in class DatumSQLExceptionpublic OracleTypeMetaData getOracleMetaData() throws SQLException
getOracleMetaData in interface OracleOpaqueSQLException - if an error occurspublic OpaqueDescriptor getDescriptor() throws SQLException
SQLExceptionpublic Object getValue() throws SQLException
getValue in interface OracleOpaqueSQLExceptionpublic byte[] getBytesValue()
throws SQLException
SQLExceptionpublic boolean isConvertibleTo(Class jClass)
isConvertibleTo in interface oracle.jdbc.internal.OracleDatumWithConnectionisConvertibleTo in class Datumcls - Class to convert topublic Object toJdbc() throws SQLException
toJdbc in interface oracle.jdbc.internal.OracleDatumWithConnectiontoJdbc in class DatumSQLException - if conversion to JDBC representation results in
an errorpublic Connection getJavaSqlConnection() throws SQLException
DatumWithConnectiongetJavaSqlConnection in interface oracle.jdbc.internal.OracleDatumWithConnectiongetJavaSqlConnection in class DatumWithConnectionSQLException - if an error occurs