public interface OracleDataFactory
This interface complements OracleData. It is passed to getObject() to create customized OracleData objects. The following example shows the typical use of this interface:
EmpFactory factory = new EmpFactory(); OracleResultSet rs = ... ; Emp m = (Emp) rs.getObject(column, factory); ...
This interface is the replacement of the ORADataFactory
Modifier and Type | Method | Description |
---|---|---|
OracleData |
create(Object jdbcValue, int sqlType) |
Create an OracleData from a jdbc Object
|
OracleData create(Object jdbcValue, int sqlType) throws SQLException
This method creates the customized OracleData from a jdbc Object. Sometimes, it is convenient to have the same class implement both OracleData and OracleDataFactory.
jdbcValue
- The jdbc Object to be used to initialize the Object being created.sqlType
- The SQL type of the specified Datum.SQLException
- if an error occurred.