|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.impl.jdbcjobstore.DB2v8Delegate
Quartz JDBC delegate for DB2 v8 databases.
| Field Summary |
| Fields inherited from class org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
instanceId, logger, tablePrefix, useProperties |
| Constructor Summary | |
DB2v8Delegate(org.apache.commons.logging.Log logger,
String tablePrefix,
String instanceId)
|
|
DB2v8Delegate(org.apache.commons.logging.Log log,
String tablePrefix,
String instanceId,
Boolean useProperties)
|
|
| Method Summary | |
int |
deleteVolatileFiredTriggers(Connection conn)
Delete all volatile fired triggers. |
int |
insertCalendar(Connection conn,
String calendarName,
Calendar calendar)
Insert a new calendar. |
int |
insertFiredTrigger(Connection conn,
Trigger trigger,
String state,
JobDetail job)
Insert a fired trigger. |
int |
insertJobDetail(Connection conn,
JobDetail job)
Insert the job detail record. |
int |
insertTrigger(Connection conn,
Trigger trigger,
String state,
JobDetail jobDetail)
Insert the base trigger data. |
Trigger[] |
selectTriggersForRecoveringJobs(Connection conn)
Select all of the triggers for jobs that are requesting recovery. |
Key[] |
selectVolatileJobs(Connection conn)
Get the names of all of the jobs that are volatile. |
Key[] |
selectVolatileTriggers(Connection conn)
Get the names of all of the triggers that are volatile. |
int |
updateCalendar(Connection conn,
String calendarName,
Calendar calendar)
Update a calendar. |
int |
updateJobData(Connection conn,
JobDetail job)
Update the job data map for the given job. |
int |
updateJobDetail(Connection conn,
JobDetail job)
Update the job detail record. |
int |
updateTrigger(Connection conn,
Trigger trigger,
String state,
JobDetail jobDetail)
Update the base trigger data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DB2v8Delegate(org.apache.commons.logging.Log logger,
String tablePrefix,
String instanceId)
public DB2v8Delegate(org.apache.commons.logging.Log log,
String tablePrefix,
String instanceId,
Boolean useProperties)
| Method Detail |
public Trigger[] selectTriggersForRecoveringJobs(Connection conn)
throws SQLException,
IOException,
ClassNotFoundException
StdJDBCDelegate
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 DriverDelegateselectTriggersForRecoveringJobs in class StdJDBCDelegateconn - the DB Connection
Trigger objects
SQLException
IOException
ClassNotFoundException
public int insertJobDetail(Connection conn,
JobDetail job)
throws IOException,
SQLException
StdJDBCDelegateInsert the job detail record.
insertJobDetail in interface DriverDelegateinsertJobDetail in class StdJDBCDelegateconn - the DB Connectionjob - the job to insert
IOException - if there were problems serializing the JobDataMap
SQLException
public int updateJobDetail(Connection conn,
JobDetail job)
throws IOException,
SQLException
StdJDBCDelegateUpdate the job detail record.
updateJobDetail in interface DriverDelegateupdateJobDetail in class StdJDBCDelegateconn - the DB Connectionjob - the job to update
IOException - if there were problems serializing the JobDataMap
SQLException
public int insertTrigger(Connection conn,
Trigger trigger,
String state,
JobDetail jobDetail)
throws SQLException,
IOException
StdJDBCDelegateInsert the base trigger data.
insertTrigger in interface DriverDelegateinsertTrigger in class StdJDBCDelegateconn - the DB Connectiontrigger - the trigger to insertstate - the state that the trigger should be stored in
SQLException
IOException
public int updateTrigger(Connection conn,
Trigger trigger,
String state,
JobDetail jobDetail)
throws SQLException,
IOException
StdJDBCDelegateUpdate the base trigger data.
updateTrigger in interface DriverDelegateupdateTrigger in class StdJDBCDelegateconn - the DB Connectiontrigger - the trigger to insertstate - the state that the trigger should be stored in
SQLException
IOException
public int insertFiredTrigger(Connection conn,
Trigger trigger,
String state,
JobDetail job)
throws SQLException
StdJDBCDelegateInsert a fired trigger.
insertFiredTrigger in interface DriverDelegateinsertFiredTrigger in class StdJDBCDelegateconn - the DB Connectiontrigger - the triggerstate - the state that the trigger should be stored in
SQLException
public int updateJobData(Connection conn,
JobDetail job)
throws IOException,
SQLException
StdJDBCDelegateUpdate the job data map for the given job.
updateJobData in interface DriverDelegateupdateJobData in class StdJDBCDelegateconn - the DB Connectionjob - the job to update
IOException
SQLException
public int insertCalendar(Connection conn,
String calendarName,
Calendar calendar)
throws IOException,
SQLException
StdJDBCDelegateInsert a new calendar.
insertCalendar in interface DriverDelegateinsertCalendar in class StdJDBCDelegateconn - the DB ConnectioncalendarName - the name for the new calendarcalendar - the calendar
IOException - if there were problems serializing the calendar
SQLException
public int updateCalendar(Connection conn,
String calendarName,
Calendar calendar)
throws IOException,
SQLException
StdJDBCDelegateUpdate a calendar.
updateCalendar in interface DriverDelegateupdateCalendar in class StdJDBCDelegateconn - the DB ConnectioncalendarName - the name for the new calendarcalendar - the calendar
IOException - if there were problems serializing the calendar
SQLException
public int deleteVolatileFiredTriggers(Connection conn)
throws SQLException
DriverDelegateDelete all volatile fired triggers.
deleteVolatileFiredTriggers in interface DriverDelegatedeleteVolatileFiredTriggers in class StdJDBCDelegateSQLException
public Key[] selectVolatileTriggers(Connection conn)
throws SQLException
DriverDelegateGet the names of all of the triggers that are volatile.
selectVolatileTriggers in interface DriverDelegateselectVolatileTriggers in class StdJDBCDelegateSQLException
public Key[] selectVolatileJobs(Connection conn)
throws SQLException
DriverDelegateGet the names of all of the jobs that are volatile.
selectVolatileJobs in interface DriverDelegateselectVolatileJobs in class StdJDBCDelegateSQLException
|
Quartz Enterprise Job Scheduler Project Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||