コード例 #1
0
  @Override
  public QuocGiaSoap getQuocGiaTheoId(Long id) {
    // TODO Auto-generated method stub
    try {
      return QuocGiaSoap.toSoapModel(QuocGiaLocalServiceUtil.getQuocGia(id));

    } catch (Exception e) {
      // TODO Auto-generated catch block

    }
    return null;
  }
コード例 #2
0
  @Override
  public QuocGiaSoap[] getDanhSachQuocGia() {
    try {
      List<QuocGia> quocGias = QuocGiaLocalServiceUtil.findAll();
      QuocGiaSoap[] result = null;

      if (quocGias != null && quocGias.size() > 0) {
        result = QuocGiaSoap.toSoapModels(quocGias);
      }

      return result;
    } catch (Exception e) {
      // TODO: handle exception
      e.printStackTrace();
    }
    return null;
  }