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

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


      return referPresentationPlaceUseCache (presentationPlace, false);
   }
         
   public PresentationPlace referPresentationPlaceUseCache (PresentationPlace presentationPlace, boolean isAssign) {
    String key = getCacheKey(null, presentationPlace, null, "assignPresentationPlace");
      PresentationPlace presentationPlaceCache = (PresentationPlace)simpleCache.get(key);
      if (presentationPlaceCache==null) {
         presentationPlaceCache = referPresentationPlace (presentationPlace, isAssign);
         if (key!=null)
           simpleCache.put(key, presentationPlaceCache);
      }
View Full Code Here


     BeanUtils.populateBeanObject(presentationPlace, 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 presentationPlace.clone() instead
  private PresentationPlace clonePresentationPlace (PresentationPlace presentationPlace) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
    //return (PresentationPlace) BeanUtils.cloneBeanObject(presentationPlace);
     if (presentationPlace==null) return new PresentationPlace();
     return presentationPlace.clone();
  }
View Full Code Here

   private List getFirstResultWhereConditionsAre (PresentationPlace presentationPlace) {
      return  partialLoadWithParentPresentationPlaceQueryResult(getDefaultPresentationPlaceWhat(), presentationPlace, null, 1, false)
   }
  
   protected PresentationPlace getDefaultPresentationPlaceWhat() {
      PresentationPlace presentationPlace = new PresentationPlace();
      presentationPlace.setId(Long.valueOf("-1"));
      return presentationPlace;
   }
View Full Code Here

    }
     
   private List<PresentationPlace> convertPartialLoadWithParentPresentationPlace(List<Object[]> list, Map<Integer, String> beanPath, PresentationPlace presentationPlaceWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<PresentationPlace> resultList = new ArrayList<PresentationPlace>();
     for (Object[] row : list) {   
        PresentationPlace presentationPlace = clonePresentationPlace (presentationPlaceWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populatePresentationPlace (presentationPlace, row[(Integer)entry.getKey()], (String)entry.getValue());
        }
View Full Code Here

  
   
   private List<PresentationPlace> convertPartialLoadWithParentPresentationPlaceWithOneElementInRow(List<Object> list, Map<Integer, String> beanPath, PresentationPlace presentationPlaceWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<PresentationPlace> resultList = new ArrayList<PresentationPlace>();
     for (Object row : list) {   
        PresentationPlace presentationPlace = clonePresentationPlace (presentationPlaceWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populatePresentationPlace (presentationPlace, row, (String)entry.getValue());
        }
View Full Code Here

         if (countPartialField==1) {
          row = new Object[1];
          row[0] = iter.next();
         } else
          row = (Object[]) iter.next();
       PresentationPlace presentationPlaceResult = new PresentationPlace();
           if (presentationPlace.getId() != null) {
        presentationPlaceResult.setId((Long) row[index]);
        index++;
           }
           if (presentationPlace.getLocation() != null) {
        presentationPlaceResult.setLocation((String) row[index]);
        index++;
           }
           if (presentationPlace.getNumberOfSeats() != null) {
        presentationPlaceResult.setNumberOfSeats((Integer) row[index]);
        index++;
           }
           returnList.add(presentationPlaceResult);
        }
      return returnList;
View Full Code Here

    }

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

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

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

        @RequestParam("id") Long id,
        @RequestParam("location") String location,
        @RequestParam("numberOfSeats") Integer numberOfSeats,
        HttpServletResponse servletResponse
        ) throws IOException {
        PresentationPlace _presentationPlace = new PresentationPlace (
           id,
           location,
           numberOfSeats);
        return save(_presentationPlace);
    }
View Full Code Here

TOP

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

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.