Skip navigation links

Oracle® Database JDBC Java API Reference
11g Release 2 ("11.2.0.0.1-Beta-1")
BETA
E13995-01


oracle.sql
Interface ORADataFactory


public interface ORADataFactory

ORAData factory interface.

This interface complements ORAData. It is passed to getORAData() to create customized ORAData objects. The following example shows the typical use of this interface:

  EmpFactory factory = new EmpFactory();
  OracleResultSet rs = ... ;
  Emp m = (Emp) rs.getORAData(column, factory);
  ...
  

This interface is the replacement of the old CustomDatumFactory interface that has been deprecated in the Oracle 9i release.

Since:
9iBeta
See Also:
oracle.jdbc.ORAData, oracle.jdbc.PreparedStatement, SQLData

Method Summary
 ORAData create(Datum d, int sqlType)
          Create an ORAData from a oralce.sql.Datum

 

Method Detail

create

ORAData create(Datum d,
               int sqlType)
               throws java.sql.SQLException
Create an ORAData from a oralce.sql.Datum

This method creates the customized ORAData from a Datum. Sometimes, it is convenient to have the same class implement both ORAData and ORADataFactory.

Parameters:
d - The Datum to be used to initialize the Object being created.
sqlType - The SQL type of the specified Datum.
Returns:
an Object that embeds information from d.
Throws:
java.sql.SQLException - if an error occurred.

Skip navigation links

Oracle® Database JDBC Java API Reference
11g Release 2 ("11.2.0.0.1-Beta-1")
BETA
E13995-01


Copyright © 2009, Oracle and/or its affiliates. All rights reserved.
ORACLE CONFIDENTIAL
For authorized use only.
Do not distribute to third parties.