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

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


      return referPresentationUseCache (presentation, false);
   }
         
   public Presentation referPresentationUseCache (Presentation presentation, boolean isAssign) {
    String key = getCacheKey(null, presentation, null, "assignPresentation");
      Presentation presentationCache = (Presentation)simpleCache.get(key);
      if (presentationCache==null) {
         presentationCache = referPresentation (presentation, isAssign);
         if (key!=null)
           simpleCache.put(key, presentationCache);
      }
View Full Code Here


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

   private List getFirstResultWhereConditionsAre (Presentation presentation) {
      return  partialLoadWithParentPresentationQueryResult(getDefaultPresentationWhat(), presentation, null, 1, false)
   }
  
   protected Presentation getDefaultPresentationWhat() {
      Presentation presentation = new Presentation();
      presentation.setId(Long.valueOf("-1"));
      return presentation;
   }
View Full Code Here

    }
     
   private List<Presentation> convertPartialLoadWithParentPresentation(List<Object[]> list, Map<Integer, String> beanPath, Presentation presentationWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<Presentation> resultList = new ArrayList<Presentation>();
     for (Object[] row : list) {   
        Presentation presentation = clonePresentation (presentationWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populatePresentation (presentation, row[(Integer)entry.getKey()], (String)entry.getValue());
        }
View Full Code Here

  
   
   private List<Presentation> convertPartialLoadWithParentPresentationWithOneElementInRow(List<Object> list, Map<Integer, String> beanPath, Presentation presentationWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<Presentation> resultList = new ArrayList<Presentation>();
     for (Object row : list) {   
        Presentation presentation = clonePresentation (presentationWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populatePresentation (presentation, row, (String)entry.getValue());
        }
View Full Code Here

         if (countPartialField==1) {
          row = new Object[1];
          row[0] = iter.next();
         } else
          row = (Object[]) iter.next();
       Presentation presentationResult = new Presentation();
           if (presentation.getId() != null) {
        presentationResult.setId((Long) row[index]);
        index++;
           }
           if (presentation.getStartTime() != null) {
        presentationResult.setStartTime((Timestamp) row[index]);
        index++;
           }
           if (presentation.getEndTime() != null) {
        presentationResult.setEndTime((Timestamp) row[index]);
        index++;
           }
           if (presentation.getAbstractName() != null) {
        presentationResult.setAbstractName((String) row[index]);
        index++;
           }
           if (presentation.getTitle() != null) {
        presentationResult.setTitle((String) row[index]);
        index++;
           }
           if (presentation.getStatus() != null) {
        presentationResult.setStatus((String) row[index]);
        index++;
           }
           if (presentation.getPresentationPlaceId() != null) {
        presentationResult.setPresentationPlaceId_((Long) row[index]);
        index++;
           }
           if (presentation.getProposalTime() != null) {
        presentationResult.setProposalTime((Timestamp) row[index]);
        index++;
           }
           returnList.add(presentationResult);
        }
      return returnList;
View Full Code Here

    }

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

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

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

        @RequestParam("status") String status,
        @RequestParam("presentationPlaceId") Long presentationPlaceId,
        @RequestParam("proposalTime") Timestamp proposalTime,
        HttpServletResponse servletResponse
        ) throws IOException {
        Presentation _presentation = new Presentation (
           id,
           startTime,
           endTime,
           abstractName,
           title,
View Full Code Here

TOP

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

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.