All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface oracle.sql.CustomDatumFactory

public interface CustomDatumFactory

Method Index

 o create(Datum, int)
create an Object from SQL Type and return it.

Methods

 o create
 public abstract CustomDatum create(Datum d,
                                    int sqlType) throws SQLException
create an Object from SQL Type and return it. It is sometimes convenient to have the same class implement both CustomDatum and CustomDatumFactory, but normally they are distinct.

sqlType should really be a class of some sort, but introducing such a class would go well beyond the current state of JDBC and so for the moment we just provide the type code. Note that for named types (such as SQL Object types) the name can be determined from the Datum.

Parameters:
d - some SQL data that should be used to initialize an Object.
sqlType - the SQL type that the
Returns:
an Object that embeds information from d.

All Packages  Class Hierarchy  This Package  Previous  Next  Index