equal
deleted
inserted
replaced
137 try { |
137 try { |
138 |
138 |
139 //set the type name |
139 //set the type name |
140 SQLTypeName = in.getSQLTypeName(); |
140 SQLTypeName = in.getSQLTypeName(); |
141 |
141 |
142 Vector tmp = new Vector(); |
142 Vector<Object> tmp = new Vector<>(); |
143 in.writeSQL(new SQLOutputImpl(tmp, map)); |
143 in.writeSQL(new SQLOutputImpl(tmp, map)); |
144 attribs = tmp.toArray(); |
144 attribs = tmp.toArray(); |
145 |
145 |
146 } catch (SQLException e) { |
146 } catch (SQLException e) { |
147 throw new SerialException(e.getMessage()); |
147 throw new SerialException(e.getMessage()); |
218 * giving the fully qualified name of a UDT and 2) the |
218 * giving the fully qualified name of a UDT and 2) the |
219 * <code>Class</code> object for the <code>SQLData</code> implementation |
219 * <code>Class</code> object for the <code>SQLData</code> implementation |
220 * that defines how the UDT is to be mapped |
220 * that defines how the UDT is to be mapped |
221 * @throws SerialException if an error occurs |
221 * @throws SerialException if an error occurs |
222 */ |
222 */ |
223 private void mapToSerial(Map map) throws SerialException { |
223 private void mapToSerial(Map<String,Class<?>> map) throws SerialException { |
224 |
224 |
225 try { |
225 try { |
226 |
226 |
227 for (int i = 0; i < attribs.length; i++) { |
227 for (int i = 0; i < attribs.length; i++) { |
228 if (attribs[i] instanceof Struct) { |
228 if (attribs[i] instanceof Struct) { |