|
|||||||||||
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 DriverDelegate
selectTriggersForRecoveringJobs
in class StdJDBCDelegate
conn
- the DB Connection
Trigger
objects
SQLException
IOException
ClassNotFoundException
public int insertJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
StdJDBCDelegate
Insert the job detail record.
insertJobDetail
in interface DriverDelegate
insertJobDetail
in class StdJDBCDelegate
conn
- 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
StdJDBCDelegate
Update the job detail record.
updateJobDetail
in interface DriverDelegate
updateJobDetail
in class StdJDBCDelegate
conn
- 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
StdJDBCDelegate
Insert the base trigger data.
insertTrigger
in interface DriverDelegate
insertTrigger
in class StdJDBCDelegate
conn
- 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
StdJDBCDelegate
Update the base trigger data.
updateTrigger
in interface DriverDelegate
updateTrigger
in class StdJDBCDelegate
conn
- 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
StdJDBCDelegate
Insert a fired trigger.
insertFiredTrigger
in interface DriverDelegate
insertFiredTrigger
in class StdJDBCDelegate
conn
- 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
StdJDBCDelegate
Update the job data map for the given job.
updateJobData
in interface DriverDelegate
updateJobData
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to update
IOException
SQLException
public int insertCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, SQLException
StdJDBCDelegate
Insert a new calendar.
insertCalendar
in interface DriverDelegate
insertCalendar
in class StdJDBCDelegate
conn
- 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
StdJDBCDelegate
Update a calendar.
updateCalendar
in interface DriverDelegate
updateCalendar
in class StdJDBCDelegate
conn
- 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
DriverDelegate
Delete all volatile fired triggers.
deleteVolatileFiredTriggers
in interface DriverDelegate
deleteVolatileFiredTriggers
in class StdJDBCDelegate
SQLException
public Key[] selectVolatileTriggers(Connection conn) throws SQLException
DriverDelegate
Get the names of all of the triggers that are volatile.
selectVolatileTriggers
in interface DriverDelegate
selectVolatileTriggers
in class StdJDBCDelegate
SQLException
public Key[] selectVolatileJobs(Connection conn) throws SQLException
DriverDelegate
Get the names of all of the jobs that are volatile.
selectVolatileJobs
in interface DriverDelegate
selectVolatileJobs
in class StdJDBCDelegate
SQLException
|
Quartz Enterprise Job Scheduler Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |