|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
oracle.jdbc.ORAData
, oracle.jdbc.PreparedStatement
, SQLData
Method Summary | |
---|---|
ORAData |
create(Datum d, int sqlType) Create an ORAData from a oracle.sql.Datum |
Method Detail |
---|
ORAData create(Datum d, int sqlType) throws SQLException
This method creates the customized ORAData from a Datum. Sometimes, it is convenient to have the same class implement both ORAData and ORADataFactory.
d
- The Datum to be used to initialize the Object being created.sqlType
- The SQL type of the specified Datum.SQLException
- if an error occurred.
|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |