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

Examples of com.sogou.qadev.service.cynthia.bean.impl.ScriptImpl


   */
  public Script createScript(String createUser)
  {
    UUID scriptId = DataAccessFactory.getInstance().newUUID("SCRI");
    Timestamp createTime = new Timestamp(System.currentTimeMillis());
    return new ScriptImpl(scriptId,createUser,createTime);
  }
View Full Code Here


        String scriptImportStr = getScriptImportStr();
       
        String createUser = rs.getString("create_user");
        Timestamp createTime = rs.getTimestamp("create_time");
       
        Script script = new ScriptImpl(scriptId, createUser, createTime);
       
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
        script.setScript(scriptImportStr + rs.getString("xml"));
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
       
        return script;
      }
    }
    catch(Exception e)
View Full Code Here

      while(rs.next())
      {
        String createUser = rs.getString("create_user");
        Timestamp createTime = rs.getTimestamp("create_time");
        UUID id = DataAccessFactory.getInstance().createUUID(rs.getObject("id").toString());
        Script script = new ScriptImpl(id, createUser, createTime);
       
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
        script.setScript(scriptImportStr + rs.getString("xml"));
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
       
        result.add(script);
       
      }
    }
View Full Code Here

      String scriptImportStr = getScriptImportStr();
      while(rs.next())
      {
        UUID id = DataAccessFactory.getInstance().createUUID(rs.getObject("id").toString());
        Timestamp createTime = rs.getTimestamp("create_time");
        Script script = new ScriptImpl(id, rs.getString("create_user"), createTime);
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
        script.setScript(scriptImportStr + rs.getString("xml"));
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
        scriptSet.add(script);
      }
    }catch(Exception e)
    {
      logger.error("",e);
View Full Code Here

      while(rs.next())
      {
        UUID id = DataAccessFactory.getInstance().createUUID(rs.getObject("id").toString());
        Timestamp createTime = rs.getTimestamp("create_time");
       
        Script script = new ScriptImpl(id, rs.getString("create_user"), createTime);
       
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
        script.setScript(scriptImportStr + rs.getString("xml"));
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
       
        scriptSet.add(script);
      }
    }catch(Exception e)
    {
View Full Code Here

      while(rs.next())
      {
        UUID id = DataAccessFactory.getInstance().createUUID(rs.getObject("id").toString());
        Timestamp createTime = rs.getTimestamp("create_time");
       
        Script script = new ScriptImpl(id, createUser, createTime);
       
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
        script.setScript(scriptImportStr + rs.getString("xml"));
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
       
        scriptSet.add(script);
      }
    }
    catch(Exception e)
View Full Code Here

      {
        UUID id = DataAccessFactory.getInstance().createUUID(rs.getObject("id").toString());
        String createUser = rs.getString("create_user");
        Timestamp createTime = rs.getTimestamp("create_time");
       
        Script script = new ScriptImpl(id, createUser, createTime);
       
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
        script.setScript(scriptImportStr + rs.getString("xml"));
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
       
        scriptSet.add(script);
      }
    }
    catch(Exception e)
View Full Code Here

       
        UUID id = DataAccessFactory.getInstance().createUUID(rs.getObject("id").toString());
        String createUser = rs.getString("create_user");
        Timestamp createTime = rs.getTimestamp("create_time");
       
        Script script = new ScriptImpl(id, createUser, createTime);
       
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
       
        //import信息统一在数据库中存储,方便类文件修改后不用一一个脚本引包,所以在读取脚本xml后需要统一加上引包信息
        script.setScript(scriptImportStr + rs.getString("xml"));  
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
       
        scriptSet.add(script);
      }
    }
    catch(Exception e)
View Full Code Here

      if(rs.next())
      {
        String createUser = rs.getString("create_user");
        Timestamp createTime = rs.getTimestamp("create_time");
       
        Script script = new ScriptImpl(scriptId, createUser, createTime);
       
        script.setName(rs.getString("name"));
        script.setTemplateTypeIds(ArrayUtil.string2IdArray(rs.getString("template_type_ids")));
        script.setTemplateIds(ArrayUtil.string2IdArray(rs.getString("template_ids")));
        script.setFlowIds(ArrayUtil.string2IdArray(rs.getString("flow_ids")));
        script.setBeginStatIds(ArrayUtil.string2IdArray(rs.getString("begin_stat_ids")));
        script.setEndStatIds(ArrayUtil.string2IdArray(rs.getString("end_stat_ids")));
        script.setActionIds(ArrayUtil.string2IdArray(rs.getString("action_ids")));
        script.setAsync(rs.getBoolean("is_async"));
        script.setBeforeCommit(rs.getBoolean("is_before_commit"));
        script.setAfterSuccess(rs.getBoolean("is_after_success"));
        script.setAfterFail(rs.getBoolean("is_after_fail"));
        script.setAfterQuery(rs.getBoolean("is_after_query"));
        script.setScript(rs.getString("xml"));
        script.setStatEdit(rs.getBoolean("is_stat_edit"));
        script.setActionEdit(rs.getBoolean("is_action_edit"));
        script.setValid(rs.getBoolean("is_valid"));
        script.setAllowedTemplateIds(ArrayUtil.string2IdArray(rs.getString("allowed_template_ids")));
       
        return script;
      }
    }
    catch(Exception e)
View Full Code Here

TOP

Related Classes of com.sogou.qadev.service.cynthia.bean.impl.ScriptImpl

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.