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 FormtargetDatumWithConnectionojiOracleDatumWithConnection, targetDatum| Constructor and Description |
|---|
OPAQUE(OpaqueDescriptor type,
java.sql.Connection conn,
java.lang.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.
|
java.sql.Connection |
getJavaSqlConnection()
Deprecated.
Oracle extension
Return the java.sql.Connection associated with the
receiver.
|
OracleTypeMetaData |
getOracleMetaData()
Deprecated.
Return the type data for this object
|
java.lang.String |
getSQLTypeName()
Deprecated.
Implements the Struct interface function
Retrieves the SQL type name of the SQL structured type
that this
Struct object represents. |
java.lang.Object |
getValue()
Deprecated.
Return the Opaque value.
|
boolean |
isConvertibleTo(java.lang.Class<?> jClass)
Deprecated.
Determines if datum object can be converted to a particular class
|
java.lang.String |
stringValue()
Deprecated.
Convert to a String representation of the datum object
|
java.lang.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, java.sql.Connection conn, java.lang.Object value) throws java.sql.SQLException
type - the SQLStructType used to convert the type toattributes - the array specifying the attributes to be
converted to raw bytes.java.sql.SQLExceptionoracle.sql.SQLStructTypepublic java.lang.String getSQLTypeName()
throws java.sql.SQLException
Struct object represents.getSQLTypeName in interface OracleOpaqueStruct object
is the generic representationjava.sql.SQLException - if a database access error occurspublic java.lang.String stringValue()
throws java.sql.SQLException
DatumstringValue in interface oracle.jdbc.internal.OracleDatumWithConnectionstringValue in class Datumjava.sql.SQLExceptionpublic OracleTypeMetaData getOracleMetaData() throws java.sql.SQLException
getOracleMetaData in interface OracleOpaquejava.sql.SQLException - if an error occurspublic OpaqueDescriptor getDescriptor() throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getValue()
throws java.sql.SQLException
getValue in interface OracleOpaquejava.sql.SQLExceptionpublic byte[] getBytesValue()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isConvertibleTo(java.lang.Class<?> jClass)
isConvertibleTo in interface oracle.jdbc.internal.OracleDatumWithConnectionisConvertibleTo in class Datumcls - Class to convert topublic java.lang.Object toJdbc()
throws java.sql.SQLException
public java.sql.Connection getJavaSqlConnection()
throws java.sql.SQLException
DatumWithConnectiongetJavaSqlConnection in interface oracle.jdbc.internal.OracleDatumWithConnectiongetJavaSqlConnection in class DatumWithConnectionjava.sql.SQLException - if an error occurs