code: public static String getSqlTypeAsString(int jdbcType)
      {
          String statusName = "*can't find String representation for sql type '" + jdbcType + "'*";
          try
          {
              Field[] fields = Types.class.getDeclaredFields();
              for (int i = 0; i < fields.length; i++)
              {
                  if (fields[i].getInt(null) == jdbcType)
                  {
                      statusName = fields[i].getName();
                      break;
                  }
              }
          }
          catch (Exception ignore)
          {
              // ignore it
          }
          return statusName;
      }
docs: Returns a string representation of the given {@link java.sql.Types} value.