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

Examples of net.sf.mp.demo.conference.domain.statistics.StatMbPerCtryConf


      return referStatMbPerCtryConfUseCache (statMbPerCtryConf, false);
   }
         
   public StatMbPerCtryConf referStatMbPerCtryConfUseCache (StatMbPerCtryConf statMbPerCtryConf, boolean isAssign) {
    String key = getCacheKey(null, statMbPerCtryConf, null, "assignStatMbPerCtryConf");
      StatMbPerCtryConf statMbPerCtryConfCache = (StatMbPerCtryConf)simpleCache.get(key);
      if (statMbPerCtryConfCache==null) {
         statMbPerCtryConfCache = referStatMbPerCtryConf (statMbPerCtryConf, isAssign);
         if (key!=null)
           simpleCache.put(key, statMbPerCtryConfCache);
      }
View Full Code Here


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

   private List getFirstResultWhereConditionsAre (StatMbPerCtryConf statMbPerCtryConf) {
      return  partialLoadWithParentStatMbPerCtryConfQueryResult(getDefaultStatMbPerCtryConfWhat(), statMbPerCtryConf, null, 1, false)
   }
  
   protected StatMbPerCtryConf getDefaultStatMbPerCtryConfWhat() {
      StatMbPerCtryConf statMbPerCtryConf = new StatMbPerCtryConf();
      statMbPerCtryConf.setId("");
      return statMbPerCtryConf;
   }
View Full Code Here

    }
     
   private List<StatMbPerCtryConf> convertPartialLoadWithParentStatMbPerCtryConf(List<Object[]> list, Map<Integer, String> beanPath, StatMbPerCtryConf statMbPerCtryConfWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<StatMbPerCtryConf> resultList = new ArrayList<StatMbPerCtryConf>();
     for (Object[] row : list) {   
        StatMbPerCtryConf statMbPerCtryConf = cloneStatMbPerCtryConf (statMbPerCtryConfWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populateStatMbPerCtryConf (statMbPerCtryConf, row[(Integer)entry.getKey()], (String)entry.getValue());
        }
View Full Code Here

  
   
   private List<StatMbPerCtryConf> convertPartialLoadWithParentStatMbPerCtryConfWithOneElementInRow(List<Object> list, Map<Integer, String> beanPath, StatMbPerCtryConf statMbPerCtryConfWhat) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
     List<StatMbPerCtryConf> resultList = new ArrayList<StatMbPerCtryConf>();
     for (Object row : list) {   
        StatMbPerCtryConf statMbPerCtryConf = cloneStatMbPerCtryConf (statMbPerCtryConfWhat);
        Iterator<Entry<Integer, String>> iter = beanPath.entrySet().iterator()
        while (iter.hasNext()) {
           Entry entry = iter.next();
           populateStatMbPerCtryConf (statMbPerCtryConf, row, (String)entry.getValue());
        }
View Full Code Here

         if (countPartialField==1) {
          row = new Object[1];
          row[0] = iter.next();
         } else
          row = (Object[]) iter.next();
       StatMbPerCtryConf statMbPerCtryConfResult = new StatMbPerCtryConf();
           if (statMbPerCtryConf.getId() != null) {
        statMbPerCtryConfResult.setId((String) row[index]);
        index++;
           }
           if (statMbPerCtryConf.getCountry() != null) {
        statMbPerCtryConfResult.setCountry((String) row[index]);
        index++;
           }
           if (statMbPerCtryConf.getConferenceName() != null) {
        statMbPerCtryConfResult.setConferenceName((String) row[index]);
        index++;
           }
           if (statMbPerCtryConf.getNumber() != null) {
        statMbPerCtryConfResult.setNumber((Long) row[index]);
        index++;
           }
           returnList.add(statMbPerCtryConfResult);
        }
      return returnList;
View Full Code Here

    }

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

TOP

Related Classes of net.sf.mp.demo.conference.domain.statistics.StatMbPerCtryConf

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.