Package com.sogou.qadev.service.cynthia.bean

Examples of com.sogou.qadev.service.cynthia.bean.TemplateType


    return null  ;
  }
 
  public TemplateType queryTemplateType(UUID templateTypeId)
  {
    TemplateType templateType = TemplateTypeCache.getInstance().get(templateTypeId);

    if (templateType != null)
      return templateType;

    return null;
View Full Code Here


  public TemplateType[] queryTemplateTypes(UUID[] templateTypeIdArray)
  {
    List<TemplateType> list = new ArrayList<TemplateType>();
    for (UUID id : templateTypeIdArray)
    {
      TemplateType templateType = TemplateTypeCache.getInstance().get(id);
      if (templateType != null)
        list.add(templateType);
    }

    return list.toArray(new TemplateType[list.size()]);
View Full Code Here

      }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

      conn = DbPoolConnection.getInstance().getReadConnection();
      String sql = "select * from template_type where id = ?";
      pstm = conn.prepareStatement(sql);
      pstm.setInt(1, Integer.parseInt(templateTypeId.getValue()));
      rs = pstm.executeQuery();
      TemplateType templateType = null;
      if(rs.next())
      {
        templateType = new TemplateTypeImpl();
        templateType.setId(DataAccessFactory.getInstance().createUUID(Integer.toString(rs.getInt("id"))));
        templateType.setName(rs.getString("name"));
        templateType.setDisplayIndex(rs.getInt("displayIndex"));
      }
      return templateType;
    }catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

      String sql = "select * from template_type";
      pstm = conn.prepareStatement(sql);
      rs = pstm.executeQuery();
      while(rs.next())
      {
        TemplateType templateType = new TemplateTypeImpl();
        templateType.setId(DataAccessFactory.getInstance().createUUID(Integer.toString(rs.getInt("id"))));
        templateType.setName(rs.getString("name"));
        templateType.setDisplayIndex(rs.getInt("displayIndex"));
        templateTypeList.add(templateType);
      }
    }catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.sogou.qadev.service.cynthia.bean.TemplateType

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.