Package com.sogou.qadev.service.cynthia.dao

Examples of com.sogou.qadev.service.cynthia.dao.TemplateTypeAccessSessionMySQL


      }else {
        return null;
      }
    }
    else{
      TemplateType type = new TemplateTypeAccessSessionMySQL().queryTemplateTypeById(DataAccessFactory.getInstance().createUUID(id));
      if (type != null) {
        EhcacheHandler.getInstance().set(EhcacheHandler.FOREVER_CACHE,type.getId().getValue(), type);
      }
      return type;
    }
View Full Code Here


    Object allTemplateType = EhcacheHandler.getInstance().get(EhcacheHandler.FOREVER_CACHE,"allTemplateType");

    if (allTemplateType != null) {
      return (List<TemplateType>)allTemplateType;
    }else {
      List<TemplateType> all = new TemplateTypeAccessSessionMySQL().queryAllTemplateType();
      if (all != null && all.size() > 0) {
        setAll(all);
      }
      return all;
    }
View Full Code Here

   * 作者:李明
   * 版本:1.0
   * 邮箱:liming@sogou-inc.com
   */
  public void putAllDataToCache(){
    List<TemplateType> allTemplateTypes = new TemplateTypeAccessSessionMySQL().queryAllTemplateType();
    EhcacheHandler ehcachedHanler = EhcacheHandler.getInstance();

    for (TemplateType templateType : allTemplateTypes) {
      ehcachedHanler.set(EhcacheHandler.FOREVER_CACHE,templateType.getId().getValue(), templateType);
    }
View Full Code Here

TOP

Related Classes of com.sogou.qadev.service.cynthia.dao.TemplateTypeAccessSessionMySQL

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.