コード例 #1
0
 public TonGiaoSoap[] getDSTonGiao() {
   try {
     List<TonGiao> result = TonGiaoLocalServiceUtil.findByStatus(Constants.ACTIVATED);
     if (result != null) {
       return TonGiaoSoap.toSoapModels(result);
     }
   } catch (Exception e) {
     // TODO: handle exception
   }
   return null;
 }
コード例 #2
0
  public TonGiaoSoap getTonGiaoTheoId(Long id) {
    try {
      TonGiao result = TonGiaoLocalServiceUtil.fetchTonGiao(id);
      if (result != null) {
        return TonGiaoSoap.toSoapModel(result);
      }

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

    return null;
  }