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

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


      return referConferenceUseCache (conference, false);
   }
         
   public Conference referConferenceUseCache (Conference conference, boolean isAssign) {
    String key = getCacheKey(null, conference, null, "assignConference");
      Conference conferenceCache = (Conference)simpleCache.get(key);
      if (conferenceCache==null) {
         conferenceCache = referConference (conference, isAssign);
         if (key!=null)
           simpleCache.put(key, conferenceCache);
      }
View Full Code Here


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

   private List getFirstResultWhereConditionsAre (Conference conference) {
      return  partialLoadWithParentConferenceQueryResult(getDefaultConferenceWhat(), conference, null, 1, false)
   }
  
   protected Conference getDefaultConferenceWhat() {
      Conference conference = new Conference();
      conference.setId(Long.valueOf("-1"));
      return conference;
   }
View Full Code Here

    }
     
   private List<Conference> convertPartialLoadWithParentConference(List<Object[]> list, Map<Integer, String> beanPath, Conference conferenceWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<Conference> resultList = new ArrayList<Conference>();
     for (Object[] row : list) {   
        Conference conference = cloneConference (conferenceWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populateConference (conference, row[(Integer)entry.getKey()], (String)entry.getValue());
        }
View Full Code Here

  
   
   private List<Conference> convertPartialLoadWithParentConferenceWithOneElementInRow(List<Object> list, Map<Integer, String> beanPath, Conference conferenceWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<Conference> resultList = new ArrayList<Conference>();
     for (Object row : list) {   
        Conference conference = cloneConference (conferenceWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populateConference (conference, row, (String)entry.getValue());
        }
View Full Code Here

         if (countPartialField==1) {
          row = new Object[1];
          row[0] = iter.next();
         } else
          row = (Object[]) iter.next();
       Conference conferenceResult = new Conference();
           if (conference.getId() != null) {
        conferenceResult.setId((Long) row[index]);
        index++;
           }
           if (conference.getName() != null) {
        conferenceResult.setName((String) row[index]);
        index++;
           }
           if (conference.getStartDate() != null) {
        conferenceResult.setStartDate((Date) row[index]);
        index++;
           }
           if (conference.getEndDate() != null) {
        conferenceResult.setEndDate((Date) row[index]);
        index++;
           }
           if (conference.getAddressId() != null) {
        conferenceResult.setAddressId_((Long) row[index]);
        index++;
           }
           returnList.add(conferenceResult);
        }
      return returnList;
View Full Code Here

    }

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

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

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

        @RequestParam("startDate") Date startDate,
        @RequestParam("endDate") Date endDate,
        @RequestParam("addressId") Long addressId,
        HttpServletResponse servletResponse
        ) throws IOException {
        Conference _conference = new Conference (
           id,
           name,
           startDate,
           endDate,
           addressId);
View Full Code Here

TOP

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

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.