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)