Package net.sf.mp.demo.conference.domain.conference

Examples of net.sf.mp.demo.conference.domain.conference.Sponsor


    @RequestMapping(method = RequestMethod.GET)
    @Transactional
  @ResponseBody
    public List<Sponsor> findAll () {
    List<Sponsor> r = new ArrayList<Sponsor>();
        List<Sponsor> l = sponsorDao.searchPrototypeSponsor(new Sponsor());
    for (Sponsor sponsor : l) {
      r.add(sponsor.flat());
    }
    return r;
    }
View Full Code Here


//MP-MANAGED-UPDATABLE-BEGINNING-DISABLE @FIND_BY_ID-sponsor@
  @RequestMapping(value = "/{id}", method = RequestMethod.GET)
  @ResponseBody
  @Transactional
    public Sponsor findById (@PathVariable ("id") java.lang.Long id) {
        Sponsor _sponsor = new Sponsor ();
    _sponsor.setId(id);
    _sponsor = sponsorExtDao.getFirstSponsor(_sponsor);
    if (_sponsor!=null) return _sponsor.flat();
    return new Sponsor ();
    }
View Full Code Here

        @RequestParam("status") String status,
        @RequestParam("conferenceId") Long conferenceId,
        @RequestParam("addressId") Long addressId,
        HttpServletResponse servletResponse
        ) throws IOException {
        Sponsor _sponsor = new Sponsor (
           id,
           name,
           privilegeType,
           status,
           conferenceId,
View Full Code Here

    @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
    @Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class)
  @ResponseBody
    public String delete (@PathVariable ("id") Long id) {
        Sponsor sponsor = new Sponsor ();
        sponsor.setId(id);
        sponsorDao.deleteSponsor(sponsor);
    return "OK";
    }
View Full Code Here

        @RequestParam("status") String status,
        @RequestParam("conferenceId") Long conferenceId,
        @RequestParam("addressId") Long addressId,
        HttpServletResponse servletResponse
        ) throws IOException {
        Sponsor _sponsor = new Sponsor (
           id,
           name,
           privilegeType,
           status,
           conferenceId,
View Full Code Here

       setPhoto (photo);
       setWebSiteUrl (webSiteUrl);
       //parents
       this.conferenceMemberId = new ConferenceMember();
       this.conferenceMemberId.setId(conferenceMemberId); //ConferenceMember Column [name=id; type=BIGINT] - local Speaker Column [name=conference_member_id; type=BIGINT]
       this.sponsorId = new Sponsor();
       this.sponsorId.setId(sponsorId); //Sponsor Column [name=id; type=BIGINT] - local Speaker Column [name=sponsor_id; type=BIGINT]
    }
View Full Code Here

      return referSponsorUseCache (sponsor, false);
   }
         
   public Sponsor referSponsorUseCache (Sponsor sponsor, boolean isAssign) {
    String key = getCacheKey(null, sponsor, null, "assignSponsor");
      Sponsor sponsorCache = (Sponsor)simpleCache.get(key);
      if (sponsorCache==null) {
         sponsorCache = referSponsor (sponsor, isAssign);
         if (key!=null)
           simpleCache.put(key, sponsorCache);
      }
View Full Code Here

     BeanUtils.populateBeanObject(sponsor, beanPath, value);
  }
      // to set in super class BEWARE: genericity is only one level!!!!! first level is a copy second level is a reference!!! change to sponsor.clone() instead
  private Sponsor cloneSponsor (Sponsor sponsor) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
    //return (Sponsor) BeanUtils.cloneBeanObject(sponsor);
     if (sponsor==null) return new Sponsor();
     return sponsor.clone();
  }
View Full Code Here

   private List getFirstResultWhereConditionsAre (Sponsor sponsor) {
      return  partialLoadWithParentSponsorQueryResult(getDefaultSponsorWhat(), sponsor, null, 1, false)
   }
  
   protected Sponsor getDefaultSponsorWhat() {
      Sponsor sponsor = new Sponsor();
      sponsor.setId(Long.valueOf("-1"));
      return sponsor;
   }
View Full Code Here

    }
     
   private List<Sponsor> convertPartialLoadWithParentSponsor(List<Object[]> list, Map<Integer, String> beanPath, Sponsor sponsorWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<Sponsor> resultList = new ArrayList<Sponsor>();
     for (Object[] row : list) {   
        Sponsor sponsor = cloneSponsor (sponsorWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populateSponsor (sponsor, row[(Integer)entry.getKey()], (String)entry.getValue());
        }
View Full Code Here

TOP

Related Classes of net.sf.mp.demo.conference.domain.conference.Sponsor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.