コード例 #1
0
 public TinhTrangHonNhanSoap[] getDSTinhTrangHonNhan() {
   try {
     List<TinhTrangHonNhan> result = TinhTrangHonNhanLocalServiceUtil.getAll(Constants.ACTIVATED);
     if (result != null) {
       return TinhTrangHonNhanSoap.toSoapModels(result);
     }
   } catch (Exception e) {
     // TODO: handle exception
   }
   return null;
 }
コード例 #2
0
  public TinhTrangHonNhanSoap getTinhTrangHonNhanTheoId(Long id) {

    try {
      TinhTrangHonNhan honNhan = TinhTrangHonNhanLocalServiceUtil.fetchTinhTrangHonNhan(id);
      if (honNhan != null) {
        return TinhTrangHonNhanSoap.toSoapModel(honNhan);
      }

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

    return null;
  }