예제 #1
0
 private void deleteAds() {
   if (_ads != null && _ads.getId() > 0) {
     AdsIntf adsBc = AdsImpl.getInstance();
     adsBc.deleteAds(_ads);
   }
   setAdsNameList();
 }
예제 #2
0
 private Ads persistAds(String valueAdsId) {
   AdsIntf adsBc = AdsImpl.getInstance();
   Ads ads = null;
   ads = adsBc.getAdsById(Integer.parseInt(valueAdsId));
   if (ads != null) {
     this._ads = ads;
   }
   return _ads;
 }
예제 #3
0
 private List<Ads> loadAds() {
   List<Ads> adsList;
   AdsIntf adsBc = AdsImpl.getInstance();
   adsList = new ArrayList<Ads>();
   adsList = adsBc.getAdsList();
   if (adsList != null && !adsList.isEmpty()) {
     return adsList;
   }
   return null;
 }
예제 #4
0
 private void saveUpdateAds(Ads ads) {
   setAllFildsToAds();
   AdsIntf adsBc = AdsImpl.getInstance();
   if (ads != null && ads.getId() <= 0) {
     adsBc.saveAds(_ads);
   } else {
     adsBc.updateAds(_ads);
   }
   setAdsNameList();
 }