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

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


      return referEvaluationUseCache (evaluation, false);
   }
         
   public Evaluation referEvaluationUseCache (Evaluation evaluation, boolean isAssign) {
    String key = getCacheKey(null, evaluation, null, "assignEvaluation");
      Evaluation evaluationCache = (Evaluation)simpleCache.get(key);
      if (evaluationCache==null) {
         evaluationCache = referEvaluation (evaluation, isAssign);
         if (key!=null)
           simpleCache.put(key, evaluationCache);
      }
View Full Code Here


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

   private List getFirstResultWhereConditionsAre (Evaluation evaluation) {
      return  partialLoadWithParentEvaluationQueryResult(getDefaultEvaluationWhat(), evaluation, null, 1, false)
   }
  
   protected Evaluation getDefaultEvaluationWhat() {
      Evaluation evaluation = new Evaluation();
      evaluation.setId(Long.valueOf("-1"));
      return evaluation;
   }
View Full Code Here

    }
     
   private List<Evaluation> convertPartialLoadWithParentEvaluation(List<Object[]> list, Map<Integer, String> beanPath, Evaluation evaluationWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<Evaluation> resultList = new ArrayList<Evaluation>();
     for (Object[] row : list) {   
        Evaluation evaluation = cloneEvaluation (evaluationWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populateEvaluation (evaluation, row[(Integer)entry.getKey()], (String)entry.getValue());
        }
View Full Code Here

  
   
   private List<Evaluation> convertPartialLoadWithParentEvaluationWithOneElementInRow(List<Object> list, Map<Integer, String> beanPath, Evaluation evaluationWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<Evaluation> resultList = new ArrayList<Evaluation>();
     for (Object row : list) {   
        Evaluation evaluation = cloneEvaluation (evaluationWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populateEvaluation (evaluation, row, (String)entry.getValue());
        }
View Full Code Here

         if (countPartialField==1) {
          row = new Object[1];
          row[0] = iter.next();
         } else
          row = (Object[]) iter.next();
       Evaluation evaluationResult = new Evaluation();
           if (evaluation.getId() != null) {
        evaluationResult.setId((Long) row[index]);
        index++;
           }
           if (evaluation.getConferenceMemberId() != null) {
        evaluationResult.setConferenceMemberId_((Long) row[index]);
        index++;
           }
           if (evaluation.getPresentationId() != null) {
        evaluationResult.setPresentationId_((Long) row[index]);
        index++;
           }
           if (evaluation.getStar() != null) {
        evaluationResult.setStar((Integer) row[index]);
        index++;
           }
           if (evaluation.getComment() != null) {
        evaluationResult.setComment((String) row[index]);
        index++;
           }
           if (evaluation.getEvaluationDate() != null) {
        evaluationResult.setEvaluationDate((Timestamp) row[index]);
        index++;
           }
           returnList.add(evaluationResult);
        }
      return returnList;
View Full Code Here

    }

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

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

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

        @RequestParam("star") Integer star,
        @RequestParam("comment") String comment,
        @RequestParam("evaluationDate") Timestamp evaluationDate,
        HttpServletResponse servletResponse
        ) throws IOException {
        Evaluation _evaluation = new Evaluation (
           id,
           conferenceMemberId,
           presentationId,
           star,
           comment,
View Full Code Here

TOP

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

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.