1、- 1 - 外文原文 Understanding the ORAData Interface One of the choices in making an Oracle object and its attribute data available to Java applications is to create a custom object class that implements the oracle.sql.ORAData and oracle.sql.ORADataFactory interfaces (or you can implement ORADataFactory i
2、n a separate class). The ORAData and ORADataFactory interfaces are supplied by Oracle and are not a part of the JDBC standard. Understanding ORAData Features The ORAData interface has these advantages: ? It recognizes Oracle extensions to the JDBC; ORAData uses oracle.sql.Datum types directly. ? It
3、does not require a type map to specify the names of the Java custom classes you want to create. ? It provides better performance: ORAData works directly with Datum types, the internal format the driver uses to hold Oracle objects. The ORAData and ORADataFactory interfaces do the following: ? The toD
4、atum() method of the ORAData class transforms the data into an oracle.sql.* representation. ? ORADataFactory specifies a create() method equivalent to a constructor for your custom object class. It creates and returns a ORAData instance. The JDBC driver uses the create() method to return an instance of the custom object class to your Java application or applet. It takes as input an oracle.sql.Datum object and an integer indicating the corresponding SQL typecode as specified in the OracleTypes cl