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 FormConstructor 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, getOracleConnection
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, timeValue
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public 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.SQLException
oracle.sql.SQLStructType
public String getSQLTypeName() throws SQLException
Struct
object represents.getSQLTypeName
in interface OracleOpaque
Struct
object
is the generic representationSQLException
- if a database access error occurspublic String stringValue() throws SQLException
Datum
stringValue
in interface oracle.jdbc.internal.OracleDatumWithConnection
stringValue
in class Datum
SQLException
public OracleTypeMetaData getOracleMetaData() throws SQLException
getOracleMetaData
in interface OracleOpaque
SQLException
- if an error occurspublic OpaqueDescriptor getDescriptor() throws SQLException
SQLException
public Object getValue() throws SQLException
getValue
in interface OracleOpaque
SQLException
public byte[] getBytesValue() throws SQLException
SQLException
public boolean isConvertibleTo(Class jClass)
isConvertibleTo
in interface oracle.jdbc.internal.OracleDatumWithConnection
isConvertibleTo
in class Datum
cls
- Class to convert topublic Object toJdbc() throws SQLException
toJdbc
in interface oracle.jdbc.internal.OracleDatumWithConnection
toJdbc
in class Datum
SQLException
- if conversion to JDBC representation results in
an errorpublic Connection getJavaSqlConnection() throws SQLException
DatumWithConnection
getJavaSqlConnection
in interface oracle.jdbc.internal.OracleDatumWithConnection
getJavaSqlConnection
in class DatumWithConnection
SQLException
- if an error occurs