|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
+--org.quartz.impl.jdbcjobstore.DB2v7Delegate
Quartz JDBC delegate for DB2 v7 databases.
| Fields inherited from class org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
instanceId, logger, tablePrefix, useProperties |
| Constructor Summary | |
DB2v7Delegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId)
|
|
DB2v7Delegate(org.apache.commons.logging.Log log,
java.lang.String tablePrefix,
java.lang.String instanceId,
java.lang.Boolean useProperties)
|
|
| Method Summary | |
int |
deleteVolatileFiredTriggers(java.sql.Connection conn)
Delete all volatile fired triggers. |
int |
insertCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
Insert a new calendar. |
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 |
insertTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail jobDetail)
Insert the base trigger data. |
Trigger[] |
selectTriggersForRecoveringJobs(java.sql.Connection conn)
Select all of the triggers for jobs that are requesting recovery. |
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. |
int |
updateCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
Update a calendar. |
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 |
updateTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.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 DB2v7Delegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId)
public DB2v7Delegate(org.apache.commons.logging.Log log,
java.lang.String tablePrefix,
java.lang.String instanceId,
java.lang.Boolean useProperties)
| Method Detail |
public Trigger[] selectTriggersForRecoveringJobs(java.sql.Connection conn)
throws java.sql.SQLException
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 class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB ConnectionTrigger objects
public int insertJobDetail(java.sql.Connection conn,
JobDetail job)
throws java.io.IOException,
java.sql.SQLException
StdJDBCDelegateInsert the job detail record.
insertJobDetail in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - 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
StdJDBCDelegateUpdate the job detail record.
updateJobDetail in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB Connectionjob - the job to updatejava.io.IOException - if there were problems serializing the JobDataMap
public int insertTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail jobDetail)
throws java.sql.SQLException,
java.io.IOException
StdJDBCDelegateInsert the base trigger data.
insertTrigger in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB Connectiontrigger - the trigger to insertstate - the state that the trigger should be stored in
public int updateTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail jobDetail)
throws java.sql.SQLException,
java.io.IOException
StdJDBCDelegateUpdate the base trigger data.
updateTrigger in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB Connectiontrigger - the trigger to insertstate - the state that the trigger should be stored in
public int insertFiredTrigger(java.sql.Connection conn,
Trigger trigger,
java.lang.String state,
JobDetail job)
throws java.sql.SQLException
StdJDBCDelegateInsert a fired trigger.
insertFiredTrigger in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB Connectiontrigger - the triggerstate - the state that the trigger should be stored in
public int updateJobData(java.sql.Connection conn,
JobDetail job)
throws java.io.IOException,
java.sql.SQLException
StdJDBCDelegateUpdate the job data map for the given job.
updateJobData in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB Connectionjob - the job to update
public int insertCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
throws java.io.IOException,
java.sql.SQLException
StdJDBCDelegateInsert a new calendar.
insertCalendar in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB ConnectioncalendarName - the name for the new calendarcalendar - the calendarjava.io.IOException - if there were problems serializing the calendar
public int updateCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
throws java.io.IOException,
java.sql.SQLException
StdJDBCDelegateUpdate a calendar.
updateCalendar in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.StdJDBCDelegateconn - the DB ConnectioncalendarName - the name for the new calendarcalendar - the calendarjava.io.IOException - if there were problems serializing the calendar
public int deleteVolatileFiredTriggers(java.sql.Connection conn)
throws java.sql.SQLException
DriverDelegateDelete all volatile fired triggers.
deleteVolatileFiredTriggers in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.DriverDelegateconn - the DB Connection
public Key[] selectVolatileTriggers(java.sql.Connection conn)
throws java.sql.SQLException
DriverDelegateGet the names of all of the triggers that are volatile.
selectVolatileTriggers in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.DriverDelegateconn - the DB ConnectionKey objects
public Key[] selectVolatileJobs(java.sql.Connection conn)
throws java.sql.SQLException
DriverDelegateGet the names of all of the jobs that are volatile.
selectVolatileJobs in class StdJDBCDelegateorg.quartz.impl.jdbcjobstore.DriverDelegateconn - the DB ConnectionKey objects
|
Quartz Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||