Package net.sf.minuteProject.architecture.cache

Examples of net.sf.minuteProject.architecture.cache.SimpleCache


       query.append(getPresentationSearchEqualQuery (positivePresentation, negativePresentation));
     return query.toString();
    }
 
  public List<Presentation> searchPrototypeWithCachePresentation(Presentation presentation) {
    SimpleCache simpleCache = new SimpleCache();
    List<Presentation> list = (List<Presentation>)simpleCache.get(presentation.toString());
    if (list==null) {
      list = searchPrototypePresentation(presentation);
      simpleCache.put(presentation.toString(), list);
    }
    return list;
  }
View Full Code Here


       query.append(getConferenceSearchEqualQuery (positiveConference, negativeConference));
     return query.toString();
    }
 
  public List<Conference> searchPrototypeWithCacheConference(Conference conference) {
    SimpleCache simpleCache = new SimpleCache();
    List<Conference> list = (List<Conference>)simpleCache.get(conference.toString());
    if (list==null) {
      list = searchPrototypeConference(conference);
      simpleCache.put(conference.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getSpeakerSearchEqualQuery (positiveSpeaker, negativeSpeaker));
     return query.toString();
    }
 
  public List<Speaker> searchPrototypeWithCacheSpeaker(Speaker speaker) {
    SimpleCache simpleCache = new SimpleCache();
    List<Speaker> list = (List<Speaker>)simpleCache.get(speaker.toString());
    if (list==null) {
      list = searchPrototypeSpeaker(speaker);
      simpleCache.put(speaker.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getAddressSearchEqualQuery (positiveAddress, negativeAddress));
     return query.toString();
    }
 
  public List<Address> searchPrototypeWithCacheAddress(Address address) {
    SimpleCache simpleCache = new SimpleCache();
    List<Address> list = (List<Address>)simpleCache.get(address.toString());
    if (list==null) {
      list = searchPrototypeAddress(address);
      simpleCache.put(address.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getStatMbByRoleSearchEqualQuery (positiveStatMbByRole, negativeStatMbByRole));
     return query.toString();
    }
 
  public List<StatMbByRole> searchPrototypeWithCacheStatMbByRole(StatMbByRole statMbByRole) {
    SimpleCache simpleCache = new SimpleCache();
    List<StatMbByRole> list = (List<StatMbByRole>)simpleCache.get(statMbByRole.toString());
    if (list==null) {
      list = searchPrototypeStatMbByRole(statMbByRole);
      simpleCache.put(statMbByRole.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getPresentationPlaceSearchEqualQuery (positivePresentationPlace, negativePresentationPlace));
     return query.toString();
    }
 
  public List<PresentationPlace> searchPrototypeWithCachePresentationPlace(PresentationPlace presentationPlace) {
    SimpleCache simpleCache = new SimpleCache();
    List<PresentationPlace> list = (List<PresentationPlace>)simpleCache.get(presentationPlace.toString());
    if (list==null) {
      list = searchPrototypePresentationPlace(presentationPlace);
      simpleCache.put(presentationPlace.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getEvaluationSearchEqualQuery (positiveEvaluation, negativeEvaluation));
     return query.toString();
    }
 
  public List<Evaluation> searchPrototypeWithCacheEvaluation(Evaluation evaluation) {
    SimpleCache simpleCache = new SimpleCache();
    List<Evaluation> list = (List<Evaluation>)simpleCache.get(evaluation.toString());
    if (list==null) {
      list = searchPrototypeEvaluation(evaluation);
      simpleCache.put(evaluation.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getRoleSearchEqualQuery (positiveRole, negativeRole));
     return query.toString();
    }
 
  public List<Role> searchPrototypeWithCacheRole(Role role) {
    SimpleCache simpleCache = new SimpleCache();
    List<Role> list = (List<Role>)simpleCache.get(role.toString());
    if (list==null) {
      list = searchPrototypeRole(role);
      simpleCache.put(role.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getStatMbPerCtryConfSearchEqualQuery (positiveStatMbPerCtryConf, negativeStatMbPerCtryConf));
     return query.toString();
    }
 
  public List<StatMbPerCtryConf> searchPrototypeWithCacheStatMbPerCtryConf(StatMbPerCtryConf statMbPerCtryConf) {
    SimpleCache simpleCache = new SimpleCache();
    List<StatMbPerCtryConf> list = (List<StatMbPerCtryConf>)simpleCache.get(statMbPerCtryConf.toString());
    if (list==null) {
      list = searchPrototypeStatMbPerCtryConf(statMbPerCtryConf);
      simpleCache.put(statMbPerCtryConf.toString(), list);
    }
    return list;
  }
View Full Code Here

       query.append(getSponsorSearchEqualQuery (positiveSponsor, negativeSponsor));
     return query.toString();
    }
 
  public List<Sponsor> searchPrototypeWithCacheSponsor(Sponsor sponsor) {
    SimpleCache simpleCache = new SimpleCache();
    List<Sponsor> list = (List<Sponsor>)simpleCache.get(sponsor.toString());
    if (list==null) {
      list = searchPrototypeSponsor(sponsor);
      simpleCache.put(sponsor.toString(), list);
    }
    return list;
  }
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.architecture.cache.SimpleCache

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.