コード例 #1
0
  @Override
  public DanTocSoap getDanTocTheoId(Long id) {
    // TODO Auto-generated method stub
    try {
      return DanTocSoap.toSoapModel(DanTocLocalServiceUtil.getDanToc(id));

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

    }
    return null;
  }
コード例 #2
0
  @Override
  public DanTocSoap[] getDanhSachDanToc() {
    try {
      List<DanToc> danTocs = DanTocLocalServiceUtil.findAll();
      DanTocSoap[] result = null;

      if (danTocs != null && danTocs.size() > 0) {
        result = DanTocSoap.toSoapModels(danTocs);
      }
      return result;
    } catch (Exception e) {
      // TODO: handle exception
      e.printStackTrace();
    }
    return null;
  }