|
|||||||||||
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.DB2v7Delegate
Quartz JDBC delegate for DB2 v7 databases.
Field Summary |
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 interface DriverDelegate
selectTriggersForRecoveringJobs
in class StdJDBCDelegate
conn
- the DB Connection
Trigger
objects
java.sql.SQLException
public int insertJobDetail(java.sql.Connection conn, JobDetail job) throws java.io.IOException, java.sql.SQLException
StdJDBCDelegate
Insert the job detail record.
insertJobDetail
in interface DriverDelegate
insertJobDetail
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to insert
java.io.IOException
- if there were problems serializing the JobDataMap
java.sql.SQLException
public int updateJobDetail(java.sql.Connection conn, JobDetail job) throws java.io.IOException, java.sql.SQLException
StdJDBCDelegate
Update the job detail record.
updateJobDetail
in interface DriverDelegate
updateJobDetail
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to update
java.io.IOException
- if there were problems serializing the JobDataMap
java.sql.SQLException
public int insertTrigger(java.sql.Connection conn, Trigger trigger, java.lang.String state, JobDetail jobDetail) throws java.sql.SQLException, java.io.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
java.sql.SQLException
java.io.IOException
public int updateTrigger(java.sql.Connection conn, Trigger trigger, java.lang.String state, JobDetail jobDetail) throws java.sql.SQLException, java.io.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
java.sql.SQLException
java.io.IOException
public int insertFiredTrigger(java.sql.Connection conn, Trigger trigger, java.lang.String state, JobDetail job) throws java.sql.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
java.sql.SQLException
public int updateJobData(java.sql.Connection conn, JobDetail job) throws java.io.IOException, java.sql.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
java.io.IOException
java.sql.SQLException
public int insertCalendar(java.sql.Connection conn, java.lang.String calendarName, Calendar calendar) throws java.io.IOException, java.sql.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
java.io.IOException
- if there were problems serializing the calendar
java.sql.SQLException
public int updateCalendar(java.sql.Connection conn, java.lang.String calendarName, Calendar calendar) throws java.io.IOException, java.sql.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
java.io.IOException
- if there were problems serializing the calendar
java.sql.SQLException
public int deleteVolatileFiredTriggers(java.sql.Connection conn) throws java.sql.SQLException
DriverDelegate
Delete all volatile fired triggers.
deleteVolatileFiredTriggers
in interface DriverDelegate
deleteVolatileFiredTriggers
in class StdJDBCDelegate
java.sql.SQLException
public Key[] selectVolatileTriggers(java.sql.Connection conn) throws java.sql.SQLException
DriverDelegate
Get the names of all of the triggers that are volatile.
selectVolatileTriggers
in interface DriverDelegate
selectVolatileTriggers
in class StdJDBCDelegate
java.sql.SQLException
public Key[] selectVolatileJobs(java.sql.Connection conn) throws java.sql.SQLException
DriverDelegate
Get the names of all of the jobs that are volatile.
selectVolatileJobs
in interface DriverDelegate
selectVolatileJobs
in class StdJDBCDelegate
java.sql.SQLException
|
Quartz Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |