Java SQL Type getMessages(Array arr)

Here you can find the source of getMessages(Array arr)

Description

get Messages

License

Open Source License

Declaration

@SuppressWarnings({ "unchecked", "rawtypes" })
    public static List getMessages(Array arr) throws SQLException 

Method Source Code


//package com.java2s;
import java.sql.Array;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public class Main {
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public static List getMessages(Array arr) throws SQLException {
        List arrRes = new ArrayList();
        if (arr != null) {
            String[] msgs = (String[]) arr.getArray();
            for (int i = 0; i < msgs.length; i++)
                arrRes.add(msgs[i]);/* w w  w . j a v  a 2  s  .co  m*/
        }
        return arrRes;
    }
}

Related

  1. getJDBCTypes()
  2. getLength(String format, String columnTypeName)
  3. getLong(Object object)
  4. getMBTileData(int column, int row, int zoomLevel, String jdbcConnectionString)
  5. getMBTileData(int column, int row, int zoomLevel, String jdbcConnectionString)
  6. getNameByType(int sqlType)
  7. getNameFromJdbcType(int jdbcType)
  8. getNextQuotes(String lastQuotes, int lastType)
  9. getNumberType(Integer precision, Integer scale)