74 * mapped to the fields of a class in the Java programming language.
75 */
76 private int idx;
77
78 /**
79 * The array of attributes to be read from this stream. The order
80 * of the attributes is the same as the order in which they were
81 * listed in the SQL definition of the UDT.
82 */
83 private Object attrib[];
84
85 /**
86 * The type map to use when the method <code>readObject</code>
87 * is invoked. This is a <code>java.util.Map</code> object in which
88 * there may be zero or more entries. Each entry consists of the
89 * fully qualified name of a UDT (the value to be mapped) and the
90 * <code>Class</code> object for a class that implements
91 * <code>SQLData</code> (the Java class that defines how the UDT
92 * will be mapped).
93 */
94 private Map map;
95
96
97 /**
98 * Creates an <code>SQLInputImpl</code> object initialized with the
99 * given array of attributes and the given type map. If any of the
100 * attributes is a UDT whose name is in an entry in the type map,
101 * the attribute will be mapped according to the corresponding
102 * <code>SQLData</code> implementation.
103 *
104 * @param attributes an array of <code>Object</code> instances in which
105 * each element is an attribute of a UDT. The order of the
106 * attributes in the array is the same order in which
107 * the attributes were defined in the UDT definition.
108 * @param map a <code>java.util.Map</code> object containing zero or more
109 * entries, with each entry consisting of 1) a <code>String</code>
110 * giving the fully
111 * qualified name of the UDT and 2) the <code>Class</code> object
112 * for the <code>SQLData</code> implementation that defines how
113 * the UDT is to be mapped
114 * @throws SQLException if the <code>attributes</code> or the <code>map</code>
|
74 * mapped to the fields of a class in the Java programming language.
75 */
76 private int idx;
77
78 /**
79 * The array of attributes to be read from this stream. The order
80 * of the attributes is the same as the order in which they were
81 * listed in the SQL definition of the UDT.
82 */
83 private Object attrib[];
84
85 /**
86 * The type map to use when the method <code>readObject</code>
87 * is invoked. This is a <code>java.util.Map</code> object in which
88 * there may be zero or more entries. Each entry consists of the
89 * fully qualified name of a UDT (the value to be mapped) and the
90 * <code>Class</code> object for a class that implements
91 * <code>SQLData</code> (the Java class that defines how the UDT
92 * will be mapped).
93 */
94 private Map<String,Class<?>> map;
95
96
97 /**
98 * Creates an <code>SQLInputImpl</code> object initialized with the
99 * given array of attributes and the given type map. If any of the
100 * attributes is a UDT whose name is in an entry in the type map,
101 * the attribute will be mapped according to the corresponding
102 * <code>SQLData</code> implementation.
103 *
104 * @param attributes an array of <code>Object</code> instances in which
105 * each element is an attribute of a UDT. The order of the
106 * attributes in the array is the same order in which
107 * the attributes were defined in the UDT definition.
108 * @param map a <code>java.util.Map</code> object containing zero or more
109 * entries, with each entry consisting of 1) a <code>String</code>
110 * giving the fully
111 * qualified name of the UDT and 2) the <code>Class</code> object
112 * for the <code>SQLData</code> implementation that defines how
113 * the UDT is to be mapped
114 * @throws SQLException if the <code>attributes</code> or the <code>map</code>
|