jdk/src/share/classes/javax/sql/rowset/serial/SerialStruct.java
changeset 11129 f9ad1aadf3fa
parent 6692 aef4e294026f
child 11683 5e02efd89af6
equal deleted inserted replaced
11128:ffb869e392cf 11129:f9ad1aadf3fa
   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) {