Examples of Sponsor


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

   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

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

    }
     
   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

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

  
   
   private List<Sponsor> convertPartialLoadWithParentSponsorWithOneElementInRow(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, (String)entry.getValue());
        }
View Full Code Here

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

         if (countPartialField==1) {
          row = new Object[1];
          row[0] = iter.next();
         } else
          row = (Object[]) iter.next();
       Sponsor sponsorResult = new Sponsor();
           if (sponsor.getId() != null) {
        sponsorResult.setId((Long) row[index]);
        index++;
           }
           if (sponsor.getName() != null) {
        sponsorResult.setName((String) row[index]);
        index++;
           }
           if (sponsor.getPrivilegeType() != null) {
        sponsorResult.setPrivilegeType((String) row[index]);
        index++;
           }
           if (sponsor.getStatus() != null) {
        sponsorResult.setStatus((String) row[index]);
        index++;
           }
           if (sponsor.getConferenceId() != null) {
        sponsorResult.setConferenceId_((Long) row[index]);
        index++;
           }
           if (sponsor.getAddressId() != null) {
        sponsorResult.setAddressId_((Long) row[index]);
        index++;
           }
           returnList.add(sponsorResult);
        }
      return returnList;
View Full Code Here

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

    }

  private List<Sponsor> copy(List<Sponsor> inputs) {
    List<Sponsor> l = new ArrayList<Sponsor>();
    for (Sponsor input : inputs) {
      Sponsor copy = new Sponsor();
      copy.copy(input);
      l.add(copy);
    }
    return l;
  }
View Full Code Here

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

//MP-MANAGED-UPDATABLE-BEGINNING-DISABLE @FIND_ALL-sponsor@
    @GET
    @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) 
    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

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

//MP-MANAGED-UPDATABLE-BEGINNING-DISABLE @FIND_BY_ID-sponsor@
    @GET
    @Path("{id}")
    @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})   
    public Sponsor findById (@PathParam ("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

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

//MP-MANAGED-UPDATABLE-ENDING

    @DELETE
    @Path("{id}")
    public void delete (@PathParam ("id") Long id) {
        Sponsor sponsor = new Sponsor ();
        sponsor.setId(id);
        sponsorDao.deleteSponsor(sponsor);
    }
View Full Code Here

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

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

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

    }

    @PUT
    @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Sponsor save(JAXBElement<Sponsor> jaxbSponsor) {
        Sponsor sponsor = jaxbSponsor.getValue();
        if (sponsor.getId()!=null)
            return sponsorDao.updateSponsor(sponsor);
        return save(sponsor);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.