org.quartz.CronTrigger.getGroup()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.quartz.CronTrigger.getGroup()方法的一些代码示例,展示了CronTrigger.getGroup()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CronTrigger.getGroup()方法的具体详情如下:
包路径:org.quartz.CronTrigger
类名称:CronTrigger
方法名:getGroup

CronTrigger.getGroup介绍

暂无

代码示例

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

  1. public String getTriggerGroup() {
  2. return trigger.getGroup();
  3. }

代码示例来源:origin: quartz/quartz-all

  1. /**
  2. * <p>
  3. * Update the cron trigger data.
  4. * </p>
  5. *
  6. * @param conn
  7. * the DB Connection
  8. * @param trigger
  9. * the trigger to insert
  10. * @return the number of rows updated
  11. */
  12. public int updateCronTrigger(Connection conn, CronTrigger trigger)
  13. throws SQLException {
  14. PreparedStatement ps = null;
  15. try {
  16. ps = conn.prepareStatement(rtp(UPDATE_CRON_TRIGGER));
  17. ps.setString(1, trigger.getCronExpression());
  18. ps.setString(2, trigger.getName());
  19. ps.setString(3, trigger.getGroup());
  20. return ps.executeUpdate();
  21. } finally {
  22. closeStatement(ps);
  23. }
  24. }

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

  1. /**
  2. * <p>
  3. * Update the cron trigger data.
  4. * </p>
  5. *
  6. * @param conn
  7. * the DB Connection
  8. * @param trigger
  9. * the trigger to insert
  10. * @return the number of rows updated
  11. */
  12. public int updateCronTrigger(Connection conn, CronTrigger trigger)
  13. throws SQLException {
  14. PreparedStatement ps = null;
  15. try {
  16. ps = conn.prepareStatement(rtp(UPDATE_CRON_TRIGGER));
  17. ps.setString(1, trigger.getCronExpression());
  18. ps.setString(2, trigger.getName());
  19. ps.setString(3, trigger.getGroup());
  20. return ps.executeUpdate();
  21. } finally {
  22. closeStatement(ps);
  23. }
  24. }

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

  1. /**
  2. * <p>
  3. * Insert the cron trigger data.
  4. * </p>
  5. *
  6. * @param conn
  7. * the DB Connection
  8. * @param trigger
  9. * the trigger to insert
  10. * @return the number of rows inserted
  11. */
  12. public int insertCronTrigger(Connection conn, CronTrigger trigger)
  13. throws SQLException {
  14. PreparedStatement ps = null;
  15. try {
  16. ps = conn.prepareStatement(rtp(INSERT_CRON_TRIGGER));
  17. ps.setString(1, trigger.getName());
  18. ps.setString(2, trigger.getGroup());
  19. ps.setString(3, trigger.getCronExpression());
  20. ps.setString(4, trigger.getTimeZone().getID());
  21. return ps.executeUpdate();
  22. } finally {
  23. closeStatement(ps);
  24. }
  25. }

代码示例来源:origin: quartz/quartz-all

  1. /**
  2. * <p>
  3. * Insert the cron trigger data.
  4. * </p>
  5. *
  6. * @param conn
  7. * the DB Connection
  8. * @param trigger
  9. * the trigger to insert
  10. * @return the number of rows inserted
  11. */
  12. public int insertCronTrigger(Connection conn, CronTrigger trigger)
  13. throws SQLException {
  14. PreparedStatement ps = null;
  15. try {
  16. ps = conn.prepareStatement(rtp(INSERT_CRON_TRIGGER));
  17. ps.setString(1, trigger.getName());
  18. ps.setString(2, trigger.getGroup());
  19. ps.setString(3, trigger.getCronExpression());
  20. ps.setString(4, trigger.getTimeZone().getID());
  21. return ps.executeUpdate();
  22. } finally {
  23. closeStatement(ps);
  24. }
  25. }

相关文章