📄 driverdelegate.java
字号:
* <p> * Insert the base trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @param state * the state that the trigger should be stored in * @return the number of rows inserted */ public int insertTrigger(Connection conn, Trigger trigger, String state, JobDetail jobDetail) throws SQLException, IOException; /** * <p> * Insert the simple trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @return the number of rows inserted */ public int insertSimpleTrigger(Connection conn, SimpleTrigger trigger) throws SQLException; /** * <p> * Insert the blob trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @return the number of rows inserted */ public int insertBlobTrigger(Connection conn, Trigger trigger) throws SQLException, IOException; /** * <p> * Insert the cron trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @return the number of rows inserted */ public int insertCronTrigger(Connection conn, CronTrigger trigger) throws SQLException; /** * <p> * Update the base trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @param state * the state that the trigger should be stored in * @return the number of rows updated */ public int updateTrigger(Connection conn, Trigger trigger, String state, JobDetail jobDetail) throws SQLException, IOException; /** * <p> * Update the simple trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @return the number of rows updated */ public int updateSimpleTrigger(Connection conn, SimpleTrigger trigger) throws SQLException; /** * <p> * Update the cron trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @return the number of rows updated */ public int updateCronTrigger(Connection conn, CronTrigger trigger) throws SQLException; /** * <p> * Update the blob trigger data. * </p> * * @param conn * the DB Connection * @param trigger * the trigger to insert * @return the number of rows updated */ public int updateBlobTrigger(Connection conn, Trigger trigger) throws SQLException, IOException; /** * <p> * Check whether or not a trigger exists. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the number of rows updated */ public boolean triggerExists(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Update the state for a given trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @param state * the new state for the trigger * @return the number of rows updated */ public int updateTriggerState(Connection conn, String triggerName, String groupName, String state) throws SQLException; /** * <p> * Update the given trigger to the given new state, if it is in the given * old state. * </p> * * @param conn * the DB connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @param newState * the new state for the trigger * @param oldState * the old state the trigger must be in * @return int the number of rows updated * @throws SQLException */ public int updateTriggerStateFromOtherState(Connection conn, String triggerName, String groupName, String newState, String oldState) throws SQLException; /** * <p> * Update the given trigger to the given new state, if it is one of the * given old states. * </p> * * @param conn * the DB connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @param newState * the new state for the trigger * @param oldState1 * one of the old state the trigger must be in * @param oldState2 * one of the old state the trigger must be in * @param oldState3 * one of the old state the trigger must be in * @return int the number of rows updated * @throws SQLException */ public int updateTriggerStateFromOtherStates(Connection conn, String triggerName, String groupName, String newState, String oldState1, String oldState2, String oldState3) throws SQLException; /** * <p> * Update the all triggers to the given new state, if they are in one of * the given old states AND its next fire time is before the given time. * </p> * * @param conn * the DB connection * @param newState * the new state for the trigger * @param oldState1 * one of the old state the trigger must be in * @param oldState2 * one of the old state the trigger must be in * @param time * the time before which the trigger's next fire time must be * @return int the number of rows updated * @throws SQLException */ public int updateTriggerStateFromOtherStatesBeforeTime(Connection conn, String newState, String oldState1, String oldState2, long time) throws SQLException; /** * <p> * Update all triggers in the given group to the given new state, if they * are in one of the given old states. * </p> * * @param conn * the DB connection * @param groupName * the group containing the trigger * @param newState * the new state for the trigger * @param oldState1 * one of the old state the trigger must be in * @param oldState2 * one of the old state the trigger must be in * @param oldState3 * one of the old state the trigger must be in * @return int the number of rows updated * @throws SQLException */ public int updateTriggerGroupStateFromOtherStates(Connection conn, String groupName, String newState, String oldState1, String oldState2, String oldState3) throws SQLException; /** * <p> * Update all of the triggers of the given group to the given new state, if * they are in the given old state. * </p> * * @param conn * the DB connection * @param groupName * the group containing the triggers * @param newState * the new state for the trigger group * @param oldState * the old state the triggers must be in * @return int the number of rows updated * @throws SQLException */ public int updateTriggerGroupStateFromOtherState(Connection conn, String groupName, String newState, String oldState) throws SQLException; /** * <p> * Update the states of all triggers associated with the given job. * </p> * * @param conn * the DB Connection * @param jobName * the name of the job * @param groupName * the group containing the job * @param state * the new state for the triggers * @return the number of rows updated */ public int updateTriggerStatesForJob(Connection conn, String jobName, String groupName, String state) throws SQLException; /** * <p> * Update the states of any triggers associated with the given job, that * are the given current state. * </p> * * @param conn * the DB Connection * @param jobName * the name of the job * @param groupName * the group containing the job * @param state * the new state for the triggers * @param oldState * the old state of the triggers * @return the number of rows updated */ public int updateTriggerStatesForJobFromOtherState(Connection conn, String jobName, String groupName, String state, String oldState) throws SQLException; /** * <p> * Delete all of the listeners associated with a given trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger whose listeners will be deleted * @param groupName * the name of the group containing the trigger * @return the number of rows deleted */ public int deleteTriggerListeners(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Associate a listener with the given trigger. * </p> * * @param conn * the DB Connection * @param trigger * the trigger * @param listener * the name of the listener to associate with the trigger * @return the number of rows inserted */ public int insertTriggerListener(Connection conn, Trigger trigger, String listener) throws SQLException; /** * <p> * Select the listeners associated with a given trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return array of <code>String</code> trigger listener names */ public String[] selectTriggerListeners(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Delete the simple trigger data for a trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the number of rows deleted */ public int deleteSimpleTrigger(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Delete the BLOB trigger data for a trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the number of rows deleted */ public int deleteBlobTrigger(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Delete the cron trigger data for a trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the number of rows deleted */ public int deleteCronTrigger(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Delete the base trigger data for a trigger. * </p> * * @param conn * the DB Connection * @param triggerName * the name of the trigger * @param groupName * the group containing the trigger * @return the number of rows deleted */ public int deleteTrigger(Connection conn, String triggerName, String groupName) throws SQLException; /** * <p> * Select the number of triggers associated with a given job. * </p> * * @param conn * the DB Connection * @param jobName * the name of the job * @param groupName * the group containing the job * @return the number of triggers for the given job */ public int selectNumTriggersForJob(Connection conn, String jobName, String groupName) throws SQLException; /** * <p> * Select the job to which the trigger is associated. * </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.JobDetail}</code> object
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -