|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.quartz.impl.jdbcjobstore.StdJDBCDelegate
This is meant to be an abstract base class for most, if not all,
implementations. Subclasses should override only those methods that need
special handling for the DBMS driver in question.
DriverDelegate
| Field Summary | |
protected java.lang.String |
instanceId
|
protected org.apache.commons.logging.Log |
logger
|
protected java.lang.String |
tablePrefix
|
protected boolean |
useProperties
|
| Constructor Summary | |
StdJDBCDelegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId)
Create new StdJDBCDelegate instance. |
|
StdJDBCDelegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId,
java.lang.Boolean useProperties)
Create new StdJDBCDelegate instance. |
|
| Method Summary | |
boolean |
calendarExists(java.sql.Connection conn,
java.lang.String calendarName)
Check whether or not a calendar exists. |
boolean |
calendarIsReferenced(java.sql.Connection conn,
java.lang.String calendarName)
Check whether or not a calendar is referenced by any triggers. |
protected boolean |
canUseProperties()
|
protected java.util.Map |
convertFromProperty(java.util.Properties properties)
convert the JobDataMap into a list of properties |
protected java.util.Properties |
convertToProperty(java.util.Map data)
convert the JobDataMap into a list of properties |
int |
deleteAllPausedTriggerGroups(java.sql.Connection conn)
|
int |
deleteBlobTrigger(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Delete the cron trigger data for a trigger. |
int |
deleteCalendar(java.sql.Connection conn,
java.lang.String calendarName)
Delete a calendar. |
int |
deleteCronTrigger(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Delete the cron trigger data for a trigger. |
int |
deleteFiredTrigger(java.sql.Connection conn,
java.lang.String entryId)
Delete a fired trigger. |
int |
deleteFiredTriggers(java.sql.Connection conn)
Delete all fired triggers. |
int |
deleteFiredTriggers(java.sql.Connection conn,
java.lang.String instanceId)
Delete all fired triggers of the given instance. |
int |
deleteJobDetail(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Delete the job detail record for the given job. |
int |
deleteJobListeners(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Delete all job listeners for the given job. |
int |
deletePausedTriggerGroup(java.sql.Connection conn,
java.lang.String groupName)
|
int |
deleteSchedulerState(java.sql.Connection conn,
java.lang.String instanceId)
Delete a scheduler-instance state record. |
int |
deleteSimpleTrigger(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Delete the simple trigger data for a trigger. |
int |
deleteTrigger(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Delete the base trigger data for a trigger. |
int |
deleteTriggerListeners(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Delete all of the listeners associated with a given trigger. |
int |
deleteVolatileFiredTriggers(java.sql.Connection conn)
Delete all volatile fired triggers. |
protected java.lang.Object |
getJobDetailFromBlob(java.sql.ResultSet rs,
java.lang.String colName)
This method should be overridden by any delegate subclasses that need special handling for BLOBs for job details. |
protected java.lang.Object |
getObjectFromBlob(java.sql.ResultSet rs,
java.lang.String colName)
This method should be overridden by any delegate subclasses that need special handling for BLOBs. |
int |
insertBlobTrigger(java.sql.Connection conn,
Trigger trigger)
Insert the blob trigger data. |
int |
insertCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
Insert a new calendar. |
int |
insertCronTrigger(java.sql.Connection conn,
CronTrigger trigger)
Insert the cron trigger data. |
int |
insertFiredTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail job)
Insert a fired trigger. |
int |
insertJobDetail(java.sql.Connection conn,
JobDetail job)
Insert the job detail record. |
int |
insertJobListener(java.sql.Connection conn,
JobDetail job,
java.lang.String listener)
Associate a listener with a job. |
int |
insertPausedTriggerGroup(java.sql.Connection conn,
java.lang.String groupName)
|
int |
insertSchedulerState(java.sql.Connection conn,
java.lang.String instanceId,
long checkInTime,
long interval,
java.lang.String recoverer)
Insert a scheduler-instance state record. |
int |
insertSimpleTrigger(java.sql.Connection conn,
SimpleTrigger trigger)
Insert the simple trigger data. |
int |
insertTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail jobDetail)
Insert the base trigger data. |
int |
insertTriggerListener(java.sql.Connection conn,
Trigger trigger,
java.lang.String listener)
Associate a listener with the given trigger. |
boolean |
isExistingTriggerGroup(java.sql.Connection conn,
java.lang.String groupName)
|
boolean |
isJobStateful(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Check whether or not the given job is stateful. |
boolean |
isTriggerGroupPaused(java.sql.Connection conn,
java.lang.String groupName)
|
boolean |
jobExists(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Check whether or not the given job exists. |
protected java.lang.String |
rtp(java.lang.String query)
Replace the table prefix in a query by replacing any occurrences of "{0}" with the table prefix. |
Calendar |
selectCalendar(java.sql.Connection conn,
java.lang.String calendarName)
Select a calendar. |
java.lang.String[] |
selectCalendars(java.sql.Connection conn)
Select all of the stored calendars. |
java.util.List |
selectFiredTriggerRecords(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Select the states of all fired-trigger records for a given trigger, or trigger group if trigger name is null. |
java.util.List |
selectFiredTriggerRecordsByJob(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Select the states of all fired-trigger records for a given job, or job group if job name is null. |
java.util.List |
selectInstancesFiredTriggerRecords(java.sql.Connection conn,
java.lang.String instanceName)
Select the states of all fired-trigger records for a given scheduler instance. |
JobDetail |
selectJobDetail(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName,
ClassLoadHelper loadHelper)
Select the JobDetail object for a given job name / group name. |
int |
selectJobExecutionCount(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String jobGroup)
Get the number instances of the identified job currently executing. |
JobDetail |
selectJobForTrigger(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName,
ClassLoadHelper loadHelper)
Select the job to which the trigger is associated. |
java.lang.String[] |
selectJobGroups(java.sql.Connection conn)
Select all of the job group names that are stored. |
java.lang.String[] |
selectJobListeners(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Get all of the listeners for a given job. |
java.lang.String[] |
selectJobsInGroup(java.sql.Connection conn,
java.lang.String groupName)
Select all of the jobs contained in a given group. |
Key[] |
selectMisfiredTriggers(java.sql.Connection conn,
long ts)
Get the names of all of the triggers that have misfired. |
Key[] |
selectMisfiredTriggersInGroupInState(java.sql.Connection conn,
java.lang.String groupName,
java.lang.String state,
long ts)
Get the names of all of the triggers in the given group and state that have misfired. |
Key[] |
selectMisfiredTriggersInState(java.sql.Connection conn,
java.lang.String state,
long ts)
Get the names of all of the triggers in the given state that have misfired - according to the given timestamp. |
long |
selectNextFireTime(java.sql.Connection conn)
Select the next time that a trigger will be fired. |
int |
selectNumCalendars(java.sql.Connection conn)
Select the total number of calendars stored. |
int |
selectNumJobs(java.sql.Connection conn)
Select the total number of jobs stored. |
int |
selectNumTriggers(java.sql.Connection conn)
Select the total number of triggers stored. |
int |
selectNumTriggersForJob(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Select the number of triggers associated with a given job. |
java.util.Set |
selectPausedTriggerGroups(java.sql.Connection conn)
|
java.util.List |
selectSchedulerStateRecords(java.sql.Connection conn,
java.lang.String instanceId)
A List of all current SchedulerStateRecords. |
java.util.List |
selectStatefulJobsOfTriggerGroup(java.sql.Connection conn,
java.lang.String groupName)
Select the stateful jobs which are referenced by triggers in the given trigger group. |
Trigger |
selectTrigger(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Select a trigger. |
Key |
selectTriggerForFireTime(java.sql.Connection conn,
long fireTime)
Select the trigger that will be fired at the given fire time. |
java.lang.String[] |
selectTriggerGroups(java.sql.Connection conn)
Select all of the trigger group names that are stored. |
java.lang.String[] |
selectTriggerListeners(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Select the listeners associated with a given trigger. |
Key[] |
selectTriggerNamesForJob(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Get the names of all of the triggers associated with the given job. |
Trigger[] |
selectTriggersForCalendar(java.sql.Connection conn,
java.lang.String calName)
Select the triggers for a calendar |
Trigger[] |
selectTriggersForJob(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
Select the triggers for a job |
Trigger[] |
selectTriggersForRecoveringJobs(java.sql.Connection conn)
Select all of the triggers for jobs that are requesting recovery. |
java.lang.String[] |
selectTriggersInGroup(java.sql.Connection conn,
java.lang.String groupName)
Select all of the triggers contained in a given group. |
Key[] |
selectTriggersInState(java.sql.Connection conn,
java.lang.String state)
Select all of the triggers in a given state. |
java.lang.String |
selectTriggerState(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Select a trigger' state value. |
TriggerStatus |
selectTriggerStatus(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Select a trigger' status (state & next fire time). |
Key[] |
selectVolatileJobs(java.sql.Connection conn)
Get the names of all of the jobs that are volatile. |
Key[] |
selectVolatileTriggers(java.sql.Connection conn)
Get the names of all of the triggers that are volatile. |
protected java.io.ByteArrayOutputStream |
serializeJobData(JobDataMap data)
Remove the transient data from and then create a serialized java.util.ByteArrayOutputStream
version of a . |
protected java.io.ByteArrayOutputStream |
serializeObject(java.lang.Object obj)
Create a serialized java.util.ByteArrayOutputStream
version of an Object. |
boolean |
triggerExists(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
Check whether or not a trigger exists. |
int |
updateBlobTrigger(java.sql.Connection conn,
Trigger trigger)
Update the blob trigger data. |
int |
updateCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
Update a calendar. |
int |
updateCronTrigger(java.sql.Connection conn,
CronTrigger trigger)
Update the cron trigger data. |
int |
updateJobData(java.sql.Connection conn,
JobDetail job)
Update the job data map for the given job. |
int |
updateJobDetail(java.sql.Connection conn,
JobDetail job)
Update the job detail record. |
int |
updateSimpleTrigger(java.sql.Connection conn,
SimpleTrigger trigger)
Update the simple trigger data. |
int |
updateTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail jobDetail)
Update the base trigger data. |
int |
updateTriggerGroupStateFromOtherState(java.sql.Connection conn,
java.lang.String groupName,
java.lang.String newState,
java.lang.String oldState)
Update all of the triggers of the given group to the given new state, if they are in the given old state. |
int |
updateTriggerGroupStateFromOtherStates(java.sql.Connection conn,
java.lang.String groupName,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2,
java.lang.String oldState3)
Update all triggers in the given group to the given new state, if they are in one of the given old states. |
int |
updateTriggerState(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName,
java.lang.String state)
Update the state for a given trigger. |
int |
updateTriggerStateFromOtherState(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName,
java.lang.String newState,
java.lang.String oldState)
Update the given trigger to the given new state, if it is in the given old state. |
int |
updateTriggerStateFromOtherStates(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2,
java.lang.String oldState3)
Update the given trigger to the given new state, if it is one of the given old states. |
int |
updateTriggerStateFromOtherStatesBeforeTime(java.sql.Connection conn,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2,
long time)
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. |
int |
updateTriggerStatesForJob(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName,
java.lang.String state)
Update the states of all triggers associated with the given job. |
int |
updateTriggerStatesForJobFromOtherState(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName,
java.lang.String state,
java.lang.String oldState)
Update the states of any triggers associated with the given job, that are the given current state. |
int |
updateTriggerStatesFromOtherStates(java.sql.Connection conn,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2)
Insert the job detail record. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.commons.logging.Log logger
protected java.lang.String tablePrefix
protected java.lang.String instanceId
protected boolean useProperties
| Constructor Detail |
public StdJDBCDelegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId)
Create new StdJDBCDelegate instance.
logger - the logger to use during executiontablePrefix - the prefix of all table names
public StdJDBCDelegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId,
java.lang.Boolean useProperties)
Create new StdJDBCDelegate instance.
logger - the logger to use during executiontablePrefix - the prefix of all table names| Method Detail |
protected boolean canUseProperties()
public int updateTriggerStatesFromOtherStates(java.sql.Connection conn,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2)
throws java.sql.SQLException
Insert the job detail record.
updateTriggerStatesFromOtherStates in interface DriverDelegateconn - the DB ConnectionnewState - the new state for the triggersoldState1 - the first old state to updateoldState2 - the second old state to update
public Key[] selectMisfiredTriggers(java.sql.Connection conn,
long ts)
throws java.sql.SQLException
Get the names of all of the triggers that have misfired.
selectMisfiredTriggers in interface DriverDelegateconn - the DB ConnectionKey objects
public Key[] selectTriggersInState(java.sql.Connection conn,
java.lang.String state)
throws java.sql.SQLException
Select all of the triggers in a given state.
selectTriggersInState in interface DriverDelegateconn - the DB Connectionstate - the state the triggers must be inKey s
public Key[] selectMisfiredTriggersInState(java.sql.Connection conn,
java.lang.String state,
long ts)
throws java.sql.SQLException
DriverDelegateGet the names of all of the triggers in the given state that have misfired - according to the given timestamp.
selectMisfiredTriggersInState in interface DriverDelegateorg.quartz.impl.jdbcjobstore.DriverDelegateconn - the DB ConnectionKey objects
public Key[] selectMisfiredTriggersInGroupInState(java.sql.Connection conn,
java.lang.String groupName,
java.lang.String state,
long ts)
throws java.sql.SQLException
Get the names of all of the triggers in the given group and state that have misfired.
selectMisfiredTriggersInGroupInState in interface DriverDelegateconn - the DB ConnectionKey objects
public Trigger[] selectTriggersForRecoveringJobs(java.sql.Connection conn)
throws java.sql.SQLException
Select all of the triggers for jobs that are requesting recovery. The
returned trigger objects will have unique "recoverXXX" trigger names and
will be in the
trigger group.
Scheduler.DEFAULT_RECOVERY_GROUP
In order to preserve the ordering of the triggers, the fire time will be
set from the COL_FIRED_TIME column in the TABLE_FIRED_TRIGGERS
table. The caller is responsible for calling computeFirstFireTime
on each returned trigger. It is also up to the caller to insert the
returned triggers to ensure that they are fired.
selectTriggersForRecoveringJobs in interface DriverDelegateconn - the DB ConnectionTrigger objects
public int deleteFiredTriggers(java.sql.Connection conn)
throws java.sql.SQLException
Delete all fired triggers.
deleteFiredTriggers in interface DriverDelegateconn - the DB Connection
public int deleteFiredTriggers(java.sql.Connection conn,
java.lang.String instanceId)
throws java.sql.SQLException
DriverDelegateDelete all fired triggers of the given instance.
deleteFiredTriggers in interface DriverDelegateorg.quartz.impl.jdbcjobstore.DriverDelegateconn - the DB Connection
public int insertJobDetail(java.sql.Connection conn,
JobDetail job)
throws java.io.IOException,
java.sql.SQLException
Insert the job detail record.
insertJobDetail in interface DriverDelegateconn - the DB Connectionjob - the job to insertjava.io.IOException - if there were problems serializing the JobDataMap
public int updateJobDetail(java.sql.Connection conn,
JobDetail job)
throws java.io.IOException,
java.sql.SQLException
Update the job detail record.
updateJobDetail in interface DriverDelegateconn - the DB Connectionjob - the job to updatejava.io.IOException - if there were problems serializing the JobDataMap
public Key[] selectTriggerNamesForJob(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
throws java.sql.SQLException
Get the names of all of the triggers associated with the given job.
selectTriggerNamesForJob in interface DriverDelegateconn - the DB ConnectionjobName - the name of the jobgroupName - the group containing the jobKey objects
public int deleteJobListeners(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
throws java.sql.SQLException
Delete all job listeners for the given job.
deleteJobListeners in interface DriverDelegateconn - the DB ConnectionjobName - the name of the jobgroupName - the group containing the job
public int deleteJobDetail(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
throws java.sql.SQLException
Delete the job detail record for the given job.
deleteJobDetail in interface DriverDelegateconn - the DB ConnectionjobName - the name of the jobgroupName - the group containing the job
public boolean isJobStateful(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
throws java.sql.SQLException
Check whether or not the given job is stateful.
isJobStateful in interface DriverDelegateconn - the DB ConnectionjobName - the name of the jobgroupName - the group containing the job
public boolean jobExists(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
throws java.sql.SQLException
Check whether or not the given job exists.
jobExists in interface DriverDelegateconn - the DB ConnectionjobName - the name of the jobgroupName - the group containing the job
public int updateJobData(java.sql.Connection conn,
JobDetail job)
throws java.io.IOException,
java.sql.SQLException
Update the job data map for the given job.
updateJobData in interface DriverDelegateconn - the DB Connectionjob - the job to update
public int insertJobListener(java.sql.Connection conn,
JobDetail job,
java.lang.String listener)
throws java.sql.SQLException
Associate a listener with a job.
insertJobListener in interface DriverDelegateconn - the DB Connectionjob - the job to associate with the listenerlistener - the listener to insert
public java.lang.String[] selectJobListeners(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName)
throws java.sql.SQLException
Get all of the listeners for a given job.
selectJobListeners in interface DriverDelegateconn - the DB ConnectionjobName - the job name whose listeners are wantedgroupName - the group containing the jobString listener names
public JobDetail selectJobDetail(java.sql.Connection conn,
java.lang.String jobName,
java.lang.String groupName,
ClassLoadHelper loadHelper)
throws java.lang.ClassNotFoundException,
java.io.IOException,
java.sql.SQLException
Select the JobDetail object for a given job name / group name.
selectJobDetail in interface DriverDelegateconn - the DB ConnectionjobName - the job name whose listeners are wantedgroupName - the group containing the jobjava.lang.ClassNotFoundException - if a class found during deserialization cannot be found or if
the job class could not be foundjava.io.IOException - if deserialization causes an error
public int selectNumJobs(java.sql.Connection conn)
throws java.sql.SQLException
Select the total number of jobs stored.
selectNumJobs in interface DriverDelegateconn - the DB Connection
public java.lang.String[] selectJobGroups(java.sql.Connection conn)
throws java.sql.SQLException
Select all of the job group names that are stored.
selectJobGroups in interface DriverDelegateconn - the DB ConnectionString group names
public java.lang.String[] selectJobsInGroup(java.sql.Connection conn,
java.lang.String groupName)
throws java.sql.SQLException
Select all of the jobs contained in a given group.
selectJobsInGroup in interface DriverDelegateconn - the DB ConnectiongroupName - the group containing the jobsString job names
public int insertTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail jobDetail)
throws java.sql.SQLException,
java.io.IOException
Insert the base trigger data.
insertTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insertstate - the state that the trigger should be stored in
public int insertSimpleTrigger(java.sql.Connection conn,
SimpleTrigger trigger)
throws java.sql.SQLException
Insert the simple trigger data.
insertSimpleTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insert
public int insertCronTrigger(java.sql.Connection conn,
CronTrigger trigger)
throws java.sql.SQLException
Insert the cron trigger data.
insertCronTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insert
public int insertBlobTrigger(java.sql.Connection conn,
Trigger trigger)
throws java.sql.SQLException,
java.io.IOException
Insert the blob trigger data.
insertBlobTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insert
public int updateTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail jobDetail)
throws java.sql.SQLException,
java.io.IOException
Update the base trigger data.
updateTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insertstate - the state that the trigger should be stored in
public int updateSimpleTrigger(java.sql.Connection conn,
SimpleTrigger trigger)
throws java.sql.SQLException
Update the simple trigger data.
updateSimpleTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insert
public int updateCronTrigger(java.sql.Connection conn,
CronTrigger trigger)
throws java.sql.SQLException
Update the cron trigger data.
updateCronTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insert
public int updateBlobTrigger(java.sql.Connection conn,
Trigger trigger)
throws java.sql.SQLException,
java.io.IOException
Update the blob trigger data.
updateBlobTrigger in interface DriverDelegateconn - the DB Connectiontrigger - the trigger to insert
public boolean triggerExists(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName)
throws java.sql.SQLException
Check whether or not a trigger exists.
triggerExists in interface DriverDelegateconn - the DB ConnectiontriggerName - the name of the triggergroupName - the group containing the trigger
public int updateTriggerState(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName,
java.lang.String state)
throws java.sql.SQLException
Update the state for a given trigger.
updateTriggerState in interface DriverDelegateconn - the DB ConnectiontriggerName - the name of the triggergroupName - the group containing the triggerstate - the new state for the trigger
public int updateTriggerStateFromOtherStates(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2,
java.lang.String oldState3)
throws java.sql.SQLException
Update the given trigger to the given new state, if it is one of the given old states.
updateTriggerStateFromOtherStates in interface DriverDelegateconn - the DB connectiontriggerName - the name of the triggergroupName - the group containing the triggernewState - the new state for the triggeroldState1 - one of the old state the trigger must be inoldState2 - one of the old state the trigger must be inoldState3 - one of the old state the trigger must be injava.sql.SQLException -
public int updateTriggerStateFromOtherStatesBeforeTime(java.sql.Connection conn,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2,
long time)
throws java.sql.SQLException
DriverDelegateUpdate 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.
updateTriggerStateFromOtherStatesBeforeTime in interface DriverDelegateorg.quartz.impl.jdbcjobstore.DriverDelegateconn - the DB connectionnewState - the new state for the triggeroldState1 - one of the old state the trigger must be inoldState2 - one of the old state the trigger must be intime - the time before which the trigger's next fire time must bejava.sql.SQLException -
public int updateTriggerGroupStateFromOtherStates(java.sql.Connection conn,
java.lang.String groupName,
java.lang.String newState,
java.lang.String oldState1,
java.lang.String oldState2,
java.lang.String oldState3)
throws java.sql.SQLException
Update all triggers in the given group to the given new state, if they are in one of the given old states.
updateTriggerGroupStateFromOtherStates in interface DriverDelegateconn - the DB connectiongroupName - the group containing the triggernewState - the new state for the triggeroldState1 - one of the old state the trigger must be inoldState2 - one of the old state the trigger must be inoldState3 - one of the old state the trigger must be injava.sql.SQLException -
public int updateTriggerStateFromOtherState(java.sql.Connection conn,
java.lang.String triggerName,
java.lang.String groupName,
java.lang.String newState,
java.lang.String oldState)
throws java.sql.SQLException
Update the given trigger to the given new state, if it is in the given old state.
updateTriggerStateFromOtherState in interface DriverDelegateconn - the DB connectiontriggerName - the name of the triggergroupName - the group containing the triggernewState - the new state for the triggeroldState - the old state the trigger must be injava.sql.SQLExce