|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.sql.Datum oracle.sql.DatumWithConnection oracle.sql.OPAQUE
public class OPAQUE
A class for opaque data type.
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static boolean |
TRACE
|
Constructor Summary | |
---|---|
OPAQUE(OpaqueDescriptor type,
java.sql.Connection conn,
java.lang.Object value)
Constructor. |
Method Summary | |
---|---|
byte[] |
getBytesValue()
Return a byte array that represents the attributes into the format that is actually used in the database. |
OpaqueDescriptor |
getDescriptor()
Oracle extension. |
java.sql.Connection |
getJavaSqlConnection()
Oracle extension Return the java.sql.Connection associated with the receiver. |
OracleTypeMetaData |
getOracleMetaData()
Return the type data for this object |
java.lang.String |
getSQLTypeName()
Implements the Struct interface function Retrieves the SQL type name of the SQL structured type that this Struct object represents. |
java.lang.Object |
getValue()
Return the Opaque value. |
boolean |
isConvertibleTo(java.lang.Class jClass)
Determines if datum object can be converted to a particular class |
java.lang.String |
stringValue()
Convert to a String representation of the datum object |
java.lang.Object |
toJdbc()
Returns the JDBC representation of the datum object |
Methods inherited from class oracle.sql.DatumWithConnection |
---|
assertNotNull, assertNotNull, getConnection, getOracleConnection |
Methods inherited from class oracle.sql.Datum |
---|
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods 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 |
Field Detail |
---|
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Constructor Detail |
---|
public 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.SQLException
oracle.sql.SQLStructType
Method Detail |
---|
public java.lang.String getSQLTypeName() throws java.sql.SQLException
Struct
object represents.
getSQLTypeName
in interface OracleOpaque
java.sql.SQLException
- if a database access error occurspublic java.lang.String stringValue() throws java.sql.SQLException
Datum
stringValue
in interface oracle.jdbc.internal.OracleDatumWithConnection
stringValue
in class Datum
java.sql.SQLException
public OracleTypeMetaData getOracleMetaData() throws java.sql.SQLException
getOracleMetaData
in interface OracleOpaque
java.sql.SQLException
- if an error occurspublic OpaqueDescriptor getDescriptor() throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object getValue() throws java.sql.SQLException
getValue
in interface OracleOpaque
java.sql.SQLException
public byte[] getBytesValue() throws java.sql.SQLException
java.sql.SQLException
public boolean isConvertibleTo(java.lang.Class jClass)
isConvertibleTo
in interface oracle.jdbc.internal.OracleDatumWithConnection
isConvertibleTo
in class Datum
cls
- Class to convert to
public java.lang.Object toJdbc() throws java.sql.SQLException
toJdbc
in interface oracle.jdbc.internal.OracleDatumWithConnection
toJdbc
in class Datum
java.sql.SQLException
- if conversion to JDBC representation results in
an errorpublic java.sql.Connection getJavaSqlConnection() throws java.sql.SQLException
DatumWithConnection
getJavaSqlConnection
in interface oracle.jdbc.internal.OracleDatumWithConnection
getJavaSqlConnection
in class DatumWithConnection
java.sql.SQLException
- if an error occurs
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |