Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

oracle.jdbc
Interface OracleData

All Known Implementing Classes:
ANYDATA, ArrayDescriptor, OpaqueDescriptor, StructDescriptor, TypeDescriptor

public interface OracleData


Method Summary
 java.lang.Object toJDBCObject(java.sql.Connection conn)
          Extract a jdbc Object.
 

Method Detail

toJDBCObject

java.lang.Object toJDBCObject(java.sql.Connection conn)
                              throws java.sql.SQLException
Extract a jdbc Object.

This method is invoked by setObject() to extract the jdbc Object. The implementation must return the jdbc Object that correctly represents the underlying SQLType.

Although most implementation will ignore the connection, it is ocassionally needed. for example, if the class embeds CHAR attributes, connection may be needed to determine the database character set.

Parameters:
conn - The connection into which the value is being sent.
Returns:
a jdbc Object contianing the value to be sent into the connection.
Throws:
java.sql.SQLException - if an error occurred.

Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

Copyright © 1998, 2007, Oracle. All rights reserved.