📄 driverdelegate.java
字号:
*/ Trigger[] selectTriggersForJob(Connection conn, String jobName, String groupName) throws SQLException, ClassNotFoundException, IOException; /** * <p> * Select the triggers for a calendar * </p> * * @param conn * the DB Connection * @param calName * the name of the calendar * @return an array of <code>(@link org.quartz.Trigger)</code> objects * associated with the given calendar. * @throws SQLException */ Trigger[] selectTriggersForCalendar(Connection conn, String calName) throws SQLException, ClassNotFoundException, IOException; /** * <p> * Select a trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the <code>{@link org.quartz.Trigger}</code> object */ Trigger selectTrigger(Connection conn, String triggerName, String groupName) throws SQLException, ClassNotFoundException, IOException; /** * <p> * Select a trigger's JobDataMap. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the <code>{@link org.quartz.JobDataMap}</code> of the Trigger, * never null, but possibly empty. */ JobDataMap selectTriggerJobDataMap(Connection conn, String triggerName, String groupName) throws SQLException, ClassNotFoundException, IOException; /** * <p> * Select a trigger' state value. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the <code>{@link org.quartz.Trigger}</code> object */ String selectTriggerState(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Select a trigger' status (state & next fire time). * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return a <code>TriggerStatus</code> object, or null */ TriggerStatus selectTriggerStatus(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Select the total number of triggers stored. * </p> * * @param conn * the DB Connection * @return the total number of triggers stored */ int selectNumTriggers(Connection conn) throws SQLException; /** * <p> * Select all of the trigger group names that are stored. * </p> * * @param conn * the DB Connection * @return an array of <code>String</code> group names */ String[] selectTriggerGroups(Connection conn) throws SQLException; /** * <p> * Select all of the triggers contained in a given group. * </p> * * @param conn * the DB Connection * @param groupName * the group containing the triggers * @return an array of <code>String</code> trigger names */ String[] selectTriggersInGroup(Connection conn, String groupName) throws SQLException; /** * <p> * Select all of the triggers in a given state. * </p> * * @param conn * the DB Connection * @param state * the state the triggers must be in * @return an array of trigger <code>Key</code> s */ Key[] selectTriggersInState(Connection conn, String state) throws SQLException; int insertPausedTriggerGroup(Connection conn, String groupName) throws SQLException; int deletePausedTriggerGroup(Connection conn, String groupName) throws SQLException; int deleteAllPausedTriggerGroups(Connection conn) throws SQLException; boolean isTriggerGroupPaused(Connection conn, String groupName) throws SQLException; Set selectPausedTriggerGroups(Connection conn) throws SQLException; boolean isExistingTriggerGroup(Connection conn, String groupName) throws SQLException; //--------------------------------------------------------------------------- // calendars //--------------------------------------------------------------------------- /** * <p> * Insert a new calendar. * </p> * * @param conn * the DB Connection * @param calendarName * the name for the new calendar * @param calendar * the calendar * @return the number of rows inserted * @throws IOException * if there were problems serializing the calendar */ int insertCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, SQLException; /** * <p> * Update a calendar. * </p> * * @param conn * the DB Connection * @param calendarName * the name for the new calendar * @param calendar * the calendar * @return the number of rows updated * @throws IOException * if there were problems serializing the calendar */ int updateCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, SQLException; /** * <p> * Check whether or not a calendar exists. * </p> * * @param conn * the DB Connection * @param calendarName * the name of the calendar * @return true if the trigger exists, false otherwise */ boolean calendarExists(Connection conn, String calendarName) throws SQLException; /** * <p> * Select a calendar. * </p> * * @param conn * the DB Connection * @param calendarName * the name of the calendar * @return the Calendar * @throws ClassNotFoundException * if a class found during deserialization cannot be found be * found * @throws IOException * if there were problems deserializing the calendar */ Calendar selectCalendar(Connection conn, String calendarName) throws ClassNotFoundException, IOException, SQLException; /** * <p> * Check whether or not a calendar is referenced by any triggers. * </p> * * @param conn * the DB Connection * @param calendarName * the name of the calendar * @return true if any triggers reference the calendar, false otherwise */ boolean calendarIsReferenced(Connection conn, String calendarName) throws SQLException; /** * <p> * Delete a calendar. * </p> * * @param conn * the DB Connection * @param calendarName * the name of the trigger * @return the number of rows deleted */ int deleteCalendar(Connection conn, String calendarName) throws SQLException; /** * <p> * Select the total number of calendars stored. * </p> * * @param conn * the DB Connection * @return the total number of calendars stored */ int selectNumCalendars(Connection conn) throws SQLException; /** * <p> * Select all of the stored calendars. * </p> * * @param conn * the DB Connection * @return an array of <code>String</code> calendar names */ String[] selectCalendars(Connection conn) throws SQLException; //--------------------------------------------------------------------------- // trigger firing //--------------------------------------------------------------------------- /** * <p> * Select the next time that a trigger will be fired. * </p> * * @param conn * the DB Connection * @return the next fire time, or 0 if no trigger will be fired * * @deprecated Does not account for misfires. */ long selectNextFireTime(Connection conn) throws SQLException; /** * <p> * Select the trigger that will be fired at the given fire time. * </p> * * @param conn * the DB Connection * @param fireTime * the time that the trigger will be fired * @return a <code>{@link org.quartz.utils.Key}</code> representing the * trigger that will be fired at the given fire time, or null if no * trigger will be fired at that time */ Key selectTriggerForFireTime(Connection conn, long fireTime) throws SQLException; /** * <p> * Select the next trigger which will fire to fire between the two given timestamps * in ascending order of fire time, and then descending by priority. * </p> * * @param conn * the DB Connection * @param noLaterThan * highest value of <code>getNextFireTime()</code> of the triggers (exclusive) * @param noEarlierThan * highest value of <code>getNextFireTime()</code> of the triggers (inclusive) * * @return The next identifier of the next trigger to be fired. */ Key selectTriggerToAcquire(Connection conn, long noLaterThan, long noEarlierThan) throws SQLException; /** * <p> * Insert a fired trigger. * </p> * * @param conn * the DB Connection * @param trigger * the trigger * @param state * the state that the trigger should be stored in * @return the number of rows inserted */ int insertFiredTrigger(Connection conn, Trigger trigger, String state, JobDetail jobDetail) throws SQLException; /** * <p> * Select the states of all fired-trigger records for a given trigger, or * trigger group if trigger name is <code>null</code>. * </p> * * @return a List of FiredTriggerRecord objects. */ List selectFiredTriggerRecords(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Select the states of all fired-trigger records for a given job, or job * group if job name is <code>null</code>. * </p> * * @return a List of FiredTriggerRecord objects. */ List selectFiredTriggerRecordsByJob(Connection conn, String jobName, String groupName) throws SQLException; /** * <p> * Select the states of all fired-trigger records for a given scheduler * instance. * </p> * * @return a List of FiredTriggerRecord objects. */ List selectInstancesFiredTriggerRecords(Connection conn, String instanceName) throws SQLException; /** * <p> * Select the distinct instance names of all fired-trigger records. * </p> * * <p> * This is useful when trying to identify orphaned fired triggers (a * fired trigger without a scheduler state record.) * </p> * * @return a Set of String objects. */ Set selectFiredTriggerInstanceNames(Connection conn) throws SQLException; /** * <p> * Delete a fired trigger. * </p> * * @param conn * the DB Connection * @param entryId * the fired trigger entry to delete * @return the number of rows deleted */ int deleteFiredTrigger(Connection conn, String entryId) throws SQLException; /** * <p> * Get the number instances of the identified job currently executing. * </p> * * @param conn * the DB Connection * @return the number instances of the identified job currently executing. */ int selectJobExecutionCount(Connection conn, String jobName, String jobGroup) throws SQLException; /** * <p> * Insert a scheduler-instance state record. * </p> * * @param conn * the DB Connection * @return the number of inserted rows. */ int insertSchedulerState(Connection conn, String instanceId, long checkInTime, long interval) throws SQLException; /** * <p> * Delete a scheduler-instance state record. * </p> * * @param conn * the DB Connection * @return the number of deleted rows. */ int deleteSchedulerState(Connection conn, String instanceId) throws SQLException; /** * <p> * Update a scheduler-instance state record. * </p> * * @param conn * the DB Connection * @return the number of updated rows. */ int updateSchedulerState(Connection conn, String instanceId, long checkInTime) throws SQLException; /** * <p> * A List of all current <code>SchedulerStateRecords</code>. * </p> * * <p> * If instanceId is not null, then only the record for the identified * instance will be returned. * </p> * * @param conn * the DB Connection */ List selectSchedulerStateRecords(Connection conn, String instanceId) throws SQLException;}// EOF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -