KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > in > co > daffodil > db > jdbc > DaffodilDBStruct


1 package in.co.daffodil.db.jdbc;
2
3 import java.sql.*;
4 import com.daffodilwoods.database.resource.*;
5
6 public class DaffodilDBStruct implements Struct
7 {
8
9    /**
10     * @todo
11     * implement all methods
12     */

13    public DaffodilDBStruct()
14    {
15    }
16
17    /**
18    * Retrieves the SQL type name of the SQL structured type
19    * that this <code>Struct</code> object represents.
20    *
21    * @return the fully-qualified type name of the SQL structured
22    * type for which this <code>Struct</code> object
23    * is the generic representation
24    * @exception SQLException if a database access error occurs
25    */

26   public String JavaDoc getSQLTypeName() throws SQLException{
27     return null;
28   }
29
30   /**
31    * Produces the ordered values of the attributes of the SQL
32    * structurec type that this <code>Struct</code> object represents.
33    * This method uses the type map associated with the
34    * connection for customizations of the type mappings.
35    * If there is no
36    * entry in the connection's type map that matches the structured
37    * type that this <code>Struct</code> object represents,
38    * the driver uses the standard mapping.
39    * <p>
40    * Conceptually, this method calls the method
41    * <code>getObject</code> on each attribute
42    * of the structured type and returns a Java array containing
43    * the result.
44    *
45    * @return an array containing the ordered attribute values
46    * @exception SQLException if a database access error occurs
47    */

48   public Object JavaDoc[] getAttributes() throws SQLException{
49     return null;
50   }
51
52   /**
53    * Produces the ordered values of the attributes of the SQL
54    * structurec type that this <code>Struct</code> object represents.
55    * This method uses the given type map
56    * for customizations of the type mappings.
57    * If there is no
58    * entry in the given type map that matches the structured
59    * type that this <code>Struct</code> object represents,
60    * the driver uses the standard mapping. This method never
61    * uses the type map associated with the connection.
62    * <p>
63    * Conceptually, this method calls the method
64    * <code>getObject</code> on each attribute
65    * of the structured type and returns a Java array containing
66    * the result.
67    *
68    * @param map a mapping of SQL type names to Java classes
69    * @return an array containing the ordered attribute values
70    * @exception SQLException if a database access error occurs
71    */

72   public Object JavaDoc[] getAttributes(java.util.Map JavaDoc map) throws SQLException{
73      return null;
74   }
75
76 }
77
Popular Tags