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

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


   */
  public Timer createTimer(String createUser)
  {
    UUID id = DataAccessFactory.getInstance().newUUID("TIME");
    Timestamp createTime = new Timestamp(System.currentTimeMillis());
    return new TimerImpl(id, createUser, createTime);
  }
View Full Code Here


      while(rst.next())
      {
        UUID id = DataAccessFactory.getInstance().createUUID(rst.getObject("id").toString());
        Timestamp createTime = rst.getTimestamp("create_time");

        Timer timer = new TimerImpl(id, createUser, createTime);

        timer.setName(rst.getString("name"));
        timer.setActionId(DataAccessFactory.getInstance().createUUID(rst.getObject("action_id").toString()));
        timer.setActionParam(rst.getString("action_param"));
        timer.setYear(rst.getString("year"));
        timer.setMonth(rst.getString("month"));
        timer.setWeek(rst.getString("week"));
        timer.setDay(rst.getString("day"));
        timer.setHour(rst.getString("hour"));
        timer.setMinute(rst.getString("minute"));
        timer.setSecond(rst.getString("second"));
        timer.setStart(rst.getBoolean("is_start"));

        Object filterIdObj = rst.getObject("filter_id");
        if(filterIdObj != null)
          timer.setFilterId(DataAccessFactory.getInstance().createUUID(filterIdObj.toString()));

        Object statisticerIdObj = rst.getObject("statisticer_id");
        if(statisticerIdObj != null)
          timer.setStatisticerId(DataAccessFactory.getInstance().createUUID(statisticerIdObj.toString()));

        timer.setRetryAccount(rst.getLong("retry_account"));
        timer.setRetryDelay(rst.getLong("retry_delay"));
        timer.setSendNull(rst.getBoolean("is_send_null"));

        timerSet.add(timer);
      }
    }
    catch(Exception e)
View Full Code Here

      {
        UUID id = DataAccessFactory.getInstance().createUUID(rst.getObject("id").toString());
        String createUser = rst.getString("create_user");
        Timestamp createTime = rst.getTimestamp("create_time");

        Timer timer = new TimerImpl(id, createUser, createTime);

        timer.setName(rst.getString("name"));
        timer.setActionId(DataAccessFactory.getInstance().createUUID(rst.getObject("action_id").toString()));
        timer.setActionParam(rst.getString("action_param"));
        timer.setYear(rst.getString("year"));
        timer.setMonth(rst.getString("month"));
        timer.setWeek(rst.getString("week"));
        timer.setDay(rst.getString("day"));
        timer.setHour(rst.getString("hour"));
        timer.setMinute(rst.getString("minute"));
        timer.setSecond(rst.getString("second"));
        timer.setStart(rst.getBoolean("is_start"));

        Object filterIdObj = rst.getObject("filter_id");
        if(filterIdObj != null)
          timer.setFilterId(DataAccessFactory.getInstance().createUUID(filterIdObj.toString()));

        Object statisticerIdObj = rst.getObject("statisticer_id");
        if(statisticerIdObj != null)
          timer.setStatisticerId(DataAccessFactory.getInstance().createUUID(statisticerIdObj.toString()));

        timer.setRetryAccount(rst.getLong("retry_account"));
        timer.setRetryDelay(rst.getLong("retry_delay"));
        timer.setSendNull(rst.getBoolean("is_send_null"));

        timerSet.add(timer);
      }
    }
    catch(Exception e)
View Full Code Here

      {
        UUID id = DataAccessFactory.getInstance().createUUID(rst.getObject("id").toString());
        Timestamp createTime = rst.getTimestamp("create_time");
        String createUser = rst.getString("create_user");

        Timer timer = new TimerImpl(id, createUser, createTime);

        timer.setName(rst.getString("name"));
        timer.setActionId(DataAccessFactory.getInstance().createUUID(rst.getObject("action_id").toString()));
        timer.setActionParam(rst.getString("action_param"));
        timer.setYear(rst.getString("year"));
        timer.setMonth(rst.getString("month"));
        timer.setWeek(rst.getString("week"));
        timer.setDay(rst.getString("day"));
        timer.setHour(rst.getString("hour"));
        timer.setMinute(rst.getString("minute"));
        timer.setSecond(rst.getString("second"));
        timer.setStart(rst.getBoolean("is_start"));

        Object filterIdObj = rst.getObject("filter_id");
        if(filterIdObj != null)
          timer.setFilterId(DataAccessFactory.getInstance().createUUID(filterIdObj.toString()));

        Object statisticerIdObj = rst.getObject("statisticer_id");
        if(statisticerIdObj != null)
          timer.setStatisticerId(DataAccessFactory.getInstance().createUUID(statisticerIdObj.toString()));

        timer.setRetryAccount(rst.getLong("retry_account"));
        timer.setRetryDelay(rst.getLong("retry_delay"));
        timer.setSendNull(rst.getBoolean("is_send_null"));

        timerSet.add(timer);
      }
    }
    catch(Exception e)
View Full Code Here

      if(rst.next())
      {
        String createUser = rst.getString("create_user");
        Timestamp createTime = rst.getTimestamp("create_time");

        timer = new TimerImpl(timerId, createUser, createTime);
        timer.setName(rst.getString("name"));
        timer.setActionId(DataAccessFactory.getInstance().createUUID(rst.getObject("action_id").toString()));
        timer.setActionParam(rst.getString("action_param"));
        timer.setYear(rst.getString("year"));
        timer.setMonth(rst.getString("month"));
View Full Code Here

      {
        UUID id = DataAccessFactory.getInstance().createUUID(rst.getObject("id").toString());
        String createUser = rst.getString("create_user");
        Timestamp createTime = rst.getTimestamp("create_time");

        Timer timer = new TimerImpl(id, createUser, createTime);

        timer.setName(rst.getString("name"));
        timer.setActionId(DataAccessFactory.getInstance().createUUID(rst.getObject("action_id").toString()));
        timer.setActionParam(rst.getString("action_param"));
        timer.setYear(rst.getString("year"));
        timer.setMonth(rst.getString("month"));
        timer.setWeek(rst.getString("week"));
        timer.setDay(rst.getString("day"));
        timer.setHour(rst.getString("hour"));
        timer.setMinute(rst.getString("minute"));
        timer.setSecond(rst.getString("second"));
        timer.setStart(rst.getBoolean("is_start"));

        Object filterIdObj = rst.getObject("filter_id");
        if(filterIdObj != null)
          timer.setFilterId(DataAccessFactory.getInstance().createUUID(filterIdObj.toString()));

        Object statisticerIdObj = rst.getObject("statisticer_id");
        if(statisticerIdObj != null)
          timer.setStatisticerId(DataAccessFactory.getInstance().createUUID(statisticerIdObj.toString()));

        timer.setRetryAccount(rst.getLong("retry_account"));
        timer.setRetryDelay(rst.getLong("retry_delay"));
        timer.setSendNull(rst.getBoolean("is_send_null"));

        timerSet.add(timer);
      }
    }
    catch(Exception e)
View Full Code Here

TOP

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

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.